Skip to content

Commit

Permalink
Update critical dependencies and simplify the build step (#82)
Browse files Browse the repository at this point in the history
* Update dep and simplify build

* Bump version
  • Loading branch information
pcothenet authored Dec 6, 2022
1 parent 6c9c41b commit 0159c44
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 161 deletions.
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
FROM node:16.13 AS base


FROM base AS build

WORKDIR /data
ENTRYPOINT [ "npm", "install"]


FROM base AS lint
FROM node:16.16 AS base

WORKDIR /data

ENTRYPOINT [ "npx", "prettier", "--write" ]
ENTRYPOINT []

9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ SHELL = /bin/bash
build: install lint

install:
docker build --target build . -t patch-node-build && \
docker run --rm -v $(PWD):/data patch-node-build
docker build . -t patch-node-build && \
docker run --rm -v $(PWD):/data patch-node-build npm install
docker run --rm -v $(PWD):/data patch-node-build npm audit fix

lint:
docker build --target lint . -t patch-node-lint && \
docker run --rm -v $(PWD):/data patch-node-lint .
docker build . -t patch-node-build && \
docker run --rm -v $(PWD):/data patch-node-build npx prettier --write .

test:
npm run test
Expand Down
Loading

0 comments on commit 0159c44

Please sign in to comment.