Prepared GUI2 FW lib for publishing on npmjs.org
Change-Id: Icdbdacb24848795b644fc8b76c628fbdb8701e96
diff --git a/web/gui2-fw-lib/BUILD b/web/gui2-fw-lib/BUILD
index bb59e5b..2debb28 100644
--- a/web/gui2-fw-lib/BUILD
+++ b/web/gui2-fw-lib/BUILD
@@ -88,6 +88,8 @@
srcs = glob(
[
"projects/gui2-fw-lib/**",
+ "README.md",
+ "LICENSE",
],
exclude = [
"projects/gui2-fw-lib/**/*.spec.*", # Don't track tests here
@@ -238,8 +240,8 @@
" unzip -q $$ROOT/$(location //web/gui:onos-gui-data-for-gui2) web/gui/src/main/webapp/data/img/loading/* &&" +
" mkdir -p dist/gui2-fw-lib/assets &&" +
" mv web/gui/src/main/webapp/data/img/loading dist/gui2-fw-lib/assets &&" +
- " cd dist/gui2-fw-lib &&" +
- " npm pack &&" +
+ " cp README.md LICENSE dist/gui2-fw-lib &&" +
+ " npm pack ./dist/gui2-fw-lib >> $$ROOT/$(location gui2-fw-ng-build-prod.log) 2>&1 &&" +
" mv gui2-fw-lib-*.tgz $$ROOT/$(location gui2-fw-lib-ver.tgz) &&" +
" touch $$ROOT/$(location gui2-fw-ng-build-prod.log)", # to get the log always as the 2nd file
message = "GUI FW Lib build",
diff --git a/web/gui2-fw-lib/LICENSE b/web/gui2-fw-lib/LICENSE
new file mode 100644
index 0000000..33cee65
--- /dev/null
+++ b/web/gui2-fw-lib/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2019-present Open Networking Foundation.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/web/gui2-fw-lib/package.json b/web/gui2-fw-lib/package.json
index 009242b..309dbe0 100644
--- a/web/gui2-fw-lib/package.json
+++ b/web/gui2-fw-lib/package.json
@@ -1,6 +1,6 @@
{
"name": "gui2-fw-lib-app",
- "version": "2.1.0",
+ "version": "2.1.1",
"license": "MIT",
"scripts": {
"ng": "ng",
diff --git a/web/gui2-fw-lib/projects/gui2-fw-lib/package.json b/web/gui2-fw-lib/projects/gui2-fw-lib/package.json
index b029f67..0ae008f 100644
--- a/web/gui2-fw-lib/projects/gui2-fw-lib/package.json
+++ b/web/gui2-fw-lib/projects/gui2-fw-lib/package.json
@@ -1,6 +1,19 @@
{
"name": "gui2-fw-lib",
- "version": "2.1.0",
+ "version": "2.1.1",
+ "author": {
+ "name": "Sean Condon",
+ "email": "sean@opennetworking.org"
+ },
+ "description": "ONOS Project GUI Framework Library built on Angular7+",
+ "keywords": "ONOS SDN Controller ONF Open Networking Foundation",
+ "homepage": "https://onosproject.org/",
+ "bugs": "support@opennetworking.org",
+ "license": "Apache-2.0",
+ "repository": {
+ "type" : "git",
+ "url" : "https://github.com/opennetworkinglab/onos.git"
+ },
"peerDependencies": {
"@angular/common": "^7.0.0 || ^6.0.0-rc.0 || ^6.0.0",
"@angular/core": "^7.0.0 || ^6.0.0-rc.0 || ^6.0.0"