Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add bundlesize check to Travis #1089

Merged
merged 3 commits into from
Oct 12, 2017
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
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ addons:
chrome: stable
sauce_connect: true
script:
- npm run test
- npm run test:ci
- npm run test && npm run test:ci
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
"lint": "eslint .",
"precommit": "lint-staged",
"publish": "npm run test && grunt publish",
"test": "npm run lint && grunt build.test && npm run test:unit && npm run test:integration && npm run test:typescript",
"test": "npm run lint && npm run test:size && grunt build.test && npm run test:unit && npm run test:integration && npm run test:typescript",
"test:unit": "mocha-chrome test/index.html",
"test:integration": "mocha-chrome test/integration/index.html --chrome-flags '[\"--disable-web-security\"]' --ignore-resource-errors --ignore-exceptions",
"test:typescript": "tsc --noEmit --noImplicitAny typescript/raven-tests.ts",
"test:ci": "npm run lint && grunt test:ci"
"test:ci": "npm run lint && grunt test:ci",
"test:size": "grunt dist && bundlesize"
},
"devDependencies": {
"bluebird": "^3.4.1",
"browserify-versionify": "^1.0.6",
"bundle-collapser": "^1.2.1",
"bundlesize": "^0.15.2",
"chai": "^4.1.1",
"derequire": "2.0.3",
"es6-promise": "^4.0.5",
Expand Down Expand Up @@ -67,5 +69,11 @@
"git add"
]
},
"typings": "typescript/raven.d.ts"
"typings": "typescript/raven.d.ts",
"bundlesize": [
{
"path": "./dist/raven.min.js",
"maxSize": "10 kB"
}
]
}