Created
November 19, 2013 10:27
-
-
Save tgfjt/7543358 to your computer and use it in GitHub Desktop.
merge Config with lodash
require personal task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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