Skip to content

Commit

Permalink
adjust logger build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 24, 2016
1 parent 9fe44ae commit 64a0785
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ node_modules
TODO.md
lib
docs/_book
logger.js
examples/**/build.js
types/typings
types/test/*.js
Expand Down
9 changes: 9 additions & 0 deletions build/rollup.logger.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const buble = require('rollup-plugin-buble')

module.exports = {
entry: 'src/plugins/logger.js',
dest: 'dist/logger.js',
format: 'umd',
moduleName: 'createVuexLogger',
plugins: [buble()]
}
File renamed without changes.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"src",
"types/index.d.ts",
"types/helpers.d.ts",
"types/vue.d.ts",
"logger.js",
"logger.d.ts"
"types/vue.d.ts"
],
"scripts": {
"dev": "node examples/server.js",
"dev:dist": "rollup -wm -c build/rollup.config.js",
"build": "rollup -c build/rollup.config.js && uglifyjs dist/vuex.js -cm --comments -o dist/vuex.min.js",
"build": "npm run build:main && npm run build:logger",
"build:main": "rollup -c build/rollup.config.js && uglifyjs dist/vuex.js -cm --comments -o dist/vuex.min.js",
"build:logger": "rollup -c build/rollup.logger.config.js",
"test": "eslint src && npm run test:unit && npm run test:e2e",
"test:unit": "rollup -c build/rollup.config.js && jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
"test:e2e": "node test/e2e/runner.js",
Expand Down

0 comments on commit 64a0785

Please sign in to comment.