diff --git a/.gitignore b/.gitignore index 23eea89567..52f8436268 100644 --- a/.gitignore +++ b/.gitignore @@ -69,5 +69,58 @@ typings/ # OSX .DS_Store +!test/utils/fixtures/**/*.csv + +# Ghost DB file +*.db +*.db-journal + +/ghost/core/core/server/data/export/exported* +/ghost/core/content/tmp/* +/ghost/core/content/data/* +/ghost/core/content/logs/* +/ghost/core/content/settings/* +/ghost/core/content/apps/**/* +/ghost/core/content/themes/**/* +/ghost/core/content/images/**/* +/ghost/core/content/media/**/* +/ghost/core/content/files/**/* +/ghost/core/content/public/* +/ghost/core/content/adapters/storage/**/* +/ghost/core/content/adapters/scheduling/**/* +!/ghost/core/content/themes/casper +!/ghost/core/README.md +!/ghost/core/content/**/README.md + +# Changelog, which is autogenerated, not committed +/ghost/core/CHANGELOG.md + +# Assets bundled into the release but we don't want to commit +/ghost/core/LICENSE +/ghost/core/PRIVACY.md +/ghost/core/README.md +/ghost/core/yarn.lock + +# Test generated files +test/functional/*.png + +# ignore all custom json files for config +/ghost/core/config.*.json + +# Built asset files +/ghost/core/core/built +/ghost/core/core/frontend/public/ghost.min.css + # Caddyfile - for local development with ssl + caddy Caddyfile + +# Playwright state with cookies it keeps across tests +/ghost/core/playwright-state.json + +# Admin +/ghost/admin/dist + +# Portal +!/ghost/portal/.env +/ghost/portal/umd +/ghost/portal/build diff --git a/ghost/admin/.gitignore b/ghost/admin/.gitignore deleted file mode 100644 index ce86f5bb4c..0000000000 --- a/ghost/admin/.gitignore +++ /dev/null @@ -1,63 +0,0 @@ -b-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -npm-debug.log* -yarn-error.log -.nvmrc -.bowerrc -.idea/* -*.iml -*.sublime-* -projectFilesBackup - -.DS_Store - -# vim-related -[._]*.s[a-w][a-z] -[._]s[a-w][a-z] -*.un~ -Session.vim -.netrwhist -.vimrc -*~ - -# TernJS -.tern-project - -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/dist-test -/tmp - -# dependencies -/node_modules -/bower_components - -# IDE -.idea/* -*.iml -*.sublime-* -.vscode/* - -# misc -/.env* -/.pnp* -/.eslintcache -/connect.lock -/coverage/ -/libpeerconnection.log -/testem.log -/concat-stats-for -jsconfig.json diff --git a/ghost/core/.gitignore b/ghost/core/.gitignore deleted file mode 100644 index b4fc3c28d4..0000000000 --- a/ghost/core/.gitignore +++ /dev/null @@ -1,140 +0,0 @@ -# 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 - -# Custom ignore starts here - -b-cov -*.csv -*.dat -*.out -*.gz - -!test/utils/fixtures/**/*.csv - -results - -package-lock.json -bower_components -.bowerrc -projectFilesBackup - -# TernJS -.tern-project - -# Ghost DB file -*.db -*.db-journal - -.build -.dist -.tmp - -/core/server/data/export/exported* -/content/tmp/* -/content/data/* -/content/logs/* -/content/settings/* -/content/apps/**/* -/content/themes/**/* -/content/images/**/* -/content/media/**/* -/content/files/**/* -/content/public/* -/content/adapters/storage/**/* -/content/adapters/scheduling/**/* -!/content/themes/casper -!/README.md -!/content/**/README.md - -# Changelog, which is autogenerated, not committed -CHANGELOG.md - -# Assets bundled into the release but we don't want to commit -LICENSE -PRIVACY.md -README.md -yarn.lock - -# Test generated files -test/functional/*.png -test/coverage - -# ignore all custom json files for config -/config.*.json - -# Built asset files -/core/built -/core/frontend/public/ghost.min.css - -# Caddyfile - for local development with ssl + caddy -Caddyfile - -# Playwright state with cookies it keeps across tests -playwright-state.json diff --git a/ghost/portal/.gitignore b/ghost/portal/.gitignore deleted file mode 100644 index 6ad4272aa5..0000000000 --- a/ghost/portal/.gitignore +++ /dev/null @@ -1,80 +0,0 @@ -# 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 \ No newline at end of file