2024-06-04 08:32:24 -04:00
|
|
|
.PHONY: dev
|
|
|
|
|
|
|
|
WASM_LIB_FILES := $(wildcard src/wasm-lib/**/*.rs)
|
2024-06-24 11:45:40 -04:00
|
|
|
TS_SRC := $(wildcard src/**/*.tsx) $(wildcard src/**/*.ts)
|
|
|
|
XSTATE_TYPEGENS := $(wildcard src/machines/*.typegen.ts)
|
2024-06-04 08:32:24 -04:00
|
|
|
|
2024-06-24 11:45:40 -04:00
|
|
|
dev: node_modules public/wasm_lib_bg.wasm $(XSTATE_TYPEGENS)
|
2024-06-04 08:32:24 -04:00
|
|
|
yarn start
|
|
|
|
|
2024-09-04 08:35:40 -04:00
|
|
|
# I'm sorry this is so specific to my setup you may as well ignore this.
|
|
|
|
# This is so you don't have to deal with electron windows popping up constantly.
|
|
|
|
# It should work for you other Linux users.
|
|
|
|
lee-electron-test:
|
|
|
|
Xephyr -br -ac -noreset -screen 1200x500 :2 &
|
|
|
|
DISPLAY=:2 NODE_ENV=development PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:4444/ yarn tron:test -g "when using the file tree"
|
|
|
|
killall Xephyr
|
|
|
|
|
2024-06-24 11:45:40 -04:00
|
|
|
$(XSTATE_TYPEGENS): $(TS_SRC)
|
|
|
|
yarn xstate typegen 'src/**/*.ts?(x)'
|
|
|
|
|
2024-06-04 08:32:24 -04:00
|
|
|
public/wasm_lib_bg.wasm: $(WASM_LIB_FILES)
|
2024-11-11 14:58:44 -05:00
|
|
|
yarn build:wasm
|
2024-06-04 08:32:24 -04:00
|
|
|
|
2024-06-24 11:45:40 -04:00
|
|
|
node_modules: package.json yarn.lock
|
2024-06-04 08:32:24 -04:00
|
|
|
yarn install
|