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
diff --git a/tools/gui/gulp-tasks/bundles/helpers/bundleResources.js b/tools/gui/gulp-tasks/bundles/helpers/bundleResources.js
new file mode 100644
index 0000000..0ee0898
--- /dev/null
+++ b/tools/gui/gulp-tasks/bundles/helpers/bundleResources.js
@@ -0,0 +1,5 @@
+export default function(prefix, fileArray) {
+ return fileArray.map((file) => {
+ return prefix + file;
+ });
+}
\ No newline at end of file