Skip to content

c2nm/boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 boilerplate 📦

this is a boilerplate starter kit for rapid web development. it is based on npm scripts.

includes

features

  • watchers for file changes
  • copy scripts
  • minification of html, js and css
  • bundling of external libs
  • extracting of critical css for above-the-fold-content
  • deferred loading of google analytics
  • import css files in javascript
  • auto transform es6 dependencies
  • google page speed 100/100 ready
  • full ie11 support
  • zero vulnerabilities on npm audit

installation

mkdir testproject
cd testproject
wget https://github.com/vielhuber/boilerplate/archive/master.zip
unzip master.zip -d .
mv boilerplate-master/{.[!.],}* .
rm -r boilerplate-master master.zip README.md
cp .env.example .env
npm install

usage

run watchers, browsersync and use uncompressed versions

npm run dev

build once for production

npm run prod