Skip to content

Commit 4683ef5

Browse files
author
Erwan Carriou
committed
- update dev depedencies
1 parent 62552ed commit 4683ef5

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

Gruntfile.js

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,29 @@ module.exports = function (grunt) {
4040
}
4141
}
4242
},
43-
jasmine_node: {
43+
jasmine_nodejs: {
4444
options: {
45-
forceExit: true,
46-
match: '.',
47-
matchall: false,
48-
extensions: 'js',
49-
specNameMatcher: 'spec'
45+
specNameSuffix: "spec.js",
46+
helperNameSuffix: "helper.js",
47+
useHelpers: false,
48+
stopOnFailure: false,
49+
reporters: {
50+
console: {
51+
colors: true,
52+
cleanStack: 1,
53+
verbosity: 4,
54+
listStyle: "indent",
55+
activity: false
56+
},
57+
},
58+
customReporters: []
5059
},
51-
all: ['spec/']
60+
monoco: {
61+
specs: [
62+
"spec/module/**",
63+
"spec/monoco/**"
64+
]
65+
}
5266
},
5367
karma: {
5468
monoco: {
@@ -88,7 +102,7 @@ module.exports = function (grunt) {
88102
options: {
89103
process: function (src, filepath) {
90104
var uid = generateId(),
91-
result = '';
105+
result = '';
92106

93107
function generateId() {
94108
function gen() {
@@ -125,7 +139,7 @@ module.exports = function (grunt) {
125139
options: {
126140
process: function (src, filepath) {
127141
var result = '',
128-
uid = '';
142+
uid = '';
129143

130144
if (filepath.indexOf('build') !== -1) {
131145
result = src + '},\n"schemas" : {';
@@ -144,7 +158,7 @@ module.exports = function (grunt) {
144158
options: {
145159
process: function (src, filepath) {
146160
var result = '',
147-
uid = '';
161+
uid = '';
148162

149163
if (filepath.indexOf('build') !== -1) {
150164
result = src + '},\n"types" : {';
@@ -163,8 +177,8 @@ module.exports = function (grunt) {
163177
options: {
164178
process: function (src, filepath) {
165179
var result = '',
166-
uid = '',
167-
collectionName = '';
180+
uid = '',
181+
collectionName = '';
168182

169183
if (filepath.indexOf('build') !== -1) {
170184
result = src + '},\n"components" : {';
@@ -229,7 +243,7 @@ module.exports = function (grunt) {
229243
grunt.loadNpmTasks('grunt-contrib-concat');
230244
grunt.loadNpmTasks('grunt-contrib-jshint');
231245
grunt.loadNpmTasks('grunt-jsbeautifier');
232-
grunt.loadNpmTasks('grunt-jasmine-node');
246+
grunt.loadNpmTasks('grunt-jasmine-nodejs');
233247
grunt.loadNpmTasks('grunt-merge-json');
234248
grunt.loadNpmTasks('grunt-contrib-yuidoc');
235249
grunt.loadNpmTasks('grunt-karma');
@@ -257,7 +271,7 @@ module.exports = function (grunt) {
257271

258272
// test task
259273
grunt.registerTask('test', [
260-
'jasmine_node'
274+
'jasmine_nodejs:monoco'
261275
]);
262276

263277
// debug task

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"grunt-contrib-uglify": "^0.9.1",
4747
"grunt-contrib-watch": "^0.6.1",
4848
"grunt-contrib-yuidoc": "^0.9.0",
49-
"grunt-jasmine-node": "^0.3.1",
49+
"grunt-jasmine-nodejs": "^1.4.2",
5050
"grunt-jsbeautifier": "^0.2.10",
5151
"grunt-karma": "^0.12.0",
5252
"grunt-merge-json": "^0.9.5",

0 commit comments

Comments
 (0)