luakri / web-project-base

Fundamentals web project base - Grunt Tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project base - Grunt tasks

Web Project Base - Grunt tasks setup

What Is It

The project has setup default Grunt tasks.

Prerequisites

The Web Project Base requires the following dependencies.

Requirements

npm install

Structure (WIP)

The project is based on a source and a dist folder. The project consists of the following Grunt Tasks:

Tasks executed for local (WIP)

  • Jshint Lint
  • Json Lint
  • Sass Source Maps
  • Sass Style extended
  • Css Autoprefixer
  • Modernizr Build
  • htmlbuild

Tasks executed for production (WIP)

  • Jshint Lint
  • Javascript concat
  • Uglify Javascript
  • Javascript Source Maps
  • Json Lint
  • Json Minify
  • Sass Source Maps
  • Sass Style compressed
  • Css Autoprefixer
  • Modernizr Build
  • htmlbuild
  • HTML Minification

Usage

To run project for development

grunt

To run build for production:

grunt prod -env=prod

To run project for production, after build for production:

grunt run

To run unit tests

grunt ut --browser=PhantomJS

To run E2E tests

grunt e2e

Changelog

  • 1.0.0: Initial Release

  • 1.0.1: (2014-07-06)

    • Added Karma for unit tests.
    • Added Protactor for E2E tests in non AngularJS site.
    • Added grunt usemin

About

Fundamentals web project base - Grunt Tasks


Languages

Language:JavaScript 59.9%Language:CSS 40.1%