first commit

This commit is contained in:
Christian Lawson-Perfect 2025-02-12 10:55:23 +00:00
commit 6c637e42c8
7 changed files with 165 additions and 0 deletions

13
Makefile Normal file
View file

@ -0,0 +1,13 @@
NODE_BIN=node_modules/.bin
DEST=../better-think-editor/dist
$(DEST)/code-editor.mjs: code-editor.bundle.mjs
cp $< $@
code-editor.terser.mjs: code-editor.bundle.mjs
$(NODE_BIN)/terser --compress --mangle -- $< > $@
code-editor.bundle.mjs: code-editor.mjs
$(NODE_BIN)/rollup $< -f es -p @rollup/plugin-node-resolve -o $@