File tree Expand file tree Collapse file tree 3 files changed +430
-62
lines changed Expand file tree Collapse file tree 3 files changed +430
-62
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ROOT_DIR ?= $(shell pwd)
33BUILD_DIR ?= $(ROOT_DIR ) /.build
44DIST_DIR ?= $(ROOT_DIR ) /dist
55OUTPUT_DIR ?= $(ROOT_DIR ) /output
6+ PARCEL_DIR ?= $(BUILD_DIR ) /parcel
67RTS_ARGS ?=
78UI_GUIDE_DIR ?= $(ROOT_DIR ) /ui-guide
89
@@ -20,14 +21,14 @@ YARN := cd $(ROOT_DIR) && yarn
2021
2122.DEFAULT_GOAL := build
2223
23- $(BUILD_DIR ) $(DIST_DIR ) :
24+ $(BUILD_DIR ) $(DIST_DIR ) $( PARCEL_DIR ) :
2425 mkdir -p $@
2526
2627$(DEPS ) : packages.dhall spago.dhall $(NODE_MODULES ) | $(BUILD_DIR )
2728 $(YARN ) run spago install $(RTS_ARGS )
2829 touch $@
2930
30- $(DIST_DIR ) /bundled.js : $(OUTPUT_DIR ) /Main/index.js
31+ $(DIST_DIR ) /bundled.js : $(OUTPUT_DIR ) /Main/index.js
3132 $(YARN ) run purs bundle $(OUTPUT_DIR ) /* /* .js \
3233 --main Main \
3334 --module Main \
@@ -59,3 +60,7 @@ clean: $(CLEAN_DEPS)
5960 $(OUTPUT_DIR ) \
6061 $(ROOT_DIR ) /.spago \
6162 $(ROOT_DIR ) /node_modules
63+
64+ .PHONY : ui-guide
65+ ui-guide : build-css $(OUTPUT_DIR ) /Main/index.js $(NODE_MODULES ) | $(PARCEL_DIR )
66+ npx parcel $(DIST_DIR ) /parcel.html --out-dir $(PARCEL_DIR ) --no-cache
Original file line number Diff line number Diff line change 1212 "devDependencies" : {
1313 "browserify" : " ^16.5.1" ,
1414 "parcel" : " 1.12.4" ,
15+ "parcel-bundler" : " 1.12.3" ,
1516 "purescript" : " ^0.13.8" ,
1617 "spago" : " ^0.15.2"
1718 },
You can’t perform that action at this time.
0 commit comments