Skip to content

Commit 479f022

Browse files
committed
Merge pull request #1157 from kingcody/feature/david-integration
feat(gen): add david grunt task
2 parents 0438921 + 3b66507 commit 479f022

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Gruntfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ module.exports = function (grunt) {
8787
]
8888
}]
8989
}
90+
},
91+
david: {
92+
gen: {
93+
options: {}
94+
},
95+
app: {
96+
options: {
97+
package: 'test/fixtures/package.json'
98+
}
99+
}
90100
}
91101
});
92102

@@ -271,6 +281,11 @@ module.exports = function (grunt) {
271281
])
272282
});
273283

284+
grunt.registerTask('deps', function(target) {
285+
if (!target || target === 'app') grunt.task.run(['updateFixtures']);
286+
grunt.task.run(['david:' + (target || '')]);
287+
});
288+
274289
grunt.registerTask('demo', [
275290
'clean:demo',
276291
'generateDemo'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"grunt-contrib-clean": "^0.6.0",
3939
"grunt-contrib-jshint": "^0.11.2",
4040
"grunt-conventional-changelog": "~1.0.0",
41+
"grunt-david": "~0.5.0",
4142
"grunt-env": "^0.4.1",
4243
"grunt-mocha-test": "^0.11.0",
4344
"grunt-release": "~0.6.0",

0 commit comments

Comments
 (0)