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

Commit 71bc1b7

Browse files
chore(doc_gen): add task to run doc-gen specs
1 parent 00d890c commit 71bc1b7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Gruntfile.js

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = function(grunt) {
77
grunt.loadNpmTasks('grunt-contrib-copy');
88
grunt.loadNpmTasks('grunt-contrib-connect');
99
grunt.loadNpmTasks('grunt-contrib-compress');
10+
grunt.loadNpmTasks('grunt-contrib-jasmine-node');
1011
grunt.loadNpmTasks('grunt-shell');
1112
grunt.loadTasks('lib/grunt');
1213

@@ -156,6 +157,9 @@ module.exports = function(grunt) {
156157
process: ['build/docs/*.html', 'build/docs/.htaccess']
157158
},
158159

160+
"jasmine-node": {
161+
run: { spec: 'docs/spec' }
162+
},
159163

160164
copy: {
161165
i18n: {
@@ -183,6 +187,7 @@ module.exports = function(grunt) {
183187

184188
//alias tasks
185189
grunt.registerTask('test:unit', ['test:jqlite', 'test:jquery', 'test:modules']);
190+
grunt.registerTask('test:docgen', ['jasmine-node']);
186191
grunt.registerTask('minify', ['shell:bower','clean', 'build', 'minall']);
187192
grunt.registerTask('test:e2e', ['connect:testserver', 'test:end2end']);
188193
grunt.registerTask('webserver', ['connect:devserver']);

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"shelljs": "0.1.2",
1919
"karma": "0.8.4",
2020
"yaml-js": "0.0.5",
21-
"showdown": "0.3.1"
21+
"showdown": "0.3.1",
22+
"rewire": "1.1.3",
23+
"grunt-contrib-jasmine-node": "~0.1.1"
2224
},
2325
"licenses": [
2426
{

0 commit comments

Comments
 (0)