Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,16 @@ jobs:
node-version: 22

- name: Install dependencies
run: npm ci
run: make deps-install

- name: Build
run: NODE_ENV=production node build.mjs

- name: Package artifact
run: tar -czf playground.tar.gz -C build .
run: make build

- name: Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
run: make release

# On PRs, preview the next release version
- name: Preview release version
Expand Down
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Fink playground — standard repo targets
#
# Build pipeline: wasm-pack (Rust→WASM) + esbuild (TS→JS) → build/
# Dependencies: node deps.mjs (npm + cargo + fink git tag)

.PHONY: deps-check deps-update deps-install clean build dev test release

deps-check:
node deps.mjs check

deps-update:
node deps.mjs update

deps-install:
node deps.mjs install

clean:
rm -rf build crate/pkg

build:
NODE_ENV=production node build.mjs

dev:
node build.mjs && npx servor build index.html 3000 --reload

test:
@echo "no tests yet"

release:
tar -czf playground.tar.gz -C build .
npx semantic-release
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
"name": "fink-playground",
"private": true,
"type": "module",
"scripts": {
"clean": "rm -rf build crate/pkg",
"build": "node build.mjs",
"dev": "node build.mjs && npx servor build index.html 3000 --reload",
"check-deps": "node deps.mjs check",
"update-deps": "node deps.mjs update",
"install-deps": "node deps.mjs install"
},
"scripts": {},
"dependencies": {
"monaco-editor": "^0.55.1"
},
Expand Down
Loading