├── babel.config.js ├── public ├── favicon.ico └── index.html ├── src ├── assets │ └── logo.png ├── components │ ├── ProductList │ │ ├── Readme.MD │ │ ├── products.js │ │ └── ProductList.vue │ └── TopBar │ │ └── TopBar.vue ├── main.js └── App.vue ├── .gitignore ├── README.md └── package.json /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teambit/bit-vue-tutorial/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teambit/bit-vue-tutorial/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/ProductList/Readme.MD: -------------------------------------------------------------------------------- 1 | # Product List 2 | 3 | This file is an example file for a component readme. -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? 22 | -------------------------------------------------------------------------------- /src/components/ProductList/products.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | name: 'Phone XL', 4 | price: 799, 5 | description: 'A large phone with one of the best screens' 6 | }, 7 | { 8 | name: 'Phone Mini', 9 | price: 699, 10 | description: 'A great phone with one of the best cameras' 11 | }, 12 | { 13 | name: 'Phone Standard', 14 | price: 299, 15 | description: '' 16 | } 17 | ]; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bit-vue-tutorial 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Run your tests 19 | ``` 20 | npm run test 21 | ``` 22 | 23 | ### Lints and fixes files 24 | ``` 25 | npm run lint 26 | ``` 27 | 28 | ### Customize configuration 29 | See [Configuration Reference](https://cli.vuejs.org/config/). 30 | -------------------------------------------------------------------------------- /src/components/TopBar/TopBar.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 29 | 30 | 35 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | bit-vue-tutorial 13 | 14 | 15 | 18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bit-vue-tutorial", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "core-js": "^3.6.4", 12 | "vue": "^2.6.11" 13 | }, 14 | "devDependencies": { 15 | "@vue/cli-plugin-babel": "^4.2.3", 16 | "@vue/cli-plugin-eslint": "^4.2.3", 17 | "@vue/cli-service": "^4.2.3", 18 | "babel-eslint": "^10.1.0", 19 | "eslint": "^6.8.0", 20 | "eslint-plugin-vue": "^6.2.2", 21 | "vue-template-compiler": "^2.6.11" 22 | }, 23 | "eslintConfig": { 24 | "root": true, 25 | "env": { 26 | "node": true 27 | }, 28 | "extends": [ 29 | "plugin:vue/essential", 30 | "eslint:recommended" 31 | ], 32 | "rules": {}, 33 | "parserOptions": { 34 | "parser": "babel-eslint" 35 | } 36 | }, 37 | "postcss": { 38 | "plugins": { 39 | "autoprefixer": {} 40 | } 41 | }, 42 | "browserslist": [ 43 | "> 1%", 44 | "last 2 versions" 45 | ], 46 | "bit": { 47 | "env": { 48 | "compiler": "bit.envs/bundlers/vue@2.6.18" 49 | }, 50 | "componentsDefaultDirectory": "components/{name}", 51 | "packageManager": "npm" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/components/ProductList/ProductList.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | 39 | 40 | 69 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 19 | 20 | 106 | --------------------------------------------------------------------------------