mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 02:11:38 +02:00
- 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
20 lines
528 B
JavaScript
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; |