Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
chore(scripts): update references to npm scripts to adopt new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
debloper committed Jan 15, 2018
1 parent 11a1061 commit d64a4e0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ The following table lists some of the most useful or frequently used scripts and
|Cleans the dependencies and reinstalls them

|Unit Tests
|`$ npm run test:unit`
|`$ npm run tests -- --unit`
|Runs the unit tests

|Semantic Release
|`$ npm run semantic-release`
|Builds the library and performs a semantic release to npmjs

|Continuous Build
|`$ npm run watch:library`
|`$ npm run build -- --watch`
|Runs the build in watch mode, watches for changes and rebuilds source
|===

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.f8ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
planner:
container_name: fabric8-planner-platform
image: fabric8-planner-platform
# command: npm run test:unit
# command: npm run tests -- --unit
environment:
# $PROXY_PASS_URL is required by the nginx-config file
# It's set by pipeline-library in CI & is emulated here
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
container_name: fabric8-planner-runtime
image: fabric8-planner-runtime
# command: npm run test:unit
# command: npm run tests -- --unit
environment:
FABRIC8_WIT_API_URL: http://localhost:8080/api/
FABRIC8_SSO_API_URL: https://sso.prod-preview.openshift.io/
Expand Down
4 changes: 2 additions & 2 deletions docs/building_planner.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ NOTE: You may need to have root access to run the following commands.
+
[sh]
----
npm run watch:library
npm run build -- --watch
----

. Change directory to *_runtime_* and get the dependencies for planner runtime.
Expand Down Expand Up @@ -129,7 +129,7 @@ To *integrate planner with Fabric8 UI environment*, the steps are quite similar
+
[sh]
----
npm run watch:library
npm run build -- --watch
----

. Change directory to the webapp into which you want to embed the Planner library (let's use Fabric8 UI in this example) and ensure that you have installed the npm package.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ then
else
echo "Building planner library..."
npm install
npm run build:library
npm run build
fi

echo "Starting docker..."
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
docker build -t fabric8-ui-builder -f Dockerfile .
mkdir -p runtime/dist && docker run --detach=true --name=fabric8-ui-builder -e "API_URL=http://demo.api.openshift.io/api/" -t -v $(pwd)/runtime/dist:/dist:Z fabric8-ui-builder
docker exec fabric8-ui-builder npm install
docker exec fabric8-ui-builder npm run test:unit
docker exec fabric8-ui-builder npm run tests -- --unit

if [[ "$1" == "functionalTests" ]]; then
echo "Running functional tests..."
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_docker2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
docker build -t fabric8-planner-builder -f Dockerfile .
mkdir -p runtime/dist && docker run --detach=true --name=fabric8-planner-builder --user=root --cap-add=SYS_ADMIN -t -v $(pwd)/runtime/dist:/dist:Z fabric8-planner-builder
docker exec fabric8-planner-builder npm install
docker exec fabric8-planner-builder npm run test:unit
docker exec fabric8-planner-builder npm run tests -- --unit
docker exec fabric8-planner-builder npm run build
docker exec fabric8-planner-builder bash -c "cd runtime ; npm link ../dist"
docker exec -i fabric8-planner-builder bash -c "cd runtime ; npm install"
Expand Down

0 comments on commit d64a4e0

Please sign in to comment.