mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
38e269f00e
Fixes the need to have browserify installed globally for the build to work.
21 lines
679 B
Makefile
21 lines
679 B
Makefile
JS_SOURCES = $(wildcard js/*.js) $(wildcard js/*/*.js)
|
|
|
|
export PATH := node_modules/.bin:$(PATH)
|
|
|
|
all: static/bundle.js static/react-widgets static/codemirror/codemirror.css
|
|
|
|
node_modules:
|
|
npm install
|
|
|
|
static/bundle.js: $(JS_SOURCES) node_modules
|
|
browserify -t [ babelify --presets [ react es2015 ] ] js/main.js -o static/bundle.js
|
|
|
|
static/react-widgets: node_modules/react-widgets/dist node_modules
|
|
rsync -a node_modules/react-widgets/dist/ static/react-widgets/
|
|
|
|
static/codemirror/codemirror.css: node_modules/codemirror/lib/codemirror.js node_modules
|
|
mkdir -p static/codemirror
|
|
cp node_modules/codemirror/lib/codemirror.css static/codemirror/codemirror.css
|
|
|
|
.PHONY = all
|