backup
正在显示
.storybook/.babelrc
0 → 100644
.storybook/middleware.js
0 → 100644
.storybook/webpack.config.js
0 → 100644
karma.conf.js
deleted
100644 → 0
... | @@ -3,9 +3,11 @@ | ... | @@ -3,9 +3,11 @@ |
"scripts": { | "scripts": { | ||
"start": "roadhog server", | "start": "roadhog server", | ||
"build": "roadhog build", | "build": "roadhog build", | ||
"test": "cross-env BABEL_ENV=test karma start karma.config.js", | "test": "roadhog test --require ./test_setup.js", | ||
"lint": "eslint --ext .js src test", | "lint": "eslint --ext .js src test", | ||
"precommit": "npm run lint" | "precommit": "npm run lint", | ||
"storybook": "start-storybook -p 6006", | |||
"build-storybook": "build-storybook" | |||
}, | }, | ||
"engines": { | "engines": { | ||
"install-node": "6.9.2" | "install-node": "6.9.2" | ||
... | @@ -24,17 +26,20 @@ | ... | @@ -24,17 +26,20 @@ |
"moment": "^2.18.1", | "moment": "^2.18.1", | ||
"path-to-regexp": "^1.7.0", | "path-to-regexp": "^1.7.0", | ||
"prop-types": "^15.5.10", | "prop-types": "^15.5.10", | ||
"react": "^15.4.0", | "react": "^15.6.1", | ||
"react-dom": "^15.4.0", | "react-dom": "^15.6.1", | ||
"react-sizeme": "^2.3.4", | "react-sizeme": "^2.3.4", | ||
"uuid": "^3.1.0", | "uuid": "^3.1.0", | ||
"word-wrap": "^1.2.3", | "word-wrap": "^1.2.3", | ||
"xml2js": "^0.4.17" | "xml2js": "^0.4.17" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@storybook/react": "^3.1.7", | |||
"babel-eslint": "^7.1.1", | "babel-eslint": "^7.1.1", | ||
"babel-plugin-dva-hmr": "^0.3.2", | "babel-plugin-dva-hmr": "^0.3.2", | ||
"babel-plugin-transform-runtime": "^6.9.0", | "babel-plugin-transform-runtime": "^6.9.0", | ||
"babel-preset-es2016": "^6.24.1", | |||
"babel-preset-es2017": "^6.24.1", | |||
"chai": "^4.0.2", | "chai": "^4.0.2", | ||
"cross-env": "^5.0.1", | "cross-env": "^5.0.1", | ||
"enzyme": "^2.9.1", | "enzyme": "^2.9.1", | ||
... | @@ -44,9 +49,13 @@ | ... | @@ -44,9 +49,13 @@ |
"eslint-plugin-jsx-a11y": "^2.2.3", | "eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.8.0", | "eslint-plugin-react": "^6.8.0", | ||
"expect": "^1.20.2", | "expect": "^1.20.2", | ||
"http-proxy-middleware": "^0.17.4", | |||
"husky": "^0.12.0", | "husky": "^0.12.0", | ||
"karma": "^1.7.0", | "jsdom": "^11.0.0", | ||
"less": "^2.7.2", | |||
"less-loader": "^4.0.0", | |||
"mockjs": "^1.0.1-beta3", | "mockjs": "^1.0.1-beta3", | ||
"path": "^0.12.7", | |||
"react-test-renderer": "^15.6.1", | "react-test-renderer": "^15.6.1", | ||
"redbox-react": "^1.3.2", | "redbox-react": "^1.3.2", | ||
"roadhog": "^0.6.0" | "roadhog": "^0.6.0" | ||
... | ... |
test_setup.js
0 → 100644
请
注册
或者
登录
后发表评论