Skip to content

Commit 059cd16

Browse files
committed
fix setup
1 parent 5726cdb commit 059cd16

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

example/advanced/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// warning: vue-router requires Vue 0.12.10+
22
var Vue = require('vue')
3-
var VueRouter = require('../../')
3+
var VueRouter = require('../../src')
44

55
// install router
66
Vue.use(VueRouter)

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
"dev": "npm run serve & npm run serve-test",
88
"lint": "eslint src build test/e2e test/unit/specs",
99
"unit": "./node_modules/karma/bin/karma start build/karma.config.js",
10-
"build": "webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js",
10+
"build": "babel ./src --optional runtime --out-dir lib && webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js",
1111
"serve": "webpack-dev-server --hot --config example/advanced/webpack.config.js --content-base example/advanced --history-api-fallback --host 0.0.0.0",
1212
"serve-test": "webpack-dev-server --quiet --config test/unit/webpack.config.js --content-base test/unit --history-api-fallback --host 0.0.0.0 --port 8081",
1313
"e2e-sauce": "nightwatch -c build/nightwatch.sauce.json -e chrome,firefox,ie10,ie11",
1414
"e2e-local": "bash ./build/e2e.sh",
1515
"release": "bash ./build/release.sh",
1616
"docs": "bash ./build/update-docs.sh",
17-
"test": "npm run lint && npm run unit && npm run e2e-local",
18-
"prepublish": "babel ./src --optional runtime --out-dir lib"
17+
"test": "npm run lint && npm run unit && npm run e2e-local"
1918
},
2019
"repository": {
2120
"type": "git",

test/unit/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
loaders: [
99
{
1010
test: /\.js$/,
11-
exclude: /node_modules|vue\/src/,
11+
exclude: /test|node_modules|vue\/src/,
1212
loader: 'babel'
1313
}
1414
]

0 commit comments

Comments
 (0)