|
2 | 2 | "name": "styled-jss", |
3 | 3 | "version": "0.5.0", |
4 | 4 | "description": "Styled Components on top of JSS.", |
5 | | - "main": "lib/index.js", |
| 5 | + "main": "index.js", |
6 | 6 | "scripts": { |
7 | 7 | "clean": "rimraf lib/*", |
8 | 8 | "lint": "eslint src", |
9 | 9 | "lint:staged": "lint-staged", |
10 | 10 | "flow": "flow check", |
11 | 11 | "test": "jest", |
12 | 12 | "test:watch": "npm test -- --watch", |
13 | | - "test:coverage": "npm test -- --coverage", |
| 13 | + "test:coverage": "npm test -- --coverage && npm run coveralls", |
| 14 | + "coveralls": "cat ./coverage/lcov.info | coveralls", |
14 | 15 | "prebuild": "npm run clean && npm run flow && npm run lint && npm run test:coverage", |
15 | 16 | "build": "babel src --out-dir lib --ignore tests", |
| 17 | + "postbuild": "npm run flow:csrc && copyfiles -e '**/tests/*' ./*.* LICENSE -a -f lib", |
| 18 | + "flow:csrc": "flow-copy-source -i '**/tests/*' src lib", |
16 | 19 | "flow:typed": "flow-typed install", |
17 | 20 | "flow:stub": "flow-typed create-stub", |
18 | | - "preversion": "npm run build", |
19 | | - "postversion": "git push --follow-tags" |
| 21 | + "release": "npm run build && git push --follow-tags && npm publish lib" |
20 | 22 | }, |
21 | | - "files": [ |
22 | | - "src", |
23 | | - "lib" |
24 | | - ], |
25 | 23 | "repository": { |
26 | 24 | "type": "git", |
27 | 25 | "url": "git+https://github.com/cssinjs/styled-jss.git" |
|
57 | 55 | "babel-plugin-transform-object-rest-spread": "^6.23.0", |
58 | 56 | "babel-preset-es2015": "^6.24.1", |
59 | 57 | "babel-preset-react": "^6.23.0", |
| 58 | + "copyfiles": "^1.2.0", |
| 59 | + "coveralls": "^2.13.0", |
60 | 60 | "eslint": "^3.13.0", |
61 | 61 | "eslint-config-airbnb": "^14.1.0", |
62 | 62 | "eslint-config-jss": "^3.0.0", |
63 | 63 | "eslint-plugin-import": "^2.2.0", |
64 | 64 | "eslint-plugin-jsx-a11y": "^4.0.0", |
65 | 65 | "eslint-plugin-react": "^6.10.3", |
66 | 66 | "flow-bin": "^0.44.2", |
| 67 | + "flow-copy-source": "^1.1.0", |
67 | 68 | "flow-typed": "^2.0.0", |
68 | 69 | "jest": "^18.1.0", |
69 | 70 | "lint-staged": "^3.4.0", |
|
82 | 83 | "pre-commit": [ |
83 | 84 | "lint:staged", |
84 | 85 | "test" |
85 | | - ] |
| 86 | + ], |
| 87 | + "jest": { |
| 88 | + "rootDir": "src" |
| 89 | + } |
86 | 90 | } |
0 commit comments