Skip to content

Instantly share code, notes, and snippets.

@micha
Last active July 6, 2017 17:04
Show Gist options
  • Save micha/4720ac93e6858ae8e8b272aa25619282 to your computer and use it in GitHub Desktop.
Save micha/4720ac93e6858ae8e8b272aa25619282 to your computer and use it in GitHub Desktop.
.PHONY: all clean
all: demo/main.js
clean:
rm -rf build
rm -f demo/main.js
build/%.js: src/%.js
mkdir -p build
babel $^ -o $@
demo/main.js: build/index.js build/cell.js build/ast.js
mkdir -p demo
browserify \
-r ./build/cell.js:cell \
-r ./build/ast.js:ast \
-r immutable \
-r transit-immutable-js \
$< -o $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment