Steven Burrows a145e10376 ONOS-628 - Download and extract node binaries for the GUI build step
- Added gulp build task the:
	- Bundles Vendor JS files
	- Bundles ONOS JS Files
	- Bundles ONOS CSS Files
	- Added SourceMaps to JS bundles - Helps with debugging during development
- Added Bundles to index.js and removed old references
- Git Ignored any generated files
- Ensured the build step is able to build without a local copy of node installed
- Added BUCK genrules (provided by Viswa)
- Added BUCK Dependency to GUI
- Buck Rule to run when src changes
- Node/NPM downloaded using BUCK remote_file

Change-Id: Ia6ca3b952ff801850ade7469c23aac76c8520400
2017-07-11 01:39:46 +00:00

20 lines
528 B
JavaScript

import gulp from 'gulp';
import concat from 'gulp-concat';
import BundleResources from '../helpers/bundleResources';
const GUI_BASE = '../../web/gui/src/main/webapp/';
const bundleFiles = [
'app/onos.css',
'app/onos-theme.css',
'app/common.css',
'app/fw/**/*.css',
'app/view/**/*.css',
];
const task = gulp.task('bundle-css', function () {
return gulp.src(BundleResources(GUI_BASE, bundleFiles))
.pipe(concat('onos.css'))
.pipe(gulp.dest(GUI_BASE + '/dist/'));
});
export default task;