|
3 | 3 | "version": "1.0.0", |
4 | 4 | "description": "", |
5 | 5 | "main": "lib/index.js", |
| 6 | + "files": [ |
| 7 | + "lib" |
| 8 | + ], |
6 | 9 | "scripts": { |
7 | 10 | "hook": "[ -d .git ] && chmod +x .pre-commit && mkdir -p .git/hooks && ln -sf ../../.pre-commit .git/hooks/pre-commit && echo \"\\x1B[01;93mAdd git pre-commit hook successed.\\x1B[0m\" || echo \"\\x1B[31mWarning: Add git pre-commit hook failed.\\x1B[0m\"", |
8 | | - "postinstall": "npm run hook", |
| 11 | + "postinstall": "npm run hook & npm run update", |
9 | 12 | "dev": "NODE_ENV=development start-storybook -p 9001", |
10 | | - "build": "NODE_ENV=production webpack --config ./webpack/webpack.config.prod.babel.js", |
| 13 | + "start": "npm run dev", |
| 14 | + "clean": "rimraf lib/* || true", |
| 15 | + "prebuild": "npm run clean", |
| 16 | + "build:js": "babel ./src --out-dir ./lib", |
| 17 | + "build:css": "stylus ./src -o ./lib", |
| 18 | + "build:img": "imagemin src/* --out-dir=lib", |
| 19 | + "build": "npm run build:js & npm run build:css & npm run build:img || true", |
| 20 | + "prepublish": "npm run build && npm version patch -m \"bump %s\"", |
11 | 21 | "update": "updtr", |
12 | 22 | "lint": "standard | snazzy", |
13 | | - "test": "npm run lint && ava --require ./test/helpers/setup-test-env.js \"@(src|test)/**/*test.@(js|jsx)\" --verbose", |
| 23 | + "pretest": "npm run lint", |
| 24 | + "test": "ava --require ./test/helpers/setup-test-env.js \"@(src|test)/**/*test.@(js|jsx)\" --verbose", |
14 | 25 | "test:watch": "npm run test -- --watch --watch-extensions jsx" |
15 | 26 | }, |
16 | 27 | "repository": { |
|
46 | 57 | "html-loader": "^0.4.3", |
47 | 58 | "image-loader": "0.0.1", |
48 | 59 | "image-webpack-loader": "^1.8.0", |
| 60 | + "imagemin-cli": "^2.1.0", |
49 | 61 | "imports-loader": "^0.6.5", |
50 | 62 | "jsdom": "^9.0.0", |
51 | 63 | "json-loader": "^0.5.4", |
|
55 | 67 | "react-css-modules": "^3.7.6", |
56 | 68 | "react-hot-loader": "^3.0.0-beta.2", |
57 | 69 | "react-transform-hmr": "^1.0.4", |
| 70 | + "rimraf": "^2.5.2", |
58 | 71 | "sinon": "^1.17.4", |
59 | 72 | "snazzy": "^4.0.0", |
60 | 73 | "standard": "^7.0.1", |
|
68 | 81 | "webpack-dev-server": "^2.0.0-beta" |
69 | 82 | }, |
70 | 83 | "dependencies": { |
| 84 | + "fe-button": "0.0.1", |
71 | 85 | "react": "^15.0.2", |
72 | 86 | "react-dom": "^15.0.2", |
73 | 87 | "whatwg-fetch": "^1.0.0" |
|
0 commit comments