add sizereport

This commit is contained in:
Harvey Zack committed 2019-06-26 15:29:16 +08:00
1 parent 47058616de
commit e0b5da64fb
3 files changed
+19 -7

No files matched your search

+9 -6
View File
@@ -1,13 +1,16 @@
language: node_js language: node_js
node_js: node_js:
- stable - stable
before_script: before_script:
- npm install - npm install
- npm i packages/* && lerna bootstrap --hoist - npm i packages/* && lerna bootstrap --hoist
script: script:
- npm run lint - npm run lint
- npm run build:all - npm run build:all
- npm run test - npm run test
after_success:
- npm run sizereport
+5 -1
View File
@@ -12,7 +12,8 @@
"build": "npx cross-env NODE_ENV=production node ./scripts/build.js", "build": "npx cross-env NODE_ENV=production node ./scripts/build.js",
"build:all": "npm run build all && git add . && git commit -m \"build all packages\" -n ", "build:all": "npm run build all && git add . && git commit -m \"build all packages\" -n ",
"test": "npx mocha-chrome ./test/index.html --mocha '{\"ui\":\"bdd\"}'", "test": "npx mocha-chrome ./test/index.html --mocha '{\"ui\":\"bdd\"}'",
"lint": "npx eslint packages/*/src" "lint": "npx eslint packages/*/src",
"sizereport": "npx sizereport --config"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -64,5 +65,8 @@
"rollup-plugin-svgo": "^1.0.2", "rollup-plugin-svgo": "^1.0.2",
"rollup-plugin-uglify": "^6.0.2", "rollup-plugin-uglify": "^6.0.2",
"servor": "^2.2.1" "servor": "^2.2.1"
},
"devDependencies": {
"travis-size-report": "^1.1.0"
} }
} }
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
repo: 'zhw2590582/artplayer',
path: 'dist/*',
branch: 'master',
};