From 4aedf73ee896f8bac3dce6d728cb40a9519b76d7 Mon Sep 17 00:00:00 2001 From: TedHumphrey Date: Tue, 13 Aug 2019 15:56:33 +0000 Subject: Changes to support npm publish of reactjs components Modify the pom.xml to copy ui-react sources to target, add maven-exec-plugin to run the "npm publish" step, update the package.json to include where to publish Issue-ID: CLAMP-450 Change-Id: Id0d15e71924867d1d4329a377661d125b21fee6c Signed-off-by: TedHumphrey --- ui-react/package.json | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'ui-react/package.json') diff --git a/ui-react/package.json b/ui-react/package.json index de7cb26d1..a51812271 100644 --- a/ui-react/package.json +++ b/ui-react/package.json @@ -1,17 +1,29 @@ { - "name": "clamp-ui", - "version": "0.0.1", - "description": "ONAP Clamp Designer UI", + "name": "onap-clamp-ui", + "version": "4.1.0-SNAPSHOT", + "description": "ONAP Clamp Loop Designer UI", + "author": "ONAP Clamp Team", + "license": "Apache-2.0", + "homepage": "wiki.onap.org", + "publishConfig": { + "registry": "https://nexus3.onap.org/repository/npm.snapshot/" + }, "main": "index.js", "proxy": "http://localhost:8080", "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" + "test": "react-scripts test --env=jsdom --watchAll=false", + "eject": "react-scripts eject", + "publish": "npm run publish" }, - "author": "ONAP Clamp Team", - "license": "Apache-2.0", + "files": [ + "src/*.js", + "src/*.png", + "src/api", + "src/components", + "src/theme" + ], "dependencies": { "@json-editor/json-editor": "1.3.5", "react": "16.8.0", -- cgit 1.2.3-korg