This repository was archived by the owner on Apr 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed
Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 11# vue-webpack-boilerplate
22
33> A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.
4-
5- > This template is Vue 2.0 compatible. For Vue 1.x use this command: ` vue init webpack#1.0 my-project `
4+ > This template is Vue 2.0 compatible.
65
76## Documentation
87
1110
1211## Usage
1312
14- This is a project template for [ vue-cli] ( https://github.com/vuejs/vue-cli ) . ** It is recommended to use npm 3 + for a more efficient dependency tree .**
13+ This is a project template for [ vue-cli] ( https://github.com/vuejs/vue-cli ) . ** It is recommended to use npm 5 + for a more reliable install .**
1514
16- ``` bash
17- $ npm install -g vue-cli
18- $ vue init webpack my-project
19- $ cd my-project
20- $ npm install
21- $ npm run dev
15+ ``` bash
16+ npm install -g vue-cli
17+ vue init bootstrap-vue/ webpack my-project
18+ cd my-project
19+ npm install
20+ npm run dev
2221```
2322
2423If port 8080 is already in use on your machine you must change the port number in ` /config/index.js ` . Otherwise ` npm run dev ` will fail.
Original file line number Diff line number Diff line change 1414 "lint" : " eslint --ext .js,.vue src{{#unit}} test/unit/specs{{/unit}}{{#e2e}} test/e2e/specs{{/e2e}}" {{/lint }}
1515 },
1616 "dependencies" : {
17- "vue" : " ^2.4.2" {{#router }},
18- "vue-router" : " ^2.7.0" {{/router }}
17+ "vue" : " ^2.4.4" ,
18+ {{#router }}
19+ "vue-router" : " ^2.7.0" ,
20+ {{/router }}
21+ "bootstrap" : " ^4.0.0-beta" ,
22+ "bootstrap-vue" : " ^1.0.0-beta.9" ,
23+ "popper.js" : " ^1.12.5"
1924 },
2025 "devDependencies" : {
2126 "autoprefixer" : " ^7.1.2" ,
Original file line number Diff line number Diff line change 33// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
44{ { / i f _ e q } }
55import Vue from 'vue' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
6+ import BootstrapVue from "bootstrap-vue" { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
67import App from './App' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
78{ { #router} }
89import router from './router' { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
910{ { / router} }
11+ import "bootstrap/dist/css/bootstrap.min.css" { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
12+ import "bootstrap-vue/dist/bootstrap-vue.css" { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
1013
14+ Vue . use ( BootstrapVue ) { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
1115Vue . config . productionTip = false { { #if_eq lintConfig "airbnb" } } ; { { / i f _ e q } }
1216
1317/* eslint-disable no-new */
You can’t perform that action at this time.
0 commit comments