Skip to content

Commit

Permalink
Prefer Make to npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Jun 19, 2024
1 parent 766b2c2 commit 6b99a89
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 392 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY package.json \
RUN npm ci --ignore-scripts
COPY observablehq.config.js observablehq.config.js
COPY src/ src/
RUN npm run build
RUN npx observable build

FROM caddy AS prod
COPY Caddyfile /etc/caddy/Caddyfile
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: start

node_modules: package.json package-lock.json
npm install
touch node_modules

start: node_modules
npx observable preview
Loading

0 comments on commit 6b99a89

Please sign in to comment.