load-common-grunt-tasks
Load common grunt tasks and configs so you don't need to redefine them for every module
Last updated 7 years ago by chmontgomery .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install load-common-grunt-tasks 
SYNC missed versions from official npm registry.

load-common-grunt-tasks Build Status Built with Grunt

Load common grunt tasks and configs so you don't need to redefine them for every module

Install

Install with npm: npm install --save-dev load-common-grunt-tasks

Example Config

basic Gruntfile.js

module.exports = function(grunt) {
    require('load-common-grunt-tasks')(grunt);
};

To override default tasks simply redefine them after calling require('load-common-grunt-tasks')(grunt);, e.g.

module.exports = function(grunt) {

    require('load-common-grunt-tasks')(grunt);

    grunt.loadNpmTasks('grunt-contrib-watch');

    grunt.util._.extend(grunt.config.data, {
        watch: {
            js: {
                files: ['lib/**/*.js'],
                tasks: ['build']
            }
        }
    });

    grunt.registerTask('build', 'custom build task', function() {
        grunt.log.write('Logging some stuff...').ok();
    });

    grunt.registerTask('default', [ 'build', 'jshint']);
};

Current Tags

  • 0.0.8                                ...           latest (7 years ago)

4 Versions

  • 0.0.8                                ...           7 years ago
  • 0.0.6                                ...           7 years ago
  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |