https://github.com/bruth/wicked-gruntfile
Starter template for JavaScript app development with a wicked Gruntfile
https://github.com/bruth/wicked-gruntfile
Last synced: 8 months ago
JSON representation
Starter template for JavaScript app development with a wicked Gruntfile
- Host: GitHub
- URL: https://github.com/bruth/wicked-gruntfile
- Owner: bruth
- License: mit
- Archived: true
- Created: 2013-08-07T23:16:53.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T23:23:38.000Z (almost 13 years ago)
- Last Synced: 2024-12-22T03:42:55.853Z (over 1 year ago)
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Wicked Gruntfile
Gruntfile which manages source files from local development, intermediate compilation, and distribution builds.
### Install
Fill out `package.json` with metadata. Install development dependencies:
```bash
npm install
```
### Tasks
- `grunt local` - Populates the `local/` directory with compiled CoffeeScript and SCSS files and copies over other non-compiled source files
- `grunt work` - Runs the `local` tasks and ends with a watcher that compiles to `local/` on the fly
- `grunt dist` - Populates the `dist/` directory for a distribution build
- `grunt test` - Runs the Jasmine specs in `spec/` against a fresh local build
- `grunt release` - Creates a zip and gzip tarball of the distribution files in a directory named after the package
- `grunt serve:forever` - Launches a node server on port 8125 by default. Useful for viewing Jasmine tests in the browser
### Directory Structure
```bash
package.json
Gruntfile.coffee
# location of Jasmine spec files
spec/
...
# source files for all types
src/
coffee/
js/
scss/
css/
img/
fonts/
templates/
# created by Grunt for local development
local/
...
# intermediate build directory for CoffeeScript files,
# before minification using r.js
build/
...
# final resting place of built files in their respective
# directories
dist/
...
```