mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
120 lines
3.2 KiB
JSON
120 lines
3.2 KiB
JSON
{
|
|
"name": "react-native-web",
|
|
"version": "0.0.129",
|
|
"description": "React Native for Web",
|
|
"main": "dist/index.js",
|
|
"files": [
|
|
"babel",
|
|
"dist",
|
|
"src",
|
|
"!**/__tests__"
|
|
],
|
|
"scripts": {
|
|
"benchmark": "cd benchmarks && yarn && webpack && open index.html",
|
|
"build": "yarn compile && webpack --config webpack.config.js --sort-assets-by --progress",
|
|
"clean-dist": "del ./dist && mkdir dist",
|
|
"compile": "babel src -d dist --ignore *-test.js",
|
|
"docs:build": "cd docs && yarn build",
|
|
"docs:start": "cd docs && yarn && yarn start",
|
|
"docs:release": "cd docs && yarn release",
|
|
"flow": "flow",
|
|
"fmt": "find babel benchmarks docs src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs yarn fmt:cmd",
|
|
"fmt:cmd": "prettier --print-width=100 --single-quote --write",
|
|
"jest": "jest",
|
|
"jest:watch": "yarn test -- --watch",
|
|
"lint": "yarn lint:cmd -- babel benchmarks docs src",
|
|
"lint:cmd": "eslint --ignore-path .gitignore --fix",
|
|
"precommit": "lint-staged",
|
|
"release": "yarn clean-dist && yarn lint && yarn test && yarn build && npm publish",
|
|
"test": "flow && jest"
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"react-native"
|
|
],
|
|
"plugins": [
|
|
[
|
|
"transform-react-remove-prop-types",
|
|
{
|
|
"mode": "wrap"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "jsdom",
|
|
"timers": "fake",
|
|
"snapshotSerializers": [
|
|
"<rootDir>/node_modules/enzyme-to-json/serializer"
|
|
]
|
|
},
|
|
"lint-staged": {
|
|
"**/*.js": [
|
|
"fmt:cmd",
|
|
"git update-index --again",
|
|
"lint:cmd"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"animated": "^0.2.0",
|
|
"array-find-index": "^1.0.2",
|
|
"babel-runtime": "^6.26.0",
|
|
"create-react-class": "^15.6.0",
|
|
"debounce": "1.0.2",
|
|
"deep-assign": "^2.0.0",
|
|
"fbjs": "^0.8.14",
|
|
"hyphenate-style-name": "^1.0.2",
|
|
"inline-style-prefixer": "^3.0.7",
|
|
"normalize-css-color": "^1.0.2",
|
|
"prop-types": "^15.5.10",
|
|
"react-timer-mixin": "^0.13.3"
|
|
},
|
|
"devDependencies": {
|
|
"babel-cli": "^6.26.0",
|
|
"babel-core": "^6.26.0",
|
|
"babel-eslint": "^7.2.3",
|
|
"babel-loader": "^7.1.2",
|
|
"babel-plugin-tester": "^4.0.0",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.8",
|
|
"babel-preset-react-native": "^3.0.2",
|
|
"caniuse-api": "^2.0.0",
|
|
"del-cli": "^1.1.0",
|
|
"enzyme": "^2.9.1",
|
|
"enzyme-to-json": "^1.5.1",
|
|
"eslint": "^4.6.1",
|
|
"eslint-config-prettier": "^2.4.0",
|
|
"eslint-plugin-promise": "^3.5.0",
|
|
"eslint-plugin-react": "^7.3.0",
|
|
"file-loader": "^0.11.2",
|
|
"flow-bin": "^0.49.1",
|
|
"jest": "^21.0.2",
|
|
"lint-staged": "^4.1.3",
|
|
"prettier": "^1.6.1",
|
|
"react": "^15.6.1",
|
|
"react-dom": "^15.6.1",
|
|
"react-test-renderer": "^15.6.1",
|
|
"url-loader": "^0.5.9",
|
|
"webpack": "^3.5.6",
|
|
"webpack-bundle-analyzer": "^2.9.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "15.4.x || 15.5.x || 15.6.x",
|
|
"react-dom": "15.4.x || 15.5.x || 15.6.x"
|
|
},
|
|
"author": "Nicolas Gallagher",
|
|
"license": "BSD-3-Clause",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/necolas/react-native-web.git"
|
|
},
|
|
"tags": [
|
|
"react"
|
|
],
|
|
"keywords": [
|
|
"react",
|
|
"react-component",
|
|
"react-native",
|
|
"web"
|
|
]
|
|
}
|