Skip to content

Commit b26ea47

Browse files
authored
Merge pull request #10 from cssinjs/feature/fix-createStyled-import
Add Travis CI and update build
2 parents fb31288 + d833b48 commit b26ea47

4 files changed

Lines changed: 184 additions & 18 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
3+
node_js:
4+
- 7
5+
6+
after_success: npm run test:coverage

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Styled Components on top of JSS
22

3+
[![Travis branch](https://img.shields.io/travis/cssinjs/styled-jss/master.svg?style=flat)](https://travis-ci.org/cssinjs/styled-jss)
4+
[![Coverage Status branch](https://img.shields.io/coveralls/cssinjs/styled-jss/master.svg?style=flat)](https://img.shields.io/coveralls/cssinjs/styled-jss/master.svg?branch=master)
5+
[![npm version](https://img.shields.io/npm/v/styled-jss.svg?style=flat)](https://www.npmjs.com/package/styled-jss)
6+
[![npm license](https://img.shields.io/npm/l/styled-jss.svg?style=flat)](https://www.npmjs.com/package/styled-jss)
7+
38
## Install
49

510
This has peer dependencies of `react` and `react-dom`, which will have to be installed as well.

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@
22
"name": "styled-jss",
33
"version": "0.5.0",
44
"description": "Styled Components on top of JSS.",
5-
"main": "lib/index.js",
5+
"main": "index.js",
66
"scripts": {
77
"clean": "rimraf lib/*",
88
"lint": "eslint src",
99
"lint:staged": "lint-staged",
1010
"flow": "flow check",
1111
"test": "jest",
1212
"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",
1415
"prebuild": "npm run clean && npm run flow && npm run lint && npm run test:coverage",
1516
"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",
1619
"flow:typed": "flow-typed install",
1720
"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"
2022
},
21-
"files": [
22-
"src",
23-
"lib"
24-
],
2523
"repository": {
2624
"type": "git",
2725
"url": "git+https://github.com/cssinjs/styled-jss.git"
@@ -57,13 +55,16 @@
5755
"babel-plugin-transform-object-rest-spread": "^6.23.0",
5856
"babel-preset-es2015": "^6.24.1",
5957
"babel-preset-react": "^6.23.0",
58+
"copyfiles": "^1.2.0",
59+
"coveralls": "^2.13.0",
6060
"eslint": "^3.13.0",
6161
"eslint-config-airbnb": "^14.1.0",
6262
"eslint-config-jss": "^3.0.0",
6363
"eslint-plugin-import": "^2.2.0",
6464
"eslint-plugin-jsx-a11y": "^4.0.0",
6565
"eslint-plugin-react": "^6.10.3",
6666
"flow-bin": "^0.44.2",
67+
"flow-copy-source": "^1.1.0",
6768
"flow-typed": "^2.0.0",
6869
"jest": "^18.1.0",
6970
"lint-staged": "^3.4.0",
@@ -82,5 +83,8 @@
8283
"pre-commit": [
8384
"lint:staged",
8485
"test"
85-
]
86+
],
87+
"jest": {
88+
"rootDir": "src"
89+
}
8690
}

0 commit comments

Comments
 (0)