Following official tutorial
- Does not support IE8
- Debug with Vue Devtools
npm install vue
ornpm install -g @vue/cli
for cli
- Gulp vs browserfy vs webpack comparisons:
- Using webpack
- Create vue app with
vue create APP_NAME
- Took a really long time to create new project
- Options
- Babel
- TypeScript
- class-style component syntax: similar to angular, define components as classes with propertyies and decorators describe component (https://alligator.io/vuejs/typescript-class-components/)
- Use babel along typescript (allow auto-detect polyfills, transpile JSX)
- Benefits: reduce error due to compile type checking, help communicate api's expected parameters and return values. Some of these benefits are also communicated with good tests
- Progressive Web App (user service workers for offline support)
- Router (For single page app)
- history mode (instead of hash -- needs to have fallback index.html to be served in case url routing doesn't match in server)
- Vuex (for data binding)
- CSS Pre-processor (for different CSS)
- Sass/SCSS dart-sass: primary implementation of Sass
- Sass/SCSS node-sass
- Linter/Formatter
- ESLint (preferred now): default for js
- TSLint: for typescripting, but going to be focusing on improving typescript within ESLint (https://medium.com/palantir/tslint-in-2019-1a144c2317a9)
- Unit Testing (https://medium.com/welldone-software/an-overview-of-javascript-testing-in-2018-f68950900bc3)
- Mocha + chai: need libraries for assers, very flexible
- Jest: Used for react, really fast due to parallel testing, snapshot testing
- E2E Testing (end-to-end testing)
- Cypress
- Nightwatch
- User Tracking:
- Vue Analytics: 22 watching, 1,304 stars, 100 forks, 20 issues
- also provides error tracking
- https://medium.com/dailyjs/tips-tricks-for-vue-analytics-87a9d2838915
- Vue Multiananalytics: 21 watch, 160 star, 42 fork, 21 issues - track across multiple platforms, if want to not just use GA
- Vue Analytics: 2 watching, 192 stars, 28 forks, 6 issues
- Just Google Analytics
- Vue Analytics: 22 watching, 1,304 stars, 100 forks, 20 issues
- Error Tracking:
npm run serve
from APP_NAME folder