mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-23 20:00:57 +08:00
Refactor and React 16 compatibility (#34)
* Refactor tests, update react * Refactor * Refactor * Change script * Update npmignore * Remove unecessary code
This commit is contained in:
41
package.json
41
package.json
@@ -21,46 +21,46 @@
|
||||
"scripts": {
|
||||
"watch":
|
||||
"babel --plugins transform-es2015-modules-umd src --watch --ignore tests --out-dir ./dist",
|
||||
"prepublish":
|
||||
"babel --plugins transform-es2015-modules-umd src --ignore tests --out-dir ./dist",
|
||||
"build": "babel --plugins transform-es2015-modules-umd src --ignore tests --out-dir ./dist",
|
||||
"lint": "eslint 'src/**/*.js'",
|
||||
"prettier": "prettier --write 'src/**/*.{js,jsx,json,css}'",
|
||||
"testonly": "mocha $npm_package_options_mocha",
|
||||
"test": "npm run lint && npm run testonly",
|
||||
"test": "npm run lint && npm run testonly && npm run flow",
|
||||
"test-watch": "npm run testonly -- --watch --watch-extensions js",
|
||||
"storybook": "start-storybook -p 6006",
|
||||
"build-storybook": "build-storybook",
|
||||
"flow": "flow"
|
||||
"flow": "flow",
|
||||
"precommit": "npm run test",
|
||||
"prepush": "npm run test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "^3.1.9",
|
||||
"babel-cli": "^6.6.4",
|
||||
"babel-core": "^6.7.4",
|
||||
"babel-eslint": "^6.0.2",
|
||||
"babel-eslint": "^8.0.2",
|
||||
"babel-plugin-transform-es2015-modules-umd": "^6.6.5",
|
||||
"babel-polyfill": "^6.7.4",
|
||||
"babel-preset-es2015": "^6.6.0",
|
||||
"babel-preset-flow": "^6.23.0",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"babel-preset-stage-2": "^6.5.0",
|
||||
"chai": "^3.5.0",
|
||||
"chai-enzyme": "^0.6.1",
|
||||
"enzyme": "^2.2.0",
|
||||
"eslint": "^2.7.0",
|
||||
"chai": "^4.1.2",
|
||||
"chai-enzyme": "^1.0.0-beta.0",
|
||||
"enzyme": "^3.2.0",
|
||||
"eslint": "^4.12.0",
|
||||
"eslint-config-prettier": "^2.4.0",
|
||||
"eslint-plugin-babel": "^3.1.0",
|
||||
"eslint-plugin-babel": "^4.1.2",
|
||||
"eslint-plugin-prettier": "^2.2.0",
|
||||
"eslint-plugin-react": "^4.2.3",
|
||||
"flow-bin": "^0.57.3",
|
||||
"jsdom": "^8.1.0",
|
||||
"mocha": "^2.4.5",
|
||||
"eslint-plugin-react": "^7.5.1",
|
||||
"flow-bin": "^0.59.0",
|
||||
"husky": "^0.14.3",
|
||||
"jsdom": "^11.1.0",
|
||||
"mocha": "^4.0.1",
|
||||
"nodemon": "^1.9.1",
|
||||
"prettier": "^1.6.1",
|
||||
"prop-types": "^15.5.10",
|
||||
"react": "^15.0.0",
|
||||
"react": "^16.1.1",
|
||||
"react-addons-test-utils": "^15.0.0",
|
||||
"react-dom": "^15.0.0",
|
||||
"sinon": "^1.17.3",
|
||||
"react-dom": "^16.1.1",
|
||||
"sinon": "^4.1.2",
|
||||
"uuid": "^3.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -68,6 +68,7 @@
|
||||
"react-dom": "~0.14.8 || ^15.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "^6.6.1"
|
||||
"babel-runtime": "^6.6.1",
|
||||
"enzyme-adapter-react-16": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user