patchwork
                                
                                 patchwork copied to clipboard
                                
                                    patchwork copied to clipboard
                            
                            
                            
                        A gulp-based, npm-oriented boilerplate
patchwork
Patchwork - 1.1 (Vue v0.11+)
Boilerplate with my usual tools for development of interactive websites.
Breaking changes since v0.2:
- Updated Vue to v0.11.
- Replaced custom router with v-routedirective, see repo.
- Replaced all window utils with windowsill, see repo.
- Flatter folders/files tree.
- Added some mixins for Vue (loader, resize, bind).
- Added /static folder for all static stuff (.htaccess, index.html, images...)
- Simple router component if you need specific control that v-routedoesn't offer (I'm thinking with prototyping in mind and quick hacking).
- Simpler, lighter and more modular structure since it now relies on more external components. Easier to dive in.
- Transitions between pages are now natively handled by v-routeso no need to extend a custom class.
Tasks (gulp)
- node-sass (fast compilation)
- browserify + watchify for node-style require
- napa and browserify-shim so every dependency comes from npm/github (no bower)
- bourbon neat as grid system
- ...
Getting started
Cloning, setting git and installing dependencies:
git clone https://github.com/ayamflow/patchwork.git && cd patchwork && rm -rf .git && git init && npm i
- 
/src/bootcontains the $root VM, containing the routes definition. Theimport.jsallows to configure the different libraries, for instance installing Vue.plugins, setting the default ease for TweenMax...
- 
/src/sectionscontains the main sections of the website. For subsections and ui components, use/src/components.
- 
/src/utilsoffer some additional utils like browser sniffing, the folder can basically be replaced with lodash + modernizr. It has an additionaldebug.jsfile containing some flags, andsimple-router.jswhich is a light wrapper around page.js, if you need access to a more low-level router.