This is backend-agnostic project structure as opposed to monolithic example.
What I'm gonna use:
-
Webpack for bundling & developing
-
Pug template engine
-
My vue-cli-plugin-coffee to support CoffeeScript2
-
vue-loader for loading
.vue
components -
My vue-cli-plugin-sugarss to support SugarSS linting
-
Stylus CSS Preprocessor
-
PostCSS for
lint
ing andautoprefix
ing mostly -
express for static serving
-
Heroku for delpoyment
$ npm run serve
Static files.
API module for count
ing, store
ing and get
ing Links
.
This one serves as the VueJS components'
storage. Usually src/components/
.sample contains .vue
files with:
- a logic written in
script[lang=coffee]
; - a template written in
template[lang=pug]
; - styles written in
style[lang=stylus][scoped]
;
base62
number encoder.
Stylus/SugarSS
variables.
Vue
instance.
Entry point.
🎉