mirror of
https://github.com/zoriya/react-native-web.git
synced 2025-12-05 22:26:13 +00:00
89 lines
3.4 KiB
JSON
89 lines
3.4 KiB
JSON
{
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"name": "react-ui-monorepo",
|
|
"scripts": {
|
|
"clean": "del-cli ./packages/*/dist",
|
|
"build": "npm run clean && npm run build --workspaces --if-present",
|
|
"compile": "npm run build",
|
|
"dev": "npm run dev --workspaces --if-present",
|
|
"flow": "flow --flowconfig-name ./configs/.flowconfig",
|
|
"format": "prettier --check --ignore-path ./configs/.prettierignore \"**/*.js\"",
|
|
"format:fix": "prettier --write --ignore-path ./configs/.prettierignore \"**/*.js\"",
|
|
"lint": "eslint configs packages scripts --config ./configs/.eslintrc",
|
|
"lint:fix": "npm run lint --fix",
|
|
"prerelease": "npm run test && npm run build",
|
|
"release": "node ./scripts/releaseReactNativeWebPackages.js",
|
|
"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 -",
|
|
"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 -",
|
|
"postrelease": "npm run release:react-native-web-docs && npm run release:benchmarks",
|
|
"prepare": "husky install configs/husky",
|
|
"test": "npm run flow && npm run format && npm run lint && npm run unit --runInBand",
|
|
"unit": "npm-run-all \"unit:* {@}\" --",
|
|
"unit:dom": "jest --config ./configs/jest.config.js",
|
|
"unit:node": "jest --config ./configs/jest.config.node.js"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.18.6",
|
|
"@babel/core": "^7.18.6",
|
|
"@babel/eslint-parser": "^7.18.2",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.18.6",
|
|
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
"@babel/preset-env": "^7.18.6",
|
|
"@babel/preset-flow": "^7.18.6",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@testing-library/react": "^13.3.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^28.1.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": "^4.0.1",
|
|
"eslint": "^8.19.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
"eslint-plugin-promise": "^6.0.0",
|
|
"eslint-plugin-react": "^7.30.1",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"flow-bin": "0.148.0",
|
|
"gen-flow-files": "^0.4.11",
|
|
"glob": "^8.0.3",
|
|
"husky": "^8.0.0",
|
|
"inline-style-prefixer": "^6.0.0",
|
|
"jest": "^28.1.2",
|
|
"jest-environment-jsdom": "^28.1.2",
|
|
"lint-staged": "^13.0.3",
|
|
"minimist": "^1.2.6",
|
|
"npm-run-all": "^4.1.3",
|
|
"prettier": "^2.7.1"
|
|
},
|
|
"workspaces": [
|
|
"packages/react-native-web",
|
|
"packages/*"
|
|
],
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"packages/react-native-web/src/index.js": [
|
|
"node ./scripts/createBabelReactNativeWebModuleMap.js",
|
|
"prettier --write ./packages/babel-plugin-react-native-web/src/moduleMap.js"
|
|
],
|
|
"**/*.js": [
|
|
"npm run format:fix",
|
|
"npm run lint:fix"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"trailingComma": "none"
|
|
},
|
|
"author": "Nicolas Gallagher",
|
|
"license": "MIT"
|
|
}
|