mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
d83382ffb5
refs https://github.com/TryGhost/members.js/issues/5 - We want to allow .env in source control mainly to use react-testing-library's recommended setup for common test-utils. It uses .env file to define NODE_PATH, which helps in avoiding relative imports in tests as we keep test files next to UI components. - CRA also by default suggests committing .env files to source control
80 lines
1.4 KiB
Plaintext
80 lines
1.4 KiB
Plaintext
# Node template
|
|
|
|
# Logs
|
|
logs
|
|
*.log
|
|
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.*
|
|
|
|
# IDE
|
|
.idea/*
|
|
*.iml
|
|
*.sublime-*
|
|
.vscode/*
|
|
|
|
# OSX
|
|
.DS_Store
|
|
|
|
# Membersjs build folders
|
|
umd/
|
|
build/
|
|
|
|
# Allow .env file
|
|
!.env
|
|
## We use .env file to define NODE_PATH as recommended test-utils setup pattern to avoid relative imports.
|
|
# Refs: https://testing-library.com/docs/react-testing-library/setup#jest-and-create-react-app
|
|
# CRA also suggests `.env` files should be checked into source control
|
|
# Ref: https://create-react-app.dev/docs/adding-custom-environment-variables/#adding-development-environment-variables-in-env |