You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
2.0 KiB

{
"name": "{{ name }}",
"version": "{{ version }}",
"description": "{{ description }}",
"author": "{{ author }}",
"private": true,
"scripts": {
"watchify": "watchify -vd -p browserify-hmr -e src/main.js -o dist/build.js",
"serve": "http-server -o -c 1 -a localhost",
"dev": "npm-run-all --parallel watchify serve",
{{#lint}}
"lint": "eslint --ext .js,.vue src{{#unit}} test/unit{{/unit}}",
{{/lint}}
{{#unit}}
"test": "karma start karma.conf.js",
{{/unit}}
"build": "cross-env NODE_ENV=production browserify -g envify -p [ vueify/plugins/extract-css -o dist/build.css ] -e src/main.js | uglifyjs -c warnings=false -m > dist/build.js"
},
"browserify": {
"transform": [
"babelify",
{{#if_eq build "standalone"}}
"aliasify",
{{/if_eq}}
"vueify"
]
},
{{#if_eq build "standalone"}}
"aliasify": {
"aliases": {
"vue$": "vue/dist/vue"
}
},
{{/if_eq}}
"dependencies": {
"vue": "^2.0.1"
},
"devDependencies": {
{{#if_eq build "standalone"}}
"aliasify": "^2.0.0",
{{/if_eq}}
"babel-core": "^6.0.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-runtime": "^6.0.0",
"babelify": "^7.2.0",
"browserify": "^13.1.0",
"browserify-hmr": "^0.3.1",
"cross-env": "^2.0.0",
"envify": "^3.4.1",
{{#lint}}
"eslint": "^3.3.0",
"eslint-config-standard": "^5.3.5",
"eslint-plugin-html": "^1.5.2",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-standard": "^2.0.0",
{{/lint}}
"http-server": "^0.9.0",
{{#unit}}
"jasmine-core": "^2.4.1",
"karma": "^1.2.0",
"karma-browserify": "^5.1.0",
"karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.0",
"karma-spec-reporter": "0.0.26",
{{/unit}}
"npm-run-all": "^2.3.0",
{{#unit}}
"phantomjs-prebuilt": "^2.1.3",
{{/unit}}
"proxyquireify": "^3.0.1",
"uglify-js": "^2.5.0",
"vueify": "^9.0.0",
"watchify": "^3.4.0"
}
}