mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-13 05:29:24 -04:00
Add package.json, automate installing js packages
This commit is contained in:
7
Makefile
7
Makefile
@ -2,10 +2,13 @@ JS_SOURCES = $(wildcard js/*.js) $(wildcard js/*/*.js)
|
||||
|
||||
all: static/bundle.js static/react-widgets
|
||||
|
||||
static/bundle.js: $(JS_SOURCES)
|
||||
node_modules:
|
||||
npm install
|
||||
|
||||
static/bundle.js: $(JS_SOURCES) node_modules
|
||||
browserify -t [ babelify --presets [ react ] ] js/main.js -o static/bundle.js
|
||||
|
||||
static/react-widgets: node_modules/react-widgets/dist
|
||||
static/react-widgets: node_modules/react-widgets/dist node_modules
|
||||
rsync -a node_modules/react-widgets/dist/ static/react-widgets/
|
||||
|
||||
.PHONY = all
|
||||
|
Reference in New Issue
Block a user