mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
* Speed up installs with pnp * Move to a better relative path test * Continue work on new test organization * Move mjs test to new enhanced tests * Move over last legacy test * Update behavior e2e script * Add first iteration of instructions to test readme * Add some more bad instructions * Split test command into multiple lines * Use two workers (do not run in band) * Bump install timeout * No global pollution * Fix PnP support via standard run mechanism * Prevent circular serve command * Silent yarn execs * Fix common commands by using a shell * Run with npx instead of Yarn * Remove unused scripts * Wait for localhost and fix script booting with PnP * Don't pnp locally because links will cause module resolution to whine * lint-staged is annoying * Strip Yarn out of execa runs * Set default license if none specified * Don't impose worker limit * Disable pnp for webpack messages * Add missing dependency * Disable timeout and rely on Jest * Only use 2 jest workers * Add missing dependency
56 lines
1.7 KiB
JSON
56 lines
1.7 KiB
JSON
{
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "cd packages/react-scripts && node bin/react-scripts.js build",
|
|
"changelog": "lerna-changelog",
|
|
"create-react-app": "node tasks/cra.js",
|
|
"e2e": "tasks/e2e-simple.sh",
|
|
"e2e:docker": "tasks/local-test.sh",
|
|
"postinstall": "cd packages/react-error-overlay/ && yarn build:prod",
|
|
"publish": "tasks/publish.sh",
|
|
"start": "cd packages/react-scripts && node bin/react-scripts.js start",
|
|
"screencast": "node ./tasks/screencast.js",
|
|
"screencast:error": "svg-term --cast jyu19xGl88FQ3poMY8Hbmfw8y --out screencast-error.svg --window --at 12000 --no-cursor",
|
|
"test": "cd packages/react-scripts && node bin/react-scripts.js test",
|
|
"format": "prettier --trailing-comma es5 --single-quote --write 'packages/*/*.js' 'packages/*/!(node_modules)/**/*.js'",
|
|
"compile:lockfile": "node tasks/compile-lockfile.js"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "5.6.0",
|
|
"execa": "1.0.0",
|
|
"fs-extra": "^7.0.0",
|
|
"get-port": "^4.0.0",
|
|
"globby": "^8.0.1",
|
|
"husky": "1.0.0-rc.15",
|
|
"jest": "^23.6.0",
|
|
"lerna": "2.9.1",
|
|
"lerna-changelog": "^0.8.0",
|
|
"lint-staged": "^7.0.5",
|
|
"meow": "^5.0.0",
|
|
"multimatch": "^2.1.0",
|
|
"prettier": "1.14.3",
|
|
"puppeteer": "^1.8.0",
|
|
"strip-ansi": "^4.0.0",
|
|
"svg-term-cli": "^2.1.1",
|
|
"tempy": "^0.2.1",
|
|
"wait-for-localhost": "2.0.1"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,md,css}": [
|
|
"prettier --trailing-comma es5 --single-quote --write",
|
|
"git add"
|
|
],
|
|
"yarn.lock": [
|
|
"git rm --cached"
|
|
]
|
|
}
|
|
}
|