This is a simple grunt workflow for add on projects, inspired by Davidson Fellipe grunt workflow.
$ git clone https://github.com/guilouro/grunt-workflow.git .
$ npm install
Configure to project folder in Gruntfile.js
...
path: {
src: 'assets/', //your source path
dest: 'build/' //your destiny path
}
...
Set the project information in package.json
...
"name": "project-name",
"version": "0.1.0",
"title": "Project Title",
"homepage": "www.project.com",
"description": "Some description.",
"private": true,
"author": {
"name": "Author name",
"url": "http://authorsite.com.br",
"email": "author@email.com"
},
...
grunt
: runninggrunt watch
grunt s
: runninggrunt whatc
witchBrowserSync
grunt rs
: runninggrunt connect
andgrunt watch
grunt b
: compilesass
and runninguglify
,csslint
andjshint
grunt r
: runninggrunt b
and deploy files in servergrunt o
: Optimize images with imagemin
- BrowserSync: Time-saving synchronised browser testing.
- Browserify: Browserify lets you require('modules') in the browser by bundling up all of your dependencies.
- Concurrent: Run grunt tasks concurrently
- Connect: Run a connect server, indefinitely.
- Csslint: Lint CSS files
- Imagemin: Minify images
- Jshint: Validate files with JSHint.
- Sass: Compile Sass to CSS
- Uglify: Minify files with UglifyJS.
- Watch: Run predefined tasks whenever watched file patterns are added, changed or deleted.
- Django: Grunt tasks to run common django commands. Inspired from rockabox/grunt-django-manage