mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-13 03:22:56 +00:00
91 lines
3.6 KiB
JSON
91 lines
3.6 KiB
JSON
{
|
|
"private": true,
|
|
"version": "0.14.13",
|
|
"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 dev",
|
|
"benchmarks:build": "cd packages/benchmarks && yarn build",
|
|
"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 -",
|
|
"docs": "cd packages/docs && yarn dev",
|
|
"docs:build": "cd packages/docs && yarn build",
|
|
"docs:release": "yarn docs:build && git checkout gh-pages && rm -rf ./docs && mv packages/docs/dist ./docs && git add ./docs && git commit -m \"Deploy documentation\" && git push origin gh-pages && git checkout -",
|
|
"examples": "cd packages/examples && yarn dev",
|
|
"examples:build": "cd packages/examples && yarn build",
|
|
"flow": "flow",
|
|
"fmt": "prettier --write \"**/*.js\"",
|
|
"fmt:report": "prettier --check \"**/*.js\"",
|
|
"jest": "jest --config ./scripts/jest/config.js",
|
|
"lint": "yarn lint:report --fix",
|
|
"lint:report": "eslint packages scripts",
|
|
"precommit": "lint-staged",
|
|
"prerelease": "yarn test && yarn compile && yarn compile:commonjs",
|
|
"release": "node ./scripts/release/publish.js",
|
|
"postrelease": "yarn docs:release && yarn benchmarks:release && ",
|
|
"test": "yarn flow && yarn lint:report && yarn jest --runInBand"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.12.13",
|
|
"@babel/core": "^7.12.13",
|
|
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.12.13",
|
|
"@babel/plugin-transform-runtime": "^7.12.15",
|
|
"@babel/preset-env": "^7.12.13",
|
|
"@babel/preset-flow": "^7.12.13",
|
|
"@babel/preset-react": "^7.12.13",
|
|
"@testing-library/react": "^11.2.5",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^26.6.3",
|
|
"babel-loader": "^8.2.2",
|
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
"caniuse-api": "^3.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"del-cli": "^3.0.1",
|
|
"eslint": "^7.19.0",
|
|
"eslint-config-prettier": "^7.2.0",
|
|
"eslint-plugin-flowtype": "^5.2.0",
|
|
"eslint-plugin-promise": "^4.2.1",
|
|
"eslint-plugin-react": "^7.22.0",
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
"flow-bin": "^0.109.0",
|
|
"glob": "^7.1.6",
|
|
"husky": "^3.0.8",
|
|
"inline-style-prefixer": "^5.1.0",
|
|
"jest": "^25.5.0",
|
|
"jest-canvas-mock": "^2.3.1",
|
|
"lint-staged": "^9.4.2",
|
|
"npm-run-all": "^4.1.3",
|
|
"prettier": "^2.2.1",
|
|
"react": "^17.0.1",
|
|
"react-dom": "^17.0.1",
|
|
"react-test-renderer": "^17.0.1"
|
|
},
|
|
"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,
|
|
"trailingComma": "none"
|
|
},
|
|
"author": "Nicolas Gallagher",
|
|
"license": "MIT"
|
|
}
|