|
1 | 1 | {
|
2 | 2 | "private": true,
|
3 | 3 | "version": "0.0.0",
|
4 |
| - "name": "monorepo", |
| 4 | + "name": "react-ui-monorepo", |
5 | 5 | "scripts": {
|
6 | 6 | "clean": "del-cli ./packages/*/dist",
|
7 |
| - "compile": "npm-run-all clean -p \"compile:* {@}\" --", |
8 |
| - "compile:commonjs": "cd packages/react-native-web && cross-env BABEL_ENV=commonjs babel --config-file ../../configs/babel.config.js src --out-dir dist/cjs --ignore \"**/__tests__\"", |
9 |
| - "compile:es": "cd packages/react-native-web && babel --config-file ../../configs/babel.config.js src --out-dir dist --ignore \"**/__tests__\"", |
10 |
| - "compile:flow": "gen-flow-files packages/react-native-web/src --out-dir packages/react-native-web/dist", |
11 |
| - "benchmarks": "cd packages/benchmarks && yarn dev", |
12 |
| - "benchmarks:build": "cd packages/benchmarks && yarn build", |
13 |
| - "benchmarks:release": "yarn benchmarks:build && git checkout gh-pages && rm -rf ./docs/benchmarks && mv packages/benchmarks/dist ./docs/benchmarks && git add -A && git commit -m \"Deploy benchmarks\" && git push origin gh-pages && git checkout -", |
14 |
| - "docs": "cd packages/react-native-web-docs && yarn dev", |
15 |
| - "docs:build": "cd packages/react-native-web-docs && yarn build", |
16 |
| - "docs:release": "yarn docs:build && git checkout gh-pages && rm -rf ./docs && mv packages/react-native-web-docs/dist ./docs && git add ./docs && git commit -m \"Deploy documentation\" && git push origin gh-pages && git checkout -", |
17 |
| - "examples": "cd packages/react-native-web-examples && yarn dev", |
18 |
| - "examples:build": "cd packages/react-native-web-examples && yarn build", |
| 7 | + "build": "npm run clean && npm run build --workspaces --if-present", |
| 8 | + "dev": "npm run dev --workspaces --if-present", |
19 | 9 | "flow": "flow --flowconfig-name ./configs/.flowconfig",
|
20 |
| - "fmt": "prettier --write \"**/*.js\" --ignore-path ./configs/.prettierignore", |
21 |
| - "fmt:report": "prettier --check --ignore-path ./configs/.prettierignore \"**/*.js\"", |
22 |
| - "jest": "npm-run-all \"jest:* {@}\" --", |
23 |
| - "jest:dom": "jest --config ./configs/jest.config.js", |
24 |
| - "jest:node": "jest --config ./configs/jest.config.node.js", |
25 |
| - "lint": "yarn lint:report --fix", |
26 |
| - "lint:report": "eslint configs packages scripts --config ./configs/.eslintrc", |
27 |
| - "prerelease": "yarn test && yarn compile", |
| 10 | + "format": "prettier --check --ignore-path ./configs/.prettierignore \"**/*.js\"", |
| 11 | + "format:fix": "prettier --write \"**/*.js\" --ignore-path ./configs/.prettierignore", |
| 12 | + "lint": "eslint configs packages scripts --config ./configs/.eslintrc", |
| 13 | + "lint:fix": "npm run lint --fix", |
| 14 | + "prerelease": "npm run test && npm run build", |
28 | 15 | "release": "node ./scripts/releaseReactNativeWebPackages.js",
|
29 |
| - "postrelease": "yarn docs:release && yarn benchmarks:release", |
30 |
| - "test": "yarn flow && yarn fmt:report && yarn lint:report && yarn jest --runInBand" |
| 16 | + "release:benchmarks": "git checkout gh-pages && rm -rf ./docs/benchmarks && mv packages/benchmarks/dist ./docs/benchmarks && git add -A && git commit -m \"Deploy benchmarks\" && git push origin gh-pages && git checkout -", |
| 17 | + "release:react-native-web-docs": "git checkout gh-pages && rm -rf ./docs && mv packages/react-native-web-docs/dist ./docs && git add ./docs && git commit -m \"Deploy documentation\" && git push origin gh-pages && git checkout -", |
| 18 | + "postrelease": "npm run release:react-native-web-docs && npm run release:benchmarks", |
| 19 | + "test": "npm run flow && npm run format && npm run lint && npm run unit --runInBand", |
| 20 | + "unit": "npm-run-all \"unit:* {@}\" --", |
| 21 | + "unit:dom": "jest --config ./configs/jest.config.js", |
| 22 | + "unit:node": "jest --config ./configs/jest.config.node.js" |
31 | 23 | },
|
32 | 24 | "devDependencies": {
|
33 | 25 | "@babel/cli": "^7.12.13",
|
|
83 | 75 | "git add ./packages/babel-plugin-react-native-web/src/moduleMap.js"
|
84 | 76 | ],
|
85 | 77 | "**/*.js": [
|
86 |
| - "prettier --write --ignore-path ./configs/.prettierignore", |
87 |
| - "git update-index --again", |
88 |
| - "yarn lint" |
| 78 | + "npm run format:fix", |
| 79 | + "npm run lint:fix", |
| 80 | + "git update-index --again" |
89 | 81 | ]
|
90 | 82 | },
|
91 | 83 | "prettier": {
|
|
0 commit comments