Skip to content

Grunt init templates to generate the scaffold for a Society Pro Component

Notifications You must be signed in to change notification settings

sopro-components/grunt-init-sopro-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

grunt-init-sopro-component

This grunt init script builds a scaffold for a Society Pro Component.

Prerequisites

Setup grunt and grunt-init:

$ npm install -g grunt grunt-init

Usage

Be in Git Bash so ~ works:

$ git clone https://github.com/sopro-components/grunt-init-sopro-component.git ~/.grunt-init/sopro-component
$ cd my-sweet-component
$ grunt-init sopro-component
$ cd src
$ npm install

Result

What it does

  1. Check for non-empty directory and warn of overwrites
  2. Prompt:
  • component name, human readible title, description
  • repo url (default to sopro-components/*)
  • wanna autocompile jade and sass?
  • wanna add sopro-material?
  • wanna add japi?
  • wanna add Roboto, angular, angular-material, angular-animate?
  • wanna add jquery?
  1. Generate custom Gruntfile
  2. Copy custom Gruntfile
  3. Copy template skeleton
  4. Tell the user to run the new Gruntfile for bower

About

Grunt init templates to generate the scaffold for a Society Pro Component

Resources

Stars

Watchers

Forks

Packages

No packages published