File tree 2 files changed +21
-13
lines changed
2 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 94
94
},
95
95
"devDependencies" : {
96
96
"brfs" : " ^1.4.3" ,
97
- "browserify" : " ^13.3 .0" ,
97
+ "browserify" : " ^14.1 .0" ,
98
98
"browserify-transform-tools" : " ^1.7.0" ,
99
99
"deep-equal" : " ^1.0.1" ,
100
100
"ecstatic" : " ^2.1.0" ,
101
- "eslint" : " ^3.13 .0" ,
101
+ "eslint" : " ^3.15 .0" ,
102
102
"falafel" : " ^2.0.0" ,
103
- "fs-extra" : " ^1 .0.0" ,
103
+ "fs-extra" : " ^2 .0.0" ,
104
104
"fuse.js" : " ^2.6.1" ,
105
105
"glob" : " ^7.0.0" ,
106
106
"gzip-size" : " ^3.0.0" ,
107
107
"image-size" : " ^0.5.1" ,
108
108
"jasmine-core" : " ^2.4.1" ,
109
- "karma" : " ^1.1.0 " ,
110
- "karma-browserify" : " ^5.0 .1" ,
109
+ "karma" : " ^1.4.1 " ,
110
+ "karma-browserify" : " ^5.1 .1" ,
111
111
"karma-chrome-launcher" : " ^2.0.0" ,
112
112
"karma-coverage" : " ^1.0.0" ,
113
113
"karma-firefox-launcher" : " ^1.0.0" ,
114
114
"karma-jasmine" : " ^1.1.0" ,
115
- "madge" : " ^1.4.4 " ,
116
- "node-sass" : " ^4.1.1 " ,
115
+ "madge" : " ^1.6.0 " ,
116
+ "node-sass" : " ^4.5.0 " ,
117
117
"npm-link-check" : " ^1.2.0" ,
118
118
"open" : " 0.0.5" ,
119
119
"prepend-file" : " ^1.3.1" ,
120
120
"prettysize" : " 0.0.3" ,
121
121
"requirejs" : " ^2.3.1" ,
122
122
"through2" : " ^2.0.3" ,
123
123
"uglify-js" : " ^2.7.5" ,
124
- "watchify" : " ^3.8 .0" ,
124
+ "watchify" : " ^3.9 .0" ,
125
125
"xml2js" : " ^0.4.16"
126
126
}
127
127
}
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ var libGlob = path.join(constants.pathToLib, '**/*.js');
11
11
var testGlob = path . join ( constants . pathToJasmineTests , '**/*.js' ) ;
12
12
var bundleTestGlob = path . join ( constants . pathToJasmineBundleTests , '**/*.js' ) ;
13
13
14
+ var EXIT_CODE = 0 ;
15
+
14
16
// main
15
17
assertJasmineSuites ( ) ;
16
18
assertSrcContents ( ) ;
@@ -117,7 +119,7 @@ function assertCircularDeps() {
117
119
// as of v1.17.0 - 2016/09/08
118
120
// see https://github.com/plotly/plotly.js/milestone/9
119
121
// for more details
120
- var MAX_ALLOWED_CIRCULAR_DEPS = 17 ;
122
+ var MAX_ALLOWED_CIRCULAR_DEPS = 18 ;
121
123
122
124
if ( circularDeps . length > MAX_ALLOWED_CIRCULAR_DEPS ) {
123
125
logs . push ( 'some new circular dependencies were added to src/' ) ;
@@ -133,9 +135,15 @@ function combineGlobs(arr) {
133
135
134
136
function log ( name , logs ) {
135
137
if ( logs . length ) {
136
- console . error ( 'test-syntax error [' + name + ']\n' ) ;
137
- throw new Error ( '\n' + logs . join ( '\n' ) + '\n' ) ;
138
+ console . error ( 'test-syntax error [' + name + ']' ) ;
139
+ EXIT_CODE = 1 ;
140
+ } else {
141
+ console . log ( 'ok ' + name ) ;
138
142
}
139
-
140
- console . log ( 'ok ' + name ) ;
141
143
}
144
+
145
+ process . on ( 'exit' , function ( ) {
146
+ if ( EXIT_CODE ) {
147
+ throw new Error ( 'test syntax failed.' ) ;
148
+ }
149
+ } ) ;
You can’t perform that action at this time.
0 commit comments