-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (24 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
tarball=out/inkle-0.0.0-testing.tgz
dist/cli.js:
yarn build
# todo: try '--pack-destination out' instead of moving file
$(tarball): dist/cli.js
mkdir -p out
npm version --allow-same-version --no-git-tag-version 0.0.0-testing
npm pack
mv inkle-0.0.0-testing.tgz out/
# installing latest version of npm because certain old versions fail
test-npx-node-18: $(tarball)
docker run --entrypoint bash -v $(PWD)/out:/out node:18-bookworm -c 'npm i -g npm && npm exec -y file:///out/inkle-0.0.0-testing.tgz -- --test midgame --quit'
test-npx-node-20: $(tarball)
docker run --entrypoint bash -v $(PWD)/out:/out node:20-bookworm -c 'npm i -g npm && npm exec -y file:///out/inkle-0.0.0-testing.tgz -- --test midgame --quit'
test-npx-node-22: $(tarball)
docker run --entrypoint bash -v $(PWD)/out:/out node:22-bookworm -c 'npm i -g npm && npm exec -y file:///out/inkle-0.0.0-testing.tgz -- --test midgame --quit'
interactive-node-18: $(tarball)
docker run -it --entrypoint bash -v $(PWD)/out:/out node:18-bookworm
interactive-node-20: $(tarball)
docker run -it --entrypoint bash -v $(PWD)/out:/out node:20-bookworm
interactive-node-22: $(tarball)
docker run -it --entrypoint bash -v $(PWD)/out:/out node:22-bookworm
clean:
rm -rf dist