Skip to content

Instantly share code, notes, and snippets.

@tgfjt
Created November 19, 2013 10:27
Show Gist options
  • Save tgfjt/7543358 to your computer and use it in GitHub Desktop.
Save tgfjt/7543358 to your computer and use it in GitHub Desktop.
merge Config with lodash require personal task
var _ = require('lodash');
/* global module:false */
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
grunt.initConfig(_.merge.apply({}, _.values(require('./tasks/def.js'))));
grunt.registerTask('personal', function () {
require('./tasks/personal.js')(grunt);
});
require('./tasks/tasks.js')(grunt);
};
/* global module:false */
module.exports = function(grunt) {
grunt.log.write('%s - Personal tasks start...', new Date());
var path = {
Gruntfile: 'Gruntfile.js',
tasks: './tasks/',
js: './js'
};
grunt.config.set('jshint.src', [path.Gruntfile, path.tasks + '*.js', path.js + '/*.js']);
grunt.log.write(grunt.config.get('jshint.src'));
grunt.task.run('jshint');
grunt.log.writeln('done');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment