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
.vuecomponents -
My vue-cli-plugin-sugarss to support SugarSS linting
-
Stylus CSS Preprocessor
-
PostCSS for
linting andautoprefixing mostly -
express for static serving
-
Heroku for delpoyment
$ npm run serveStatic files.
API module for counting, storeing and geting 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.
🎉