Skip to content

Commit 64a0785

Browse files
committed
adjust logger build
1 parent 9fe44ae commit 64a0785

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ node_modules
33
TODO.md
44
lib
55
docs/_book
6-
logger.js
76
examples/**/build.js
87
types/typings
98
types/test/*.js

build/rollup.logger.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const buble = require('rollup-plugin-buble')
2+
3+
module.exports = {
4+
entry: 'src/plugins/logger.js',
5+
dest: 'dist/logger.js',
6+
format: 'umd',
7+
moduleName: 'createVuexLogger',
8+
plugins: [buble()]
9+
}

logger.d.ts dist/logger.d.ts

File renamed without changes.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"src",
1010
"types/index.d.ts",
1111
"types/helpers.d.ts",
12-
"types/vue.d.ts",
13-
"logger.js",
14-
"logger.d.ts"
12+
"types/vue.d.ts"
1513
],
1614
"scripts": {
1715
"dev": "node examples/server.js",
1816
"dev:dist": "rollup -wm -c build/rollup.config.js",
19-
"build": "rollup -c build/rollup.config.js && uglifyjs dist/vuex.js -cm --comments -o dist/vuex.min.js",
17+
"build": "npm run build:main && npm run build:logger",
18+
"build:main": "rollup -c build/rollup.config.js && uglifyjs dist/vuex.js -cm --comments -o dist/vuex.min.js",
19+
"build:logger": "rollup -c build/rollup.logger.config.js",
2020
"test": "eslint src && npm run test:unit && npm run test:e2e",
2121
"test:unit": "rollup -c build/rollup.config.js && jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
2222
"test:e2e": "node test/e2e/runner.js",

0 commit comments

Comments
 (0)