https://github.com/tomasstankovic/grunt-init-closure
Create a new WebApp files with grunt-init, including Google Closure Tools, Bower package manager, LESS with LESSHAT2 mixins, gjshint, livereloading.
https://github.com/tomasstankovic/grunt-init-closure
Last synced: 3 months ago
JSON representation
Create a new WebApp files with grunt-init, including Google Closure Tools, Bower package manager, LESS with LESSHAT2 mixins, gjshint, livereloading.
- Host: GitHub
- URL: https://github.com/tomasstankovic/grunt-init-closure
- Owner: tomasstankovic
- Created: 2014-02-20T15:30:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-16T13:32:35.000Z (about 11 years ago)
- Last Synced: 2025-01-13T15:49:10.264Z (5 months ago)
- Language: JavaScript
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grunt-init-closure
Create a new WebApp files with [grunt-init][], including Google Closure Tools, Bower package manager, LESS with LESSHAT3 mixins, gjshint, livereloading.
[grunt-init]: http://gruntjs.com/project-scaffolding
## Prerequisites
This plugin requires Grunt ```0.4.x```
```
npm install -g grunt-cli
npm install -g bower
```## Installation
```
git clone [email protected]:slinto/grunt-init-closure.git ~/.grunt-init/closure
```## Usage
At the command-line, cd into an empty directory, run this command and follow the prompts.
```
grunt-init closure
npm install && bower install
```## Workflow
### Recomended dev workflow
Default server on localhost:9000 (including livereload)In developing please edit ```*.html``` files to contain your selected namespace ```goog.require('slinto.project');```
```
grunt server
```### Production build
In production remove ```DEV USE``` section and uncomment ```PRODUCTION USE``` html code from ```index.html``` and others ```.html``` files. Final build is in ```/dist``` folder.
```
grunt build
```### Default task
```
grunt
```