mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-13 09:30:23 +08:00
86 lines
3.0 KiB
JSON
86 lines
3.0 KiB
JSON
{
|
|
"private": true,
|
|
"version": "0.14.7",
|
|
"name": "monorepo",
|
|
"scripts": {
|
|
"clean": "del-cli ./packages/*/dist",
|
|
"compile": "npm-run-all clean -p \"compile:* -- {@}\" --",
|
|
"compile:commonjs": "cd packages/react-native-web && cross-env BABEL_ENV=commonjs babel --root-mode upward src --out-dir dist/cjs --ignore \"**/__tests__\"",
|
|
"compile:es": "cd packages/react-native-web && babel --root-mode upward src --out-dir dist --ignore \"**/__tests__\"",
|
|
"benchmarks": "cd packages/benchmarks && yarn build",
|
|
"benchmarks:release": "cd packages/benchmarks && yarn release",
|
|
"docs": "cd packages/docs && yarn start",
|
|
"docs:release": "cd packages/docs && yarn release",
|
|
"flow": "flow",
|
|
"fmt": "prettier --write \"**/*.js\"",
|
|
"jest": "jest --config ./scripts/jest/config.js",
|
|
"lint": "yarn lint:check --fix",
|
|
"lint:check": "eslint packages scripts",
|
|
"precommit": "lint-staged",
|
|
"prerelease": "yarn test && yarn compile && yarn compile:commonjs",
|
|
"release": "node ./scripts/release/publish.js",
|
|
"postrelease": "yarn benchmarks:release && yarn docs:release",
|
|
"test": "yarn flow && yarn lint:check && yarn jest --runInBand"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.8.4",
|
|
"@babel/core": "^7.8.4",
|
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
|
|
"@babel/plugin-transform-runtime": "^7.8.3",
|
|
"@babel/preset-env": "^7.8.4",
|
|
"@babel/preset-flow": "^7.8.3",
|
|
"@babel/preset-react": "^7.8.3",
|
|
"@testing-library/react": "^9.3.0",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^25.1.0",
|
|
"babel-loader": "^8.0.6",
|
|
"babel-plugin-add-module-exports": "^1.0.2",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
"caniuse-api": "^3.0.0",
|
|
"cross-env": "^6.0.3",
|
|
"del-cli": "^3.0.0",
|
|
"eslint": "^6.5.1",
|
|
"eslint-config-prettier": "^6.4.0",
|
|
"eslint-plugin-flowtype": "^4.7.0",
|
|
"eslint-plugin-promise": "^4.2.1",
|
|
"eslint-plugin-react": "^7.16.0",
|
|
"eslint-plugin-react-hooks": "^2.3.0",
|
|
"flow-bin": "^0.109.0",
|
|
"glob": "^7.1.4",
|
|
"husky": "^3.0.8",
|
|
"inline-style-prefixer": "^5.1.0",
|
|
"jest": "^25.1.0",
|
|
"jest-canvas-mock": "^2.2.0",
|
|
"lint-staged": "^9.4.2",
|
|
"metro-react-native-babel-preset": "^0.56.0",
|
|
"npm-run-all": "^4.1.3",
|
|
"prettier": "^1.18.2",
|
|
"react": "^16.10.2",
|
|
"react-dom": "^16.10.2",
|
|
"react-test-renderer": "^16.10.2"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"lint-staged": {
|
|
"packages/react-native-web/src/index.js": [
|
|
"node ./scripts/babel/createModuleMap.js",
|
|
"prettier --write ./packages/babel-plugin-react-native-web/src/moduleMap.js",
|
|
"git add ./packages/babel-plugin-react-native-web/src/moduleMap.js"
|
|
],
|
|
"**/*.js": [
|
|
"prettier --write",
|
|
"git update-index --again",
|
|
"eslint"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"singleQuote": true
|
|
},
|
|
"author": "Nicolas Gallagher",
|
|
"license": "MIT"
|
|
}
|