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/package.json b/tools/gui/package.json
new file mode 100644
index 0000000..bd76963
--- /dev/null
+++ b/tools/gui/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "onos-gui-build",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "build": "gulp build"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {},
+ "devDependencies": {
+ "babel": "^6.23.0",
+ "babel-core": "^6.25.0",
+ "babel-preset-es2015": "^6.24.1",
+ "gulp": "^3.9.1",
+ "gulp-concat": "^2.6.1",
+ "gulp-sourcemaps": "^2.6.0",
+ "gulp-strip-comments": "^2.4.5",
+ "gulp-uglify": "^3.0.0"
+ },
+ "babel": {
+ "presets": [
+ "es2015"
+ ]
+ }
+}