forked from HL7-DaVinci/crd-request-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from mcode/dev
Dev
- Loading branch information
Showing
55 changed files
with
14,203 additions
and
11,553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Production | ||
build | ||
|
||
# Dependencies | ||
node_modules | ||
build.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parser": "@babel/eslint-parser", | ||
"extends": ["eslint:recommended", "prettier"], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"requireConfigFile": false, | ||
"sourceType": "module", | ||
"babelOptions": { | ||
"presets": ["@babel/preset-react"] | ||
} | ||
}, | ||
"plugins": ["import"], | ||
"rules": { | ||
"semi": ["error", "always"], | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"no-empty-function": "warn", | ||
"no-unused-vars": 1 | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,6 @@ typings/ | |
build/ | ||
package-lock.json | ||
src/db.json | ||
|
||
# Environment variable files | ||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Production | ||
build | ||
build.js | ||
# Dependencies | ||
node_modules | ||
|
||
# This gets modified via `npm install` | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"trailingComma": "none", | ||
"arrowParens": "avoid", | ||
"endOfLine": "auto", | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"overrides": [ | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,46 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug Request-Generator (Launch Docker)", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}", | ||
"sourceMapPathOverrides": { | ||
"/home/node/app/request-generator/*": "${webRoot}/*", | ||
}, | ||
"runtimeArgs": [ | ||
"--remote-debugging-port=9222" | ||
] | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"name": "Debug Request-Generator (Attach Docker)", | ||
"port": 9222, | ||
"urlFilter": "http://localhost:3000/*", | ||
"webRoot": "${workspaceFolder}", | ||
"sourceMapPathOverrides": { | ||
"/home/node/app/request-generator/*": "${webRoot}/*", | ||
} | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug Request-Generator (Launch Local)", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}", | ||
"runtimeArgs": [ | ||
"--remote-debugging-port=9222" | ||
] | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"port": 9222, | ||
"name": "Debug Request-Generator (Attach Local)", | ||
"urlFilter": "http://localhost:3000/*", | ||
"webRoot": "${workspaceFolder}", | ||
} | ||
] | ||
} | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug Request-Generator (Launch Docker)", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}", | ||
"sourceMapPathOverrides": { | ||
"/home/node/app/request-generator/*": "${webRoot}/*" | ||
}, | ||
"runtimeArgs": ["--remote-debugging-port=9222"] | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"name": "Debug Request-Generator (Attach Docker)", | ||
"port": 9222, | ||
"urlFilter": "http://localhost:3000/*", | ||
"webRoot": "${workspaceFolder}", | ||
"sourceMapPathOverrides": { | ||
"/home/node/app/request-generator/*": "${webRoot}/*" | ||
} | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debug Request-Generator (Launch Local)", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}", | ||
"runtimeArgs": ["--remote-debugging-port=9222"] | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"port": 9222, | ||
"name": "Debug Request-Generator (Attach Local)", | ||
"urlFilter": "http://localhost:3000/*", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const rewire = require('rewire'); | ||
const defaults = rewire('react-scripts/scripts/build.js'); | ||
const config = defaults.__get__('config'); | ||
|
||
// Consolidate chunk files instead | ||
config.optimization.splitChunks = { | ||
cacheGroups: { | ||
default: false, | ||
}, | ||
}; | ||
// Move runtime into bundle instead of separate file | ||
config.optimization.runtimeChunk = false; | ||
config.optimization.minimize = false; | ||
|
||
// JS | ||
config.output.filename = '[name].js'; | ||
// CSS. "5" is MiniCssPlugin | ||
config.plugins[5].options.filename = '[name].css'; | ||
config.plugins[5].options.publicPath = '../'; |
Oops, something went wrong.