ebc2471c6b
Prettier formatting our markdown files is causing bugs because of the differences between Gatsby's parser and Prettier's. Also, Prettier formats the inline code-blocks containing example CMS configs, but the formatting it uses doesn't really make much sense or match the suggested CMS config style. It doesn't actually make much sense to format the docs anyway, since we use the CMS itself to edit/generate them.
97 lines
3.8 KiB
JSON
97 lines
3.8 KiB
JSON
{
|
|
"scripts": {
|
|
"bootstrap": "yarn && lerna bootstrap",
|
|
"start": "run-s bootstrap develop",
|
|
"watch": "lerna run watch --parallel",
|
|
"develop": "lerna run develop --parallel",
|
|
"build": "npm run clean && lerna run build",
|
|
"build-preview": "npm run build && lerna run build-preview",
|
|
"clean": "rimraf packages/*/dist dev-test/*.js",
|
|
"reset": "npm run clean && lerna clean --yes",
|
|
"cache-ci": "node scripts/cache.js",
|
|
"test": "run-s jest e2e",
|
|
"test-ci": "run-s cache-ci jest e2e-ci lint-quiet",
|
|
"jest": "cross-env NODE_ENV=test jest --no-cache",
|
|
"e2e-prep": "npm run build && cp -r packages/netlify-cms/dist dev-test/",
|
|
"e2e-serve": "http-server dev-test",
|
|
"e2e-exec": "cypress run",
|
|
"e2e-exec-ci": "cypress run --record",
|
|
"e2e-exec-dev": "cypress open",
|
|
"e2e-run": "start-test e2e-serve 8080 e2e-exec",
|
|
"e2e-run-ci": "start-test e2e-serve 8080 e2e-exec-ci",
|
|
"e2e": "run-s e2e-prep e2e-run",
|
|
"e2e-ci": "run-s e2e-prep e2e-run-ci",
|
|
"e2e-dev": "start-test develop 8080 e2e-exec-dev",
|
|
"dryrun": "lerna publish --skip-npm --skip-git",
|
|
"publish": "run-s bootstrap dryrun build && git checkout . && lerna publish",
|
|
"format": "run-s \"lint:css -- --fix --quiet\" \"lint:js -- --fix --quiet\" \"format:prettier -- --write\"",
|
|
"format:prettier": "prettier \"{{packages,scripts,website}/**/,}*.{js,css}\"",
|
|
"lint": "run-p -c --aggregate-output lint:*",
|
|
"lint-quiet": "run-p -c --aggregate-output \"lint:* -- --quiet\"",
|
|
"lint:css": "stylelint --ignore-path .gitignore \"{packages/**/*.{css,js},website/**/*.css}\"",
|
|
"lint:js": "eslint --ignore-path .gitignore \"{{packages,scripts,website}/**/,}*.js\"",
|
|
"lint:format": "npm run format:prettier -- --list-different",
|
|
"add-contributor": "all-contributors add"
|
|
},
|
|
"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",
|
|
"last 2 ChromeAndroid versions"
|
|
],
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.0.0-beta.54",
|
|
"@babel/core": "^7.0.0-beta.54",
|
|
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.54",
|
|
"@babel/plugin-proposal-export-default-from": "^7.0.0-beta.54",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.54",
|
|
"@babel/preset-env": "^7.0.0-beta.54",
|
|
"@babel/preset-react": "^7.0.0-beta.54",
|
|
"all-contributors-cli": "^4.4.0",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^9.0.0-beta.3",
|
|
"babel-jest": "^23.4.0",
|
|
"babel-loader": "^8.0.0-beta",
|
|
"babel-plugin-emotion": "^9.2.4",
|
|
"babel-plugin-inline-svg": "^1.0.0",
|
|
"babel-plugin-lodash": "^3.3.4",
|
|
"babel-plugin-module-resolver": "^3.0.0",
|
|
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
|
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
|
|
"cache-me-outside": "^0.0.4",
|
|
"cross-env": "^5.1.4",
|
|
"cypress": "^3.0.3",
|
|
"deep-equal": "^1.0.1",
|
|
"enzyme": "^3.1.0",
|
|
"enzyme-adapter-react-16": "^1.0.2",
|
|
"eslint": "^5.3.0",
|
|
"eslint-plugin-react": "^7.10.0",
|
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
"http-server": "^0.11.1",
|
|
"jest": "^23.4.0",
|
|
"jest-cli": "^23.4.0",
|
|
"jest-emotion": "^9.2.7",
|
|
"lerna": "^2.11.0",
|
|
"npm-run-all": "^4.1.3",
|
|
"prettier": "1.14.0",
|
|
"raf": "^3.4.0",
|
|
"react-test-renderer": "^16.0.0",
|
|
"rimraf": "^2.6.2",
|
|
"start-server-and-test": "^1.7.0",
|
|
"style-loader": "^0.21.0",
|
|
"stylelint": "^9.4.0",
|
|
"stylelint-config-recommended": "^2.1.0",
|
|
"stylelint-config-styled-components": "^0.1.1",
|
|
"stylelint-processor-styled-components": "^1.3.1",
|
|
"svg-inline-loader": "^0.8.0"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"private": true
|
|
}
|