mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-13 05:29:24 -04:00
Reorganization around building JavaScript differently
This commit is contained in:
11
Makefile
Normal file
11
Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
JS_SOURCES = $(wildcard js/*.js)
|
||||
|
||||
all: static/bundle.js static/react-widgets
|
||||
|
||||
static/bundle.js: $(JS_SOURCES)
|
||||
browserify -t [ babelify --presets [ react ] ] js/main.js -o static/bundle.js
|
||||
|
||||
static/react-widgets: node_modules/react-widgets/dist
|
||||
rsync -a node_modules/react-widgets/dist/ static/react-widgets/
|
||||
|
||||
.PHONY = all
|
Reference in New Issue
Block a user