Skip to content

Commit ec5f44d

Browse files
authored
Merge pull request #847 from FluxNotes/deploy-workflow
Deploy workflow
2 parents b46bda8 + b7bcfee commit ec5f44d

File tree

6 files changed

+194
-157
lines changed

6 files changed

+194
-157
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GH Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy-to-pages:
10+
name: Deploy to GH Pages
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "10.x"
17+
- run: npm install -g yarn
18+
- run: yarn install
19+
- name: Update Debra encounter dates
20+
run: yarn patient-date-update src/dataaccess/BreastMainTreatmentDebraV09.json 32
21+
- name: Update Ella encounter dates
22+
run: yarn patient-date-update src/dataaccess/BreastMainTreatmentTry3EllaV09.json 100
23+
- name: Update Ihanos encounter dates
24+
run: yarn patient-date-update src/dataaccess/GistAdjuvantIhanosV09.json 100
25+
- name: Update Jane encounter dates
26+
run: yarn patient-date-update src/dataaccess/BreastMainTreatmentDiabetesHypertensionJaneV09.json 33
27+
- run: yarn run build
28+
- name: Publish build to github pages
29+
uses: peaceiris/[email protected]
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: build
33+
publish_branch: gh-pages
34+
user_name: "github-actions[bot]"
35+
user_email: "github-actions[bot]@users.noreply.github.com"

package.json

