GitRoot

craft your forge, build your project, grow your community freely
 1# SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
 2#
 3# SPDX-License-Identifier: EUPL-1.2
 4
 5NAME=pollen
 6VERSION=0.0.1
 7
 8all: clean test build
 9
10node_modules:
11	npm install
12
13${NAME}-${VERSION}.wasm: node_modules
14	npm run asbuild:release
15	mv pollen.wasm ${NAME}-${VERSION}.wasm
16
17build: ${NAME}-${VERSION}.wasm
18
19test: node_modules
20	npm run test
21
22clean:
23	rm -rf ${NAME}-${VERSION}.wasm