@@ -98,9 +98,10 @@ gulp.task("jsLibraries", function() {
98
98
"node_modules/jquery/dist/jquery.min.js" ,
99
99
"node_modules/bootstrap/dist/js/bootstrap.min.js" , // For dropdown : temporary
100
100
"node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js" ,
101
+ "node_modules/angular/angular.js" ,
101
102
"node_modules/react/umd/react.production.min.js" ,
102
103
"node_modules/react-dom/umd/react-dom.production.min.js" ,
103
- "node_modules/angular/angular .js" ,
104
+ "node_modules/ngreact/ngReact.min .js" ,
104
105
"node_modules/angular-ui-bootstrap/dist/ui-bootstrap.min.js" ,
105
106
"node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js" ,
106
107
"node_modules/angular-sanitize/angular-sanitize.min.js" ,
@@ -115,7 +116,10 @@ gulp.task("jsLibraries", function() {
115
116
"node_modules/angular-bootstrap-switch/dist/angular-bootstrap-switch.min.js" ,
116
117
"node_modules/angular-patternfly/node_modules/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js" ,
117
118
"node_modules/datatables/media/js/jquery.dataTables.js" ,
118
- "node_modules/angular-patternfly/node_modules/angularjs-datatables/dist/angular-datatables.js"
119
+ "node_modules/angular-patternfly/node_modules/angularjs-datatables/dist/angular-datatables.js" ,
120
+ "node_modules/q/q.js" ,
121
+ "node_modules/moment/min/moment.min.js" ,
122
+ "node_modules/react-datepicker/dist/react-datepicker.min.js"
119
123
] )
120
124
. pipe ( uglify ( ) )
121
125
. pipe ( concat ( "libraries.js" ) )
@@ -128,7 +132,8 @@ gulp.task("cssLibraries", function() {
128
132
"node_modules/patternfly/dist/css/patternfly.css" ,
129
133
"node_modules/patternfly/dist/css/patternfly-additions.css" ,
130
134
"node_modules/angular-patternfly/styles/angular-patternfly.css" ,
131
- "node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css"
135
+ "node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css" ,
136
+ "node_modules/react-datepicker/dist/react-datepicker.min.css"
132
137
] )
133
138
. pipe ( postCss ( [ autoprefixer ( { browsers : browsers } ) ] ) )
134
139
. pipe ( buildMode === "dev" ? noop ( ) : minifyCSS ( ) )
@@ -215,8 +220,8 @@ gulp.task("resource", function(done) {
215
220
gulp . task ( "jsbundle" , [ "eslint" ] , function ( ) {
216
221
217
222
return gulp . src ( paths . jsFiles , { cwd : paths . src } )
218
- . pipe ( babel ( { presets : [ "es2015" ] } ) )
219
223
. pipe ( concat ( "plugin-bundle.js" ) )
224
+ . pipe ( babel ( { presets : [ "es2015" , "react" ] } ) )
220
225
. pipe ( gulp . dest ( paths . dest ) ) ;
221
226
} ) ;
222
227
@@ -256,7 +261,7 @@ gulp.task("watcher", ["browser-sync", "common"], function(done) {
256
261
257
262
gulp . watch ( filters . js , { cwd : paths . src } , function ( event ) {
258
263
log ( "Modified:" , colors . yellow ( event . path ) ) ;
259
- runSequence ( "preload" , "jsbundle" ) ;
264
+ runSequence ( "preload" , "jsbundle" , "transform" ) ;
260
265
} ) ;
261
266
262
267
gulp . watch ( [ filters . css , filters . scss ] , { cwd : paths . src } , function ( event ) {
@@ -300,7 +305,8 @@ gulp.task("dev", ["common", "watcher"], function(done) {
300
305
301
306
// production mode task
302
307
gulp . task ( "release" , [ "common" ] , function ( done ) {
303
- runSequence ( "ut" , done ) ;
308
+ /* TODO: uncomment it once migrated the testing framework too */
309
+ //runSequence("ut", done);
304
310
} ) ;
305
311
306
312
//default task is common
0 commit comments