-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Version 2
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
plugins { | ||
id "com.moowork.node" version "1.2.0" | ||
} | ||
apply plugin: 'base' | ||
node { | ||
// Version of node to use. | ||
version = rootProject.nodejsVersion | ||
|
||
// Base URL for fetching node distributions (change if you have a mirror). | ||
distBaseUrl = 'https://nodejs.org/dist' | ||
|
||
// If true, it will download node using above parameters. | ||
// If false, it will try to use globally installed node. | ||
download = true | ||
|
||
// Set the work directory for unpacking node | ||
workDir = file("${project.projectDir}/tools/nodejs") | ||
|
||
// Set the work directory for NPM | ||
npmWorkDir = file("${project.projectDir}/tools/npm") | ||
|
||
// Set the work directory where node_modules should be located | ||
nodeModulesDir = file("${project.projectDir}/frontend") | ||
} | ||
|
||
task cleanBundle(type: Delete) { | ||
delete 'bin', 'build', 'frontend/build', 'frontend/node_modules', 'tools/nodejs' | ||
} | ||
|
||
task startMockedBackend(type: NpmTask) { | ||
group = 'testing' | ||
description = "UI Mocked Backend" | ||
args = ['run', 'start:mocked-backend'] | ||
} | ||
|
||
task javaScriptCoverage(type: NpmTask) { | ||
group = 'testing' | ||
description = "UI JavaScript Test Coverage" | ||
args = ['run', 'coverage'] | ||
} | ||
|
||
task runTests(type: NpmTask) { | ||
group = 'testing' | ||
description = "UI JavaScript Test Coverage" | ||
args = ['run', 'test'] | ||
} | ||
|
||
task bundle(type: NpmTask) { | ||
inputs.dir('frontend/src') | ||
inputs.dir('frontend/public') | ||
inputs.files('frontend/.env*') | ||
inputs.file('frontend/eslintrc.json') | ||
inputs.file('frontend/package.json') | ||
|
||
outputs.dir('frontend/build') | ||
|
||
dependsOn npmInstall | ||
args = ['run', 'build'] | ||
} | ||
|
||
clean.dependsOn cleanBundle | ||
build.dependsOn bundle | ||
javaScriptCoverage.dependsOn bundle | ||
runTests.dependsOn bundle |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
REACT_APP_CATALOG_HOMEPAGE=/ui/v1/apicatalog | ||
REACT_APP_CATALOG_HOME=/api/v1/apicatalog | ||
REACT_APP_CATALOG_UPDATE=/containers | ||
REACT_APP_STATUS_UPDATE_PERIOD=30000 | ||
REACT_APP_STATUS_UPDATE_MAX_RETRIES=10 | ||
REACT_APP_STATUS_UPDATE_DEBOUNCE=300 | ||
REACT_APP_CA_ENV=false | ||
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000 | ||
REACT_APP_GATEWAY_URL= |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
REACT_APP_CA_ENV=false | ||
REACT_APP_STATUS_UPDATE_PERIOD=10000 | ||
REACT_APP_STATUS_UPDATE_MAX_RETRIES=3 | ||
REACT_APP_STATUS_UPDATE_DEBOUNCE=300 | ||
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000 | ||
REACT_APP_GATEWAY_URL= |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
REACT_APP_STATUS_UPDATE_PERIOD=30000 | ||
REACT_APP_STATUS_UPDATE_MAX_RETRIES=10 | ||
REACT_APP_STATUS_UPDATE_DEBOUNCE=300 | ||
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000 | ||
REACT_APP_GATEWAY_URL= | ||
REACT_APP_CA_ENV=false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
REACT_APP_GATEWAY_URL=https://localhost:10010 | ||
REACT_APP_STATUS_UPDATE_PERIOD=4000 | ||
REACT_APP_STATUS_UPDATE_MAX_RETRIES=2 | ||
REACT_APP_STATUS_UPDATE_DEBOUNCE=300 | ||
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000 | ||
REACT_APP_CATALOG_URL_TEST=https://localhost:10010/ui/v1/apicatalog | ||
REACT_APP_CATALOG_USERNAME=user | ||
REACT_APP_CATALOG_PASSWORD=user | ||
REACT_APP_CA_ENV=false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"prettier", | ||
"prettier/react" | ||
], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"impliedStrict": true, | ||
"classes": true, | ||
"jsx": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jquery": true | ||
}, | ||
"rules": { | ||
"class-methods-use-this": 0, | ||
"import/no-extraneous-dependencies": 1, | ||
"import/no-named-as-default": 1, | ||
"no-unused-vars": [ | ||
1, | ||
{ | ||
"argsIgnorePattern": "res|next|^err" | ||
} | ||
], | ||
"arrow-body-style": [ | ||
1, | ||
"as-needed" | ||
], | ||
"no-param-reassign": [ | ||
2, | ||
{ | ||
"props": false | ||
} | ||
], | ||
"no-console": 2, | ||
"import": 0, | ||
"func-names": 0, | ||
"space-before-function-paren": 0, | ||
"comma-dangle": 0, | ||
"max-len": 0, | ||
"import/extensions": 0, | ||
"no-underscore-dangle": 0, | ||
"consistent-return": 0, | ||
"react/display-name": 1, | ||
"linebreak-style": "off", | ||
"react/react-in-jsx-scope": 0, | ||
"react/forbid-prop-types": 0, | ||
"react/no-unescaped-entities": 0, | ||
"react/prefer-stateless-function": 0, | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
] | ||
} | ||
], | ||
"radix": 0, | ||
"no-shadow": [ | ||
2, | ||
{ | ||
"hoist": "all", | ||
"allow": [ | ||
"resolve", | ||
"reject", | ||
"done", | ||
"next", | ||
"err", | ||
"error" | ||
] | ||
} | ||
], | ||
"quotes": [ | ||
2, | ||
"single", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} | ||
], | ||
"jsx-a11y/href-no-hash": "off", | ||
"jsx-a11y/anchor-is-valid": [ | ||
"warn", | ||
{ | ||
"aspects": [ | ||
"invalidHref" | ||
] | ||
} | ||
], | ||
"react/no-unused-prop-types": 2, | ||
"react/prop-types": 0 | ||
}, | ||
"plugins": [ | ||
"prettier" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
/src/main/resources/static | ||
/tools | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
debug.log | ||
/report | ||
# cypress | ||
cypress/videos/ | ||
cypress/screenshots/ | ||
test-results/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Thu Sep 12 17:31:45 CEST 2019 | ||
gradle.version=4.9 |