Vue.js with Typescript and Pug
# Clone repogisotyr
git clone https://github.com/shunsukehondo/Vue-Typescript-Pug.git
# Move into the directory
cd Vue-Typescript-Pug
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
You can check errors and coding style of your code in read-time using VSCode editor.
- Open Vue-Typescript-Pug with VSCode
- Install following extensions
- Prettier
- TSLint
- Vetur
- language-stylus
- Open User Settings (
cmd+,on Mac) and overwrite it with the follows.
{
"[typescript]": {
"editor.formatOnSave": true
},
"[vue]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
}
}