vuejs-templates/browserify
소개
A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalvue-browserify-boilerplate
A full-featured Browserify +
vueifysetup with hot-reload, linting & unit testing.
This template is Vue 2.0 compatible. For Vue 1.x use this command:
vue init browserify#1.0 my-project
Usage
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init browserify my-project
$ cd my-project
$ npm install
$ npm run dev
What's Included
npm run dev: Browserify +vueifywith proper config for source map & hot-reload.npm run build: Production build with HTML/CSS/JS minification.npm run lint: Lint JavaScript and*.vuefiles with ESLint.npm test: Unit tests in PhantomJS with Karma + karma-jasmine + karma-browserify, with support for mocking and ES2015.
For more information see the docs for vueify.
Customizations
You will likely need to do some tuning to suit your own needs:
Install additional libraries that you need, e.g.
vue-router,vue-resource,vuex, etc...Use your preferred
.eslintrcconfig. Don't forget to keep the plugin field so that ESLint can lint*.vuefiles.Add your preferred CSS pre-processor, for example:
npm install less --save-devThen you can do:
<style lang="less"> /* write less! */ </style>The dev build is served using http-server. You can edit the NPM dev script in
package.jsonto add a proxy option so that ajax requests are proxied to a separate backend API.For unit testing:
You can run the tests in multiple real browsers by installing more karma launchers and adjusting the
browsersfield inkarma.conf.js.You can also swap out Jasmine for other testing frameworks, e.g. use Mocha with karma-mocha.
Fork It And Make Your Own
You can fork this repo to create your own boilerplate, and use it with vue-cli:
vue init username/repo my-project
관련 프로젝트 살펴보기
불러오는 중…