Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit b52799c

Browse files
author
Kahlil Lechelt
committed
Add load-grunt-tasks.
1 parent 806fdf7 commit b52799c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Gruntfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
'use strict';
88

99
module.exports = function (grunt) {
10+
// Load all grunt tasks matching the `grunt-*` pattern.
11+
require('load-grunt-tasks')(grunt);
1012

1113
// Project configuration.
1214
grunt.initConfig({
@@ -38,16 +40,10 @@ module.exports = function (grunt) {
3840

3941
});
4042

41-
// These plugins provide necessary tasks.
42-
grunt.loadNpmTasks('grunt-contrib-jshint');
43-
grunt.loadNpmTasks('grunt-contrib-clean');
44-
grunt.loadNpmTasks('grunt-mocha-test');
45-
4643
// Whenever the "test" task is run, first clean the "temp" dir, then run this
4744
// plugin's task(s), then test the result.
4845
grunt.registerTask('test', ['clean', 'mochaTest']);
4946

5047
// By default, lint and run all tests.
5148
grunt.registerTask('default', ['clean', 'jshint', 'mochaTest']);
52-
5349
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"grunt": "~0.4.2",
3030
"grunt-mocha-test": "~0.8.1",
3131
"grunt-contrib-clean": "~0.5.0",
32-
"grunt-contrib-jshint": "~0.7.2"
32+
"grunt-contrib-jshint": "~0.7.2",
33+
"load-grunt-tasks": "~0.2.0"
3334
},
3435
"peerDependencies": {
3536
"yo": ">=1.0.0"

0 commit comments

Comments
 (0)