+148-147
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,150 @@
11
{
2-
"name": "flux-ui",
3-
"version": "0.1.0",
4-
"private": true,
5-
"dependencies": {
6-
"axios": "0.19.0",
7-
"commander": "2.9.0",
8-
"cql-exec-fhir": "^1.0.1",
9-
"cql-exec-vsac": "^1.0.1",
10-
"cql-execution": "^1.3.2",
11-
"d3-array": "^1.2.4",
12-
"d3-scale": "^1.0.7",
13-
"d3-time": "^1.0.10",
14-
"downshift": "^1.31.16",
15-
"elasticlunr": "https://github.com/mgramigna/elasticlunr.js",
16-
"es6-shim": "0.35.3",
17-
"fhir-mapper": "^3.0.0",
18-
"fhirclient": "^0.1.12",
19-
"flat": "^4.1.0",
20-
"flux_notes_treatment_options_rest_client": "^1.1.2",
21-
"font-awesome": "4.7.0",
22-
"fuse.js": "^3.3.0",
23-
"highcharts": "^6.2.0",
24-
"history": "^4.7.2",
25-
"immutable": "3.8.1",
26-
"interact.js": "1.2.8",
27-
"lodash": "4.17.13",
28-
"material-ui": "1.0.0-beta.32",
29-
"material-ui-icons": "1.0.0-beta.15",
30-
"mime": "1.4.1",
31-
"mkdirp": "0.5.1",
32-
"moment": "2.22.0",
33-
"nock": "^10.0.6",
34-
"positions": "1.6.1",
35-
"prop-types": "15.5.10",
36-
"rc-calendar": "^9.7.11",
37-
"rc-slider": "^8.6.9",
38-
"rc-tooltip": "^3.7.3",
39-
"react": "15.5.4",
40-
"react-autosuggest": "9.3.2",
41-
"react-calendar-timeline": "0.16.1",
42-
"react-copy-to-clipboard": "5.0.0",
43-
"react-day-picker": "6.2.1",
44-
"react-dom": "15.5.4",
45-
"react-flexbox-grid": "1.1.3",
46-
"react-fontawesome": "^1.6.1",
47-
"react-ga": "2.2.0",
48-
"react-minimap": "0.7.2",
49-
"react-redux": "^5.1.1",
50-
"react-router": "^4.3.1",
51-
"react-router-dom": "4.3.1",
52-
"react-router-redux": "^5.0.0-alpha.9",
53-
"react-scroll-sync": "^0.7.0",
54-
"react-sticky-table": "^3.0.1",
55-
"react-tap-event-plugin": "2.0.1",
56-
"recharts": "1.0.0-beta.6",
57-
"redux": "^3.7.2",
58-
"redux-logger": "^3.0.6",
59-
"redux-mock-store": "1.5.3",
60-
"redux-promise-middleware": "^5.1.1",
61-
"redux-thunk": "^2.3.0",
62-
"run-script-os": "1.0.3",
63-
"shr_rest_client": "^0.0.6",
64-
"slate": "0.20.2",
65-
"slate-auto-replace": "0.5.0",
66-
"superagent": "3.7.0",
67-
"sync-request": "^4.1.0",
68-
"uuid": "^3.3.2"
69-
},
70-
"devDependencies": {
71-
"babel-cli": "6.26.0",
72-
"babel-eslint": "9.x",
73-
"babel-plugin-transform-class-properties": "6.24.1",
74-
"babel-plugin-transform-es2015-destructuring": "6.23.0",
75-
"babel-plugin-transform-object-rest-spread": "6.26.0",
76-
"babel-plugin-transform-require-ignore": "0.1.1",
77-
"babel-polyfill": "6.23.0",
78-
"babel-preset-es2015": "6.24.1",
79-
"chai": "4.1.2",
80-
"customize-cra": "^0.2.12",
81-
"enzyme": "3.0.0",
82-
"enzyme-adapter-react-15": "1.0.0",
83-
"eslint": "5.12.0",
84-
"eslint-config-react-app": "^4.0.1",
85-
"eslint-plugin-flowtype": "2.x",
86-
"eslint-plugin-import": "2.x",
87-
"eslint-plugin-jsx-a11y": "6.x",
88-
"eslint-plugin-react": "7.x",
89-
"eslint-plugin-react-hooks": "1.5.0",
90-
"mock-local-storage": "^1.1.8",
91-
"node-sass": "^4.10.0",
92-
"node-sass-chokidar": "0.0.3",
93-
"npm-run-all": "^4.1.2",
94-
"react-app-rewired": "^2.1.3",
95-
"react-scripts": "2.1.8",
96-
"react-test-renderer": "15.6.2",
97-
"redux-mock-store": "1.5.3",
98-
"testcafe": "0.17.1",
99-
"copy-webpack-plugin" : "5.0.4"
100-
},
101-
"resolutions": {
102-
"moment": "2.22.0",
103-
"ucum": "cmoesel/ucum.js#es5-friendly"
104-
},
105-
"scripts": {
106-
"build-css": "node-sass-chokidar src/ -o src/",
107-
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
108-
"start-js": "react-app-rewired start",
109-
"check-version": "node ./scripts/check-version.js",
110-
"start": "npm-run-all -p watch-css start-js check-version",
111-
"build-js": "node --max_old_space_size=4096 node_modules/react-app-rewired/scripts/build.js",
112-
"build": "npm-run-all build-css build-js",
113-
"eject": "react-scripts eject",
114-
"mock-data-update": "node ./src/mcode-pilot/mock-data/mock-data-update",
115-
"parse": "babel-node --presets es2015,react --plugins transform-class-properties,transform-es2015-destructuring,transform-object-rest-spread ./src/noteparser/app.js",
116-
"patient-date-update": "node ./src/patient-date-updater/app.js",
117-
"patient-date-list": "node ./src/patient-date-updater/app.js -O",
118-
"test-ci": "react-app-rewired test --env=jsdom --coverage",
119-
"test": "run-script-os",
120-
"test:win32": "yarn test-backend:win32",
121-
"test::darwin:linux": "yarn test-backend:darwin:linux",
122-
"test-backend": "run-script-os",
123-
"test-backend:win32": "set CI=true&&set NO_PROXY=localhost&&react-app-rewired test --env=jsdom --colors",
124-
"test-backend:darwin:linux": "CI=true NO_PROXY=localhost react-app-rewired test --env=jsdom --colors",
125-
"test-fullapp": "run-script-os",
126-
"test-fullapp:win32": "set CI=true&&react-app-rewired test --env=jsdom test\\backend\\views\\FullApp.test.js",
127-
"test-fullapp:darwin:linux": "CI=true react-app-rewired test --env=jsdom --colors __test__/backend/views/FullApp.test.js",
128-
"test-mcode": "run-script-os",
129-
"test-mcode:win32": "set CI=true&&react-app-rewired test --env=jsdom \\\\test\\\\backend\\\\mcode\\\\.*\\.test\\.js",
130-
"test-mcode:darwin:linux": "CI=true react-app-rewired test --env=jsdom test/backend/mcode/*.test.js",
131-
"test-ui": "run-script-os",
132-
"test-ui:win32": "yarn test-ui-all",
133-
"test-ui:darwin:linux": "yarn test-ui-chrome",
134-
"test-ui-all": "testcafe chrome,ie ./test/ui/** --app \"yarn start\"",
135-
"test-ui-chrome": "testcafe chrome ./test/ui/** --app \"yarn start\"",
136-
"test-ui-ie": "testcafe ie ./test/ui/** --app \"yarn start\"",
137-
"test-all-with-ui": "run-script-os",
138-
"test-all-with-ui:win32": "set CI=true&&yarn test-backend:win32&&yarn test-ui:win32",
139-
"test-all-with-ui::darwin:linux": "CI=true yarn test-backend:darwin:linux && yarn test-ui:darwin:linux",
140-
"lint": "eslint src --ext .js,.jsx",
141-
"lint-fix": "eslint src --ext .js,.jsx --fix; exit 0"
142-
},
143-
"browserslist": [
144-
">0.2%",
145-
"not dead",
146-
"not ie <= 11",
147-
"not op_mini all"
148-
]
2+
"name": "flux-ui",
3+
"version": "0.1.0",
4+
"homepage": "http://fluxnotes.github.io/flux",
5+
"private": true,
6+
"dependencies": {
7+
"axios": "0.19.0",
8+
"commander": "2.9.0",
9+
"cql-exec-fhir": "^1.0.1",
10+
"cql-exec-vsac": "^1.0.1",
11+
"cql-execution": "^1.3.2",
12+
"d3-array": "^1.2.4",
13+
"d3-scale": "^1.0.7",
14+
"d3-time": "^1.0.10",
15+
"downshift": "^1.31.16",
16+
"elasticlunr": "https://github.com/mgramigna/elasticlunr.js",
17+
"es6-shim": "0.35.3",
18+
"fhir-mapper": "^3.0.0",
19+
"fhirclient": "^0.1.12",
20+
"flat": "^4.1.0",
21+
"flux_notes_treatment_options_rest_client": "^1.1.2",
22+
"font-awesome": "4.7.0",
23+
"fuse.js": "^3.3.0",
24+
"highcharts": "^6.2.0",
25+
"history": "^4.7.2",
26+
"immutable": "3.8.1",
27+
"interact.js": "1.2.8",
28+
"lodash": "4.17.13",
29+
"material-ui": "1.0.0-beta.32",
30+
"material-ui-icons": "1.0.0-beta.15",
31+
"mime": "1.4.1",
32+
"mkdirp": "0.5.1",
33+
"moment": "2.22.0",
34+
"nock": "^10.0.6",
35+
"positions": "1.6.1",
36+
"prop-types": "15.5.10",
37+
"rc-calendar": "^9.7.11",
38+
"rc-slider": "^8.6.9",
39+
"rc-tooltip": "^3.7.3",
40+
"react": "15.5.4",
41+
"react-autosuggest": "9.3.2",
42+
"react-calendar-timeline": "0.16.1",
43+
"react-copy-to-clipboard": "5.0.0",
44+
"react-day-picker": "6.2.1",
45+
"react-dom": "15.5.4",
46+
"react-flexbox-grid": "1.1.3",
47+
"react-fontawesome": "^1.6.1",
48+
"react-ga": "2.2.0",
49+
"react-minimap": "0.7.2",
50+
"react-redux": "^5.1.1",
51+
"react-router": "^4.3.1",
52+
"react-router-dom": "4.3.1",
53+
"react-router-redux": "^5.0.0-alpha.9",
54+
"react-scroll-sync": "^0.7.0",
55+
"react-sticky-table": "^3.0.1",
56+
"react-tap-event-plugin": "2.0.1",
57+
"recharts": "1.0.0-beta.6",
58+
"redux": "^3.7.2",
59+
"redux-logger": "^3.0.6",
60+
"redux-mock-store": "1.5.3",
61+
"redux-promise-middleware": "^5.1.1",
62+
"redux-thunk": "^2.3.0",
63+
"run-script-os": "1.0.3",
64+
"shr_rest_client": "^0.0.6",
65+
"slate": "0.20.2",
66+
"slate-auto-replace": "0.5.0",
67+
"superagent": "3.7.0",
68+
"sync-request": "^4.1.0",
69+
"uuid": "^3.3.2"
70+
},
71+
"devDependencies": {
72+
"babel-cli": "6.26.0",
73+
"babel-eslint": "9.x",
74+
"babel-plugin-transform-class-properties": "6.24.1",
75+
"babel-plugin-transform-es2015-destructuring": "6.23.0",
76+
"babel-plugin-transform-object-rest-spread": "6.26.0",
77+
"babel-plugin-transform-require-ignore": "0.1.1",
78+
"babel-polyfill": "6.23.0",
79+
"babel-preset-es2015": "6.24.1",
80+
"chai": "4.1.2",
81+
"customize-cra": "^0.2.12",
82+
"enzyme": "3.0.0",
83+
"enzyme-adapter-react-15": "1.0.0",
84+
"eslint": "5.12.0",
85+
"eslint-config-react-app": "^4.0.1",
86+
"eslint-plugin-flowtype": "2.x",
87+
"eslint-plugin-import": "2.x",
88+
"eslint-plugin-jsx-a11y": "6.x",
89+
"eslint-plugin-react": "7.x",
90+
"eslint-plugin-react-hooks": "1.5.0",
91+
"mock-local-storage": "^1.1.8",
92+
"node-sass": "^4.10.0",
93+
"node-sass-chokidar": "0.0.3",
94+
"npm-run-all": "^4.1.2",
95+
"react-app-rewired": "^2.1.3",
96+
"react-scripts": "2.1.8",
97+
"react-test-renderer": "15.6.2",
98+
"redux-mock-store": "1.5.3",
99+
"testcafe": "0.17.1",
100+
"copy-webpack-plugin": "5.0.4"
101+
},
102+
"resolutions": {
103+
"moment": "2.22.0",
104+
"ucum": "cmoesel/ucum.js#es5-friendly"
105+
},
106+
"scripts": {
107+
"build-css": "node-sass-chokidar src/ -o src/",
108+
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
109+
"start-js": "react-app-rewired start",
110+
"check-version": "node ./scripts/check-version.js",
111+
"start": "npm-run-all -p watch-css start-js check-version",
112+
"build-js": "node --max_old_space_size=4096 node_modules/react-app-rewired/scripts/build.js",
113+
"build": "npm-run-all build-css build-js",
114+
"eject": "react-scripts eject",
115+
"mock-data-update": "node ./src/mcode-pilot/mock-data/mock-data-update",
116+
"parse": "babel-node --presets es2015,react --plugins transform-class-properties,transform-es2015-destructuring,transform-object-rest-spread ./src/noteparser/app.js",
117+
"patient-date-update": "node ./src/patient-date-updater/app.js",
118+
"patient-date-list": "node ./src/patient-date-updater/app.js -O",
119+
"test-ci": "react-app-rewired test --env=jsdom --coverage",
120+
"test": "run-script-os",
121+
"test:win32": "yarn test-backend:win32",
122+
"test::darwin:linux": "yarn test-backend:darwin:linux",
123+
"test-backend": "run-script-os",
124+
"test-backend:win32": "set CI=true&&set NO_PROXY=localhost&&react-app-rewired test --env=jsdom --colors",
125+
"test-backend:darwin:linux": "CI=true NO_PROXY=localhost react-app-rewired test --env=jsdom --colors",
126+
"test-fullapp": "run-script-os",
127+
"test-fullapp:win32": "set CI=true&&react-app-rewired test --env=jsdom test\\backend\\views\\FullApp.test.js",
128+
"test-fullapp:darwin:linux": "CI=true react-app-rewired test --env=jsdom --colors __test__/backend/views/FullApp.test.js",
129+
"test-mcode": "run-script-os",
130+
"test-mcode:win32": "set CI=true&&react-app-rewired test --env=jsdom \\\\test\\\\backend\\\\mcode\\\\.*\\.test\\.js",
131+
"test-mcode:darwin:linux": "CI=true react-app-rewired test --env=jsdom test/backend/mcode/*.test.js",
132+
"test-ui": "run-script-os",
133+
"test-ui:win32": "yarn test-ui-all",
134+
"test-ui:darwin:linux": "yarn test-ui-chrome",
135+
"test-ui-all": "testcafe chrome,ie ./test/ui/** --app \"yarn start\"",
136+
"test-ui-chrome": "testcafe chrome ./test/ui/** --app \"yarn start\"",
137+
"test-ui-ie": "testcafe ie ./test/ui/** --app \"yarn start\"",
138+
"test-all-with-ui": "run-script-os",
139+
"test-all-with-ui:win32": "set CI=true&&yarn test-backend:win32&&yarn test-ui:win32",
140+
"test-all-with-ui::darwin:linux": "CI=true yarn test-backend:darwin:linux && yarn test-ui:darwin:linux",
141+
"lint": "eslint src --ext .js,.jsx",
142+
"lint-fix": "eslint src --ext .js,.jsx --fix; exit 0"
143+
},
144+
"browserslist": [
145+
">0.2%",
146+
"not dead",
147+
"not ie <= 11",
148+
"not op_mini all"
149+
]
149150
}

public/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CONFIG = {
2-
basename: '/',
2+
basename: '/flux',
33
apps: [{
44
path: '/',
55
display: 'Flux Notes™',

public/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta http-equiv="X-UA-Compatible" content="IE=edge">
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<link rel="icon" type="image/png" sizes="32x32" href="/logos/favicon-32x32.png">
8-
<link rel="icon" type="image/png" sizes="16x16" href="/logos/favicon-16x16.png">
7+
<link rel="icon" type="image/png" sizes="32x32" href="logos/favicon-32x32.png">
8+
<link rel="icon" type="image/png" sizes="16x16" href="logos/favicon-16x16.png">
99
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">
1010
<title>Flux Notes - Powered by SHR</title>
1111
<script language="javascript">

0 commit comments

Comments
 (0)