Commit 4e7fbc35 authored by Axel Bocciarelli's avatar Axel Bocciarelli
Browse files

Clean up gitignore

parent 90037ed1
Pipeline #32413 passed with stage
in 4 minutes and 41 seconds
*~
# These configurations files are ignored and managed locally. These scripts will be copied from example when running the npm script configure that is called from npm run-script build
src/config/icat/icatPlus.js
src/config/icat/icat.js
# See https://help.github.com/ignore-files/ for more about ignoring files.
# personal folders. Not for production
/forDevOnly
/doc
# dependencies
/node_modules
# testing
/coverage
# production
/build
# Configurations files
/src/config/icat/icat.js
# misc
.DS_Store
# Local environment files
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Dependencies
/node_modules/
# eclipse
.settings
# Build outputs, reports and cache folders
/coverage/
/build/
/lib-cov/
/.nyc_output/
/.npm/
/.eslintcache/
# Logs
logs
*.log
# Miscellaneous
*~
.DS_Store
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# next.js build output
.next
# Personal folders
/forDevOnly/
/doc/
......@@ -69,13 +69,14 @@ npm run-script configure
## Environment variables
Environment variables are loaded automatically from [environment files](https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used) (`.env`, `.env.test`, etc.) Create React App reads the files based on the Node environment (`NODE_ENV`).
Create React App loads environment variables from [environment files](https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used) (<kbd>.env</kbd>, <kbd>.env.test</kbd>, etc.) according to the Node environment (`NODE_ENV`).
File <kbd>.env</kbd> is loaded in every environment with the lowest priority and is therefore used to declare default values and development fallbacks.
The following variable is currently loaded from the environment:
The following portal configuration variable is currently declared in <kbd>.env</kbd>:
- `REACT_APP_ICATPLUS_URL` - the URL of the ICAT+ server (cf. <kbd>src/config/icatPlus.js</kbd>)
- `REACT_APP_ICATPLUS_URL` - the URL of the ICAT+ server (used in <kbd>src/config/icatPlus.js</kbd>)
In development, you can override any of the portal variables defined in `.env` by creating a file called `.env.local`. This file will not be committed to version control.
In development, you can override this variable by creating a file called `.env.local`. This file is ignored from version control.
## icat.js
......
......@@ -15,8 +15,6 @@
"doc": "npm run Readme:ConfigDoc:ICAT && npm run Readme:ConfigDoc:ICAT:ReplaceCodeSection && npm run Readme:ConfigDoc:ICATPlus && npm run Readme:ConfigDoc:ICATPlus:ReplaceCodeSection && npm run Readme:ConfigDoc:Config && npm run Readme:ConfigDoc:Config:ReplaceCodeSection",
"Readme:ConfigDoc:ICAT": "node ./node_modules/jscat/bin/jscat src/config/icat/icat.example.js | node ./node_modules/injectmd/bin/cli.js -t configurationICAT -i Readme.md",
"Readme:ConfigDoc:ICAT:ReplaceCodeSection": "./node_modules/replace/bin/replace.js '<!--START configurationICAT -->' '<!--START configurationICAT -->\n```js' Readme.md && ./node_modules/replace/bin/replace.js '<!--END configurationICAT -->' '```\n<!--END configurationICAT -->' Readme.md",
"Readme:ConfigDoc:ICATPlus": "node ./node_modules/jscat/bin/jscat src/config/icat/icatPlus.example.js | node ./node_modules/injectmd/bin/cli.js -t configurationICATPlus -i Readme.md",
"Readme:ConfigDoc:ICATPlus:ReplaceCodeSection": "./node_modules/replace/bin/replace.js '<!--START configurationICATPlus -->' '<!--START configurationICATPlus -->\n```js' Readme.md && ./node_modules/replace/bin/replace.js '<!--END configurationICATPlus -->' '```\n<!--END configurationICATPlus -->' Readme.md",
"Readme:ConfigDoc:Config": "node ./node_modules/jscat/bin/jscat src/config/ui/config.js | node ./node_modules/injectmd/bin/cli.js -t config -i Readme.md",
"Readme:ConfigDoc:Config:ReplaceCodeSection": "./node_modules/replace/bin/replace.js '<!--START config -->' '<!--START config -->\n```js' Readme.md && ./node_modules/replace/bin/replace.js '<!--END config -->' '```\n<!--END config -->' Readme.md",
"complexity-report": "./node_modules/.bin/es6-plato -r -d ./public/report src",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment