├── 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 |
2 | My Store
5 |
6 | shopping_cartCheckout
7 |
12 | Description: {{ product.description }} 13 |
14 | 17 |