Skip to content

Commit

Permalink
Fix test-npm-package script (#207)
Browse files Browse the repository at this point in the history
* install jq in docker image

* install material before charts-on-fhir
  • Loading branch information
semicolin authored Aug 2, 2023
1 parent 7cfd2f4 commit 504c780
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/ngx-charts-on-fhir/test-npm-package.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM node:18.13.0-alpine
RUN apk update && apk add jq
USER node
WORKDIR /home/node
COPY ./libs/ngx-charts-on-fhir/test-npm-package.sh ./libs/ngx-charts-on-fhir/
COPY ./libs/ngx-charts-on-fhir/package*.json ./libs/ngx-charts-on-fhir/
COPY ./libs/ngx-charts-on-fhir/package.json ./libs/ngx-charts-on-fhir/
COPY --chown=node ./dist/libs/ngx-charts-on-fhir ./dist/libs/ngx-charts-on-fhir
RUN ./libs/ngx-charts-on-fhir/test-npm-package.sh
WORKDIR /home/node/test-app
ENTRYPOINT []
CMD ["cat", "package.json"]
CMD ["cat", "package.json"]
# To run the test app:
# docker run -p 4200:4200 test-npm-package npm start -- --host 0.0.0.0
3 changes: 3 additions & 0 deletions libs/ngx-charts-on-fhir/test-npm-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo ::::: Creating a new Angular app
npx --yes \@angular/cli@${MIN_ANGULAR_VERSION} new test-app --defaults
cd test-app

echo ::::: Installing Angular Material
npx --yes \@angular/cli@${MIN_ANGULAR_VERSION} add @angular/material --skip-confirmation --interactive=false

echo ::::: Installing Charts-on-FHIR library
npm i ../dist/libs/ngx-charts-on-fhir/${PACKAGE_FILE}

Expand Down

0 comments on commit 504c780

Please sign in to comment.