mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-27 07:52:28 -05:00
Reorganization around building JavaScript differently
This commit is contained in:
parent
d6ddf0f65f
commit
c5bca50113
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.swp
|
*.swp
|
||||||
|
static/bundle.js
|
||||||
|
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
|
@ -1,4 +0,0 @@
|
|||||||
all:
|
|
||||||
browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js
|
|
||||||
|
|
||||||
.PHONY = all
|
|
@ -4,12 +4,11 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
|
||||||
<link rel="stylesheet" href="static/node_modules/react-widgets/dist/css/react-widgets.css">
|
<link rel="stylesheet" href="static/react-widgets/css/react-widgets.css">
|
||||||
<link rel="stylesheet" href="static/stylesheet.css">
|
<link rel="stylesheet" href="static/stylesheet.css">
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<script src="static/external/big/big.min.js"></script>
|
<script src="static/external/big/big.min.js"></script>
|
||||||
<script src="static/external/classnames/index.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="static/bundle.js"></script>
|
<script type="text/javascript" src="static/bundle.js"></script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user