Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ cache:
matrix:
include:
- node_js: '9'
script: npm run test -- --runInBand
script: npm run test -- --runInBand && npm run size
env: CI=tests 9
- node_js: '9'
script: npm test -- --runInBand --coverage
script: npm test -- --runInBand --coverage && npm run size
env: CI=coverage
- node_js: '8'
script: npm run test -- --runInBand
script: npm run test -- --runInBand && npm run size
env: CI=tests 8
- node_js: '6'
script: npm run test -- --runInBand
script: npm run test -- --runInBand && npm run size
env: CI=tests 6
before_install:
- npm install -g npm@latest
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ test_script:
- node --version
- npm --version
- cmd: "npm test"
- cmd: "npm run size"
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Match style objects containing CSS Media Queries with React Native",
"main": "dist/index.js",
"scripts": {
"size": "size-limit",
"prepublish": "npm run build",
"prebuild": "rimraf dist",
"build": "babel src --out-dir dist --ignore src/__tests__,src/__mocks__",
Expand Down Expand Up @@ -64,13 +65,20 @@
"lint-staged": "^7.0.4",
"npmpub": "^3.1.0",
"prettier": "^1.12.0",
"rimraf": "^2.6.2"
"rimraf": "^2.6.2",
"size-limit": "^0.18.3"
},
"prettier": {
"semi": true,
"singleQuote": false,
"trailingComma": "none"
},
"size-limit": [
{
"limit": "3 KB",
"path": "src/index.js"
}
],
"jest": {
"collectCoverageFrom": [
"src/*.js"
Expand Down
Loading