Skip to content

Commit

Permalink
CI: Ensure CliSpec/JsonEmbed.purs is created before calling Spago
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Jan 11, 2024
1 parent 13a5086 commit 62e2c0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: changelog.md readme.md index.js docs output


.PHONY: build
build: | node_modules
build: src/CliSpec/JsonEmbed.purs | node_modules
npx spago build


Expand All @@ -21,7 +21,7 @@ changelog.md: .git | node_modules
--output-unreleased


index.js: $(wildcard src/**/*) spago.yaml | node_modules
index.js: $(wildcard src/**/*) src/CliSpec/JsonEmbed.purs spago.yaml | node_modules
npx spago bundle \
--platform node \
--minify
Expand Down Expand Up @@ -90,14 +90,14 @@ lint-js: | node_modules
scripts

.PHONY: test-spago
test-spago: | node_modules
test-spago: src/CliSpec/JsonEmbed.purs | node_modules
npx spago test

.PHONY: test
test: lint-js test-spago

.PHONY: test-watch
test-watch: | node_modules
test-watch: src/CliSpec/JsonEmbed.purs | node_modules
watchexec \
--exts purs \
'npx spago test'
Expand Down

0 comments on commit 62e2c0d

Please sign in to comment.