1.0.2 • Published 8 years ago

generator-schwarzdavid-website v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Website boilerplate generator for Yeoman

NPM version

Generates a scaffold for a modern html 5 website with a working build system using gulp

npm.io

Install

In order to use this generator properly, you need to have NodeJS, Npm and Git installed aswell as bower, yo and gulp-cli. Make sure you have all those dependencies installed by running npm i -g yo gulp-cli bower. If you already have those installed, you wont install them twice when you run this command.

When you have all dependencies installed, you can run

npm i -g generator-schwarzdavid-website

to install the package. Now go to your empty project directory and run

yo schwarzdavid-website.

The boilerplate will be created in the directory you are currently in and a git project will be initialized and all dependencies installed.

All you have to do now is to run gulp serve to build your website and start working.

Enjoy!

Features

  • Automatic less to css compilation
  • Minify all css and js files
  • Autodetect bower dependencies and inject them into html
  • Separate tasks for developing and production
  • Automatic optimization of all .jpg and .png files

Commands

  • gulp serve Runs gulp build and add a watcher to all relevant files. Whenever one of those files change, the build will be updated.
  • gulp build Runs build:less, build:js, build:img, build:vendor and build:html
  • gulp build:less Compiles your less-files to css, optionally concats them and outputs a minified main.min.css file
  • gulp build:js If in production mode, it concats, minifies all js-files and outputs main.min.js
  • gulp build:html Injects all files into index.html, optionally minifies the code and removes comments
  • gulp build:img If in production mode, minifies all images and removes meta information
  • gulp build:vendor Concats and minifies all bower dependencies into vendor.min.js

Todos

  • Add JSLint to gulp build:dev:js
  • Start Webserver at gulp serve
  • Handle all html-files - not only index.html
  • Extend possible dependency options
  • Write tests
  • Add Modernizr support
  • Add common files to .gitignore
  • Add babel to gulp build:js
  • Write sourcemaps
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago