2016-02-25 00:45:56 -08:00
|
|
|
{
|
2018-07-06 18:56:28 -04:00
|
|
|
"scripts": {
|
2019-03-21 12:12:16 -04:00
|
|
|
"bootstrap": "lerna bootstrap",
|
2019-03-25 10:57:17 -07:00
|
|
|
"start": "run-s clean bootstrap build:esm develop",
|
2020-01-22 23:47:34 +02:00
|
|
|
"develop": "lerna run develop --parallel --ignore netlify-cms-proxy-server",
|
2019-03-22 08:24:46 -07:00
|
|
|
"build": "run-s clean build:esm build:lerna",
|
2019-03-14 15:53:22 -04:00
|
|
|
"build:lerna": "lerna run build",
|
2019-03-22 08:24:46 -07:00
|
|
|
"build:esm": "lerna run build:esm",
|
2019-03-14 15:53:22 -04:00
|
|
|
"build-preview": "run-s build build-preview:lerna",
|
|
|
|
"build-preview:lerna": "lerna run build-preview",
|
2019-03-28 14:16:51 -04:00
|
|
|
"build:demo": "run-s build build:demo:copy",
|
2019-03-28 17:05:51 -04:00
|
|
|
"build:demo:copy": "ncp packages/netlify-cms/dist dev-test/dist/",
|
2019-12-18 18:16:02 +02:00
|
|
|
"type-check": "tsc --noEmit",
|
|
|
|
"type-check:watch": "npm run type-check -- --watch",
|
2019-07-18 23:59:31 +03:00
|
|
|
"clean": "rimraf \"packages/*/dist\" dev-test/dist",
|
2019-03-14 15:53:22 -04:00
|
|
|
"clean:lerna": "lerna clean --yes",
|
|
|
|
"reset": "run-s clean clean:lerna",
|
2019-12-18 18:16:02 +02:00
|
|
|
"test": "run-s clean lint type-check test:unit",
|
2020-03-06 18:10:44 +01:00
|
|
|
"test:ci": "run-s clean lint-quiet type-check test:unit",
|
2019-03-28 16:09:28 -04:00
|
|
|
"test:all": "run-s test test:e2e",
|
|
|
|
"test:all:ci": "run-s test:ci test:e2e:ci",
|
2019-03-28 14:16:51 -04:00
|
|
|
"test:unit": "cross-env NODE_ENV=test jest --no-cache",
|
|
|
|
"test:e2e": "run-s build:demo test:e2e:run",
|
|
|
|
"test:e2e:ci": "run-s build:demo test:e2e:run-ci",
|
2019-12-16 12:17:37 -05:00
|
|
|
"test:e2e:dev": "run-p clean && start-test develop 8080 test:e2e:exec-dev",
|
2020-04-15 19:32:52 +03:00
|
|
|
"test:e2e:serve": "http-server -c-1 dev-test",
|
2020-02-11 18:36:13 +02:00
|
|
|
"test:e2e:exec": "cypress run --browser chrome --headless",
|
|
|
|
"test:e2e:exec-ci": "cypress run --browser chrome --headless --record --parallel --ci-build-id $GITHUB_SHA --group 'GitHub CI' displayName: 'Run Cypress tests'",
|
2019-03-28 14:16:51 -04:00
|
|
|
"test:e2e:exec-dev": "cypress open",
|
2019-10-22 19:59:13 +03:00
|
|
|
"test:e2e:record-fixtures:dev": "HTTP_PROXY=http://localhost:1080 RECORD_FIXTURES=true cypress open",
|
2019-03-28 14:16:51 -04:00
|
|
|
"test:e2e:run": "start-test test:e2e:serve 8080 test:e2e:exec",
|
|
|
|
"test:e2e:run-ci": "start-test test:e2e:serve 8080 test:e2e:exec-ci",
|
2019-10-22 19:59:13 +03:00
|
|
|
"mock:server:start": "node -e 'require(\"./cypress/utils/mock-server\").start()'",
|
|
|
|
"mock:server:stop": "node -e 'require(\"./cypress/utils/mock-server\").stop()'",
|
2019-07-18 23:59:31 +03:00
|
|
|
"lint": "run-p -c --aggregate-output \"lint:*\"",
|
2019-12-16 12:17:37 -05:00
|
|
|
"lint-quiet": "run-p -c --aggregate-output \"lint:* --quiet\"",
|
2019-12-18 18:16:02 +02:00
|
|
|
"lint:css": "stylelint --ignore-path .gitignore \"{packages/**/*.{css,js,jsx,ts,tsx},website/**/*.css}\"",
|
|
|
|
"lint:js": "eslint --color --ignore-path .gitignore \"{{packages,scripts,website}/**/,}*.{js,jsx,ts,tsx}\"",
|
|
|
|
"lint:format": "prettier \"{{packages,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\" --list-different",
|
2019-12-16 12:17:37 -05:00
|
|
|
"format": "run-s \"lint:js --fix --quiet\" \"format:prettier --write\"",
|
2019-12-18 18:16:02 +02:00
|
|
|
"format:prettier": "prettier \"{{packages,scripts,website}/**/,}*.{js,jsx,ts,tsx,css}\"",
|
2019-03-07 21:24:27 -05:00
|
|
|
"publish": "run-s publish:before-manual-version publish:after-manual-version",
|
2019-03-22 12:04:35 -04:00
|
|
|
"publish:ci": "run-s publish:prepare \"publish:version --yes\" build publish:push-git \"publish:from-git --yes\"",
|
2019-03-22 10:46:12 -04:00
|
|
|
"publish:before-manual-version": "run-s publish:prepare publish:version",
|
|
|
|
"publish:after-manual-version": "run-s build publish:push",
|
|
|
|
"publish:prepare": "run-s bootstrap test",
|
2018-11-05 13:32:39 -05:00
|
|
|
"publish:version": "lerna version --no-push",
|
2019-03-14 15:53:22 -04:00
|
|
|
"publish:push": "run-s publish:push-git publish:from-git",
|
|
|
|
"publish:push-git": "git push --follow-tags",
|
2019-03-21 12:12:16 -04:00
|
|
|
"publish:from-git": "lerna publish from-git --pre-dist-tag beta",
|
2019-03-14 15:53:22 -04:00
|
|
|
"publish:dry-run": "run-s \"publish:version --no-git-tag-version\"",
|
2019-03-21 12:12:16 -04:00
|
|
|
"publish:prerelease": "run-s publish:prerelease:before-manual-version publish:after-manual-version",
|
2019-03-22 12:04:35 -04:00
|
|
|
"publish:prerelease:ci": "run-s publish:prepare \"publish:version --conventional-prerelease --yes\" build publish:push-git \"publish:from-git --yes\"",
|
2019-03-22 10:46:12 -04:00
|
|
|
"publish:prerelease:before-manual-version": "run-s publish:prepare publish:prerelease:version",
|
2019-03-21 16:48:05 -04:00
|
|
|
"publish:prerelease:version": "run-s \"publish:version --conventional-prerelease\"",
|
2019-03-21 17:16:57 -04:00
|
|
|
"publish:prerelease:dry-run": "run-s \"publish:version --conventional-prerelease --no-git-tag-version\"",
|
2019-03-21 12:12:16 -04:00
|
|
|
"publish:graduate": "run-s publish:graduate:before-manual-version publish:after-manual-version",
|
2019-03-22 12:04:35 -04:00
|
|
|
"publish:graduate:ci": "run-s publish:prepare \"publish:version --conventional-graduate --yes\" build publish:push-git \"publish:from-git --yes\"",
|
2019-03-22 10:46:12 -04:00
|
|
|
"publish:graduate:before-manual-version": "run-s publish:prepare publish:graduate:version",
|
2019-03-21 16:48:05 -04:00
|
|
|
"publish:graduate:version": "run-s \"publish:version --conventional-graduate\"",
|
2020-01-19 17:53:11 +02:00
|
|
|
"publish:graduate:dry-run": "run-s \"publish:version --conventional-graduate --no-git-tag-version\"",
|
|
|
|
"storybook": "start-storybook -p 6006",
|
|
|
|
"build-storybook": "build-storybook"
|
2018-07-06 18:56:28 -04:00
|
|
|
},
|
2017-10-13 16:47:50 -06:00
|
|
|
"browserslist": [
|
|
|
|
"last 2 Chrome versions",
|
|
|
|
"last 2 Opera versions",
|
|
|
|
"last 2 Firefox versions",
|
|
|
|
"last 2 Edge versions",
|
|
|
|
"last 2 Safari versions",
|
|
|
|
"last 2 iOS versions",
|
2017-10-16 12:29:45 -07:00
|
|
|
"last 2 ChromeAndroid versions"
|
2017-10-13 16:47:50 -06:00
|
|
|
],
|
2016-02-25 00:45:56 -08:00
|
|
|
"devDependencies": {
|
2020-09-07 11:09:56 +03:00
|
|
|
"@babel/cli": "^7.11.6",
|
|
|
|
"@babel/core": "^7.11.6",
|
2020-08-26 16:08:20 +03:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
|
|
"@babel/plugin-proposal-export-default-from": "^7.10.4",
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
|
|
|
|
"@babel/plugin-proposal-numeric-separator": "^7.10.4",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
|
|
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
|
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
2020-09-07 11:09:56 +03:00
|
|
|
"@babel/preset-env": "^7.11.5",
|
2020-08-26 16:08:20 +03:00
|
|
|
"@babel/preset-react": "^7.10.4",
|
|
|
|
"@babel/preset-typescript": "^7.10.4",
|
2020-09-14 10:24:47 +03:00
|
|
|
"@commitlint/cli": "^11.0.0",
|
|
|
|
"@commitlint/config-conventional": "^11.0.0",
|
2019-09-03 21:56:20 +03:00
|
|
|
"@octokit/rest": "^16.28.7",
|
2020-01-19 17:53:11 +02:00
|
|
|
"@storybook/addon-actions": "^5.3.6",
|
|
|
|
"@storybook/addon-links": "^5.3.6",
|
|
|
|
"@storybook/react": "^5.3.6",
|
2020-09-07 11:45:53 +03:00
|
|
|
"@testing-library/dom": "^7.24.1",
|
2020-07-22 14:21:13 +03:00
|
|
|
"@testing-library/jest-dom": "^5.11.1",
|
2020-09-07 12:49:36 +03:00
|
|
|
"@testing-library/react": "^11.0.2",
|
2019-12-18 18:16:02 +02:00
|
|
|
"@types/common-tags": "^1.8.0",
|
2020-09-07 11:48:29 +03:00
|
|
|
"@types/jest": "^26.0.13",
|
2020-09-07 13:05:12 +03:00
|
|
|
"@types/js-base64": "^3.0.0",
|
2020-01-15 00:15:14 +02:00
|
|
|
"@types/jwt-decode": "^2.2.1",
|
2019-12-18 18:16:02 +02:00
|
|
|
"@types/lodash": "^4.14.149",
|
|
|
|
"@types/uuid": "^3.4.6",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^2.9.0",
|
|
|
|
"@typescript-eslint/parser": "^2.9.0",
|
2019-03-18 15:46:00 -04:00
|
|
|
"all-contributors-cli": "^6.0.0",
|
2020-10-26 12:32:45 +02:00
|
|
|
"axios": "^0.21.0",
|
2018-07-25 19:17:34 -04:00
|
|
|
"babel-core": "^7.0.0-bridge.0",
|
2019-12-18 18:16:02 +02:00
|
|
|
"babel-eslint": "^11.0.0-beta.2",
|
2020-08-17 14:00:32 +03:00
|
|
|
"babel-jest": "^26.0.0",
|
2019-03-15 10:19:57 -04:00
|
|
|
"babel-loader": "^8.0.5",
|
|
|
|
"babel-plugin-emotion": "^10.0.9",
|
2019-12-16 12:17:37 -05:00
|
|
|
"babel-plugin-inline-json-import": "^0.3.2",
|
2019-09-30 11:52:26 -04:00
|
|
|
"babel-plugin-inline-react-svg": "^1.1.0",
|
2018-07-17 11:37:17 -04:00
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
2020-07-21 23:30:13 +03:00
|
|
|
"babel-plugin-module-resolver": "^4.0.0",
|
2018-07-17 11:37:17 -04:00
|
|
|
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
2020-07-21 23:44:51 +03:00
|
|
|
"babel-plugin-transform-define": "2.0.0",
|
2018-07-17 11:37:17 -04:00
|
|
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
2018-07-03 15:47:15 -04:00
|
|
|
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
|
2019-12-23 11:17:25 +02:00
|
|
|
"cache-me-outside": "^0.0.10",
|
2020-07-22 15:24:41 +03:00
|
|
|
"copy-webpack-plugin": "^6.0.0",
|
2020-07-21 17:26:07 +03:00
|
|
|
"cross-env": "^7.0.0",
|
2019-06-26 14:56:15 -04:00
|
|
|
"css-loader": "^3.0.0",
|
2020-10-21 20:36:51 +02:00
|
|
|
"cypress": "^5.4.0",
|
2020-08-17 14:18:01 +03:00
|
|
|
"cypress-file-upload": "^4.0.0",
|
2019-12-18 18:16:02 +02:00
|
|
|
"cypress-image-snapshot": "^3.1.1",
|
|
|
|
"cypress-jest-adapter": "^0.1.1",
|
2019-12-16 12:17:37 -05:00
|
|
|
"cypress-plugin-tab": "^1.0.0",
|
2019-09-03 21:56:20 +03:00
|
|
|
"dotenv": "^8.0.0",
|
2020-08-17 13:23:29 +03:00
|
|
|
"eslint": "^7.0.0",
|
2019-09-03 21:56:20 +03:00
|
|
|
"eslint-plugin-cypress": "^2.6.0",
|
2019-03-15 10:19:57 -04:00
|
|
|
"eslint-plugin-emotion": "^10.0.7",
|
2019-12-18 18:16:02 +02:00
|
|
|
"eslint-plugin-import": "^2.18.2",
|
|
|
|
"eslint-plugin-prettier": "^3.1.1",
|
|
|
|
"eslint-plugin-react": "^7.17.0",
|
2018-07-23 12:30:15 -04:00
|
|
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
2020-08-17 14:18:32 +03:00
|
|
|
"fs-extra": "^9.0.0",
|
2020-01-15 00:15:14 +02:00
|
|
|
"gitlab": "^14.1.1",
|
2019-12-02 11:14:35 +02:00
|
|
|
"http-server": "^0.12.0",
|
2020-08-17 13:13:36 +03:00
|
|
|
"husky": "^4.0.0",
|
2020-07-22 14:21:13 +03:00
|
|
|
"jest": "^26.1.0",
|
|
|
|
"jest-cli": "^26.1.0",
|
|
|
|
"jest-emotion": "^10.0.32",
|
2019-09-03 21:56:20 +03:00
|
|
|
"js-yaml": "^3.13.1",
|
2019-12-18 18:16:02 +02:00
|
|
|
"mockserver-client": "^5.8.0",
|
|
|
|
"mockserver-node": "^5.8.0",
|
2019-03-28 14:16:51 -04:00
|
|
|
"ncp": "^2.0.0",
|
2020-08-17 14:18:52 +03:00
|
|
|
"nock": "^13.0.0",
|
2019-06-26 11:51:35 -04:00
|
|
|
"node-fetch": "^2.3.0",
|
2018-11-27 16:33:53 +01:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-11-18 17:51:51 +02:00
|
|
|
"prettier": "^1.19.1",
|
2020-01-19 17:53:11 +02:00
|
|
|
"react": "^16.12.0",
|
|
|
|
"react-dom": "^16.12.0",
|
2019-03-15 10:19:57 -04:00
|
|
|
"react-test-renderer": "^16.8.4",
|
2019-12-16 12:17:37 -05:00
|
|
|
"rehype": "^7.0.0",
|
2019-10-22 10:54:18 -04:00
|
|
|
"rimraf": "^3.0.0",
|
2020-05-11 12:16:30 +03:00
|
|
|
"simple-git": "^2.0.0",
|
2019-03-15 10:19:57 -04:00
|
|
|
"start-server-and-test": "^1.7.11",
|
2020-08-26 15:05:12 +03:00
|
|
|
"stylelint": "^13.0.0",
|
2020-08-26 13:12:32 +03:00
|
|
|
"stylelint-config-recommended": "^3.0.0",
|
2018-08-07 14:46:54 -06:00
|
|
|
"stylelint-config-styled-components": "^0.1.1",
|
2019-03-16 15:44:29 -07:00
|
|
|
"svg-inline-loader": "^0.8.0",
|
|
|
|
"to-string-loader": "^1.1.5",
|
2019-12-18 18:16:02 +02:00
|
|
|
"typescript": "^3.7.2",
|
2019-12-16 12:17:37 -05:00
|
|
|
"unist-util-visit": "^1.4.0",
|
2019-03-16 15:44:29 -07:00
|
|
|
"webpack": "^4.29.6",
|
2020-10-12 16:20:07 +03:00
|
|
|
"webpack-cli": "^4.0.0",
|
2019-03-16 15:44:29 -07:00
|
|
|
"webpack-dev-server": "^3.2.1"
|
2016-05-30 16:55:32 -07:00
|
|
|
},
|
2019-12-16 12:17:37 -05:00
|
|
|
"workspaces": {
|
|
|
|
"packages": [
|
|
|
|
"packages/*"
|
|
|
|
],
|
|
|
|
"nohoist": [
|
|
|
|
"husky",
|
|
|
|
"run-node"
|
|
|
|
]
|
|
|
|
},
|
2019-03-15 10:19:57 -04:00
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2020-08-26 13:16:26 +03:00
|
|
|
"@emotion/babel-preset-css-prop": "^10.0.27",
|
2019-06-14 12:03:51 -04:00
|
|
|
"emotion": "^10.0.9",
|
2019-12-18 18:16:02 +02:00
|
|
|
"eslint-config-prettier": "^6.7.0",
|
2019-12-16 12:17:37 -05:00
|
|
|
"eslint-plugin-babel": "^5.3.0",
|
2019-06-14 12:03:51 -04:00
|
|
|
"lerna": "^3.15.0"
|
2019-10-27 09:32:34 +02:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
|
|
}
|
2020-07-09 19:08:18 +03:00
|
|
|
},
|
|
|
|
"resolutions": {
|
|
|
|
"react-redux": "^7.2.0"
|
2019-03-15 10:19:57 -04:00
|
|
|
}
|
2018-08-03 19:23:43 -04:00
|
|
|
}
|