@@ -98,9 +98,10 @@ gulp.task("jsLibraries", function() {
9898 "node_modules/jquery/dist/jquery.min.js" ,
9999 "node_modules/bootstrap/dist/js/bootstrap.min.js" , // For dropdown : temporary
100100 "node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js" ,
101+ "node_modules/angular/angular.js" ,
101102 "node_modules/react/umd/react.production.min.js" ,
102103 "node_modules/react-dom/umd/react-dom.production.min.js" ,
103- "node_modules/angular/angular .js" ,
104+ "node_modules/ngreact/ngReact.min .js" ,
104105 "node_modules/angular-ui-bootstrap/dist/ui-bootstrap.min.js" ,
105106 "node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js" ,
106107 "node_modules/angular-sanitize/angular-sanitize.min.js" ,
@@ -115,7 +116,10 @@ gulp.task("jsLibraries", function() {
115116 "node_modules/angular-bootstrap-switch/dist/angular-bootstrap-switch.min.js" ,
116117 "node_modules/angular-patternfly/node_modules/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js" ,
117118 "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"
119123 ] )
120124 . pipe ( uglify ( ) )
121125 . pipe ( concat ( "libraries.js" ) )
@@ -128,7 +132,8 @@ gulp.task("cssLibraries", function() {
128132 "node_modules/patternfly/dist/css/patternfly.css" ,
129133 "node_modules/patternfly/dist/css/patternfly-additions.css" ,
130134 "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"
132137 ] )
133138 . pipe ( postCss ( [ autoprefixer ( { browsers : browsers } ) ] ) )
134139 . pipe ( buildMode === "dev" ? noop ( ) : minifyCSS ( ) )
@@ -215,8 +220,8 @@ gulp.task("resource", function(done) {
215220gulp . task ( "jsbundle" , [ "eslint" ] , function ( ) {
216221
217222 return gulp . src ( paths . jsFiles , { cwd : paths . src } )
218- . pipe ( babel ( { presets : [ "es2015" ] } ) )
219223 . pipe ( concat ( "plugin-bundle.js" ) )
224+ . pipe ( babel ( { presets : [ "es2015" , "react" ] } ) )
220225 . pipe ( gulp . dest ( paths . dest ) ) ;
221226} ) ;
222227
@@ -256,7 +261,7 @@ gulp.task("watcher", ["browser-sync", "common"], function(done) {
256261
257262 gulp . watch ( filters . js , { cwd : paths . src } , function ( event ) {
258263 log ( "Modified:" , colors . yellow ( event . path ) ) ;
259- runSequence ( "preload" , "jsbundle" ) ;
264+ runSequence ( "preload" , "jsbundle" , "transform" ) ;
260265 } ) ;
261266
262267 gulp . watch ( [ filters . css , filters . scss ] , { cwd : paths . src } , function ( event ) {
0 commit comments