mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
104 lines
3.2 KiB
JSON
104 lines
3.2 KiB
JSON
{
|
|
"name": "react-native-web",
|
|
"version": "0.0.94",
|
|
"description": "React Native for Web",
|
|
"main": "dist/index.js",
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"!**/__tests__"
|
|
],
|
|
"scripts": {
|
|
"build": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__",
|
|
"build:examples": "build-storybook -o dist-examples -c ./examples/.storybook",
|
|
"build:performance": "cd performance && yarn && webpack",
|
|
"build:umd": "webpack --config webpack.config.js --sort-assets-by --progress",
|
|
"deploy:examples": "git checkout gh-pages && rm -rf ./storybook && mv dist-examples storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -",
|
|
"examples": "start-storybook -p 9001 -c ./examples/.storybook --dont-track",
|
|
"fmt": "find examples performance src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs npm run fmt:cmd",
|
|
"fmt:cmd": "prettier --print-width=100 --single-quote --write",
|
|
"lint": "npm run lint:cmd -- examples performance src",
|
|
"lint:cmd": "eslint --fix --ignore-path .gitignore",
|
|
"precommit": "lint-staged",
|
|
"release": "npm run build && npm run build:umd && npm publish",
|
|
"test": "jest",
|
|
"test:watch": "npm run test -- --watch"
|
|
},
|
|
"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.23.0",
|
|
"create-react-class": "^15.5.2",
|
|
"debounce": "1.0.2",
|
|
"deep-assign": "^2.0.0",
|
|
"fbjs": "^0.8.12",
|
|
"hyphenate-style-name": "^1.0.2",
|
|
"inline-style-prefixer": "^3.0.3",
|
|
"normalize-css-color": "^1.0.2",
|
|
"prop-types": "^15.5.8",
|
|
"react-timer-mixin": "^0.13.3"
|
|
},
|
|
"devDependencies": {
|
|
"@kadira/storybook": "^2.5.1",
|
|
"babel-cli": "^6.24.1",
|
|
"babel-core": "^6.24.1",
|
|
"babel-eslint": "^7.2.2",
|
|
"babel-loader": "^6.4.1",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.2",
|
|
"babel-preset-react-native": "^1.9.1",
|
|
"del-cli": "^0.2.1",
|
|
"enzyme": "^2.8.2",
|
|
"enzyme-to-json": "^1.5.1",
|
|
"eslint": "^3.19.0",
|
|
"eslint-config-prettier": "^1.7.0",
|
|
"eslint-plugin-promise": "^3.5.0",
|
|
"eslint-plugin-react": "^6.10.3",
|
|
"file-loader": "^0.11.1",
|
|
"flow-bin": "^0.46.0",
|
|
"jest": "^19.0.2",
|
|
"lint-staged": "^3.4.2",
|
|
"node-libs-browser": "^0.5.3",
|
|
"prettier": "^1.3.1",
|
|
"react": "^15.5.4",
|
|
"react-addons-test-utils": "^15.5.1",
|
|
"react-dom": "^15.5.4",
|
|
"react-test-renderer": "^15.5.4",
|
|
"url-loader": "^0.5.8",
|
|
"webpack": "^2.5.0",
|
|
"webpack-bundle-analyzer": "^2.4.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "15.4.x || 15.5.x",
|
|
"react-dom": "15.4.x || 15.5.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"
|
|
]
|
|
}
|