diff --git a/.gitignore b/.gitignore index 1377554..bf2c4ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.swp +static/bundle.js diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d041b28 --- /dev/null +++ b/Makefile @@ -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 diff --git a/static/AccountCombobox.js b/js/AccountCombobox.js similarity index 100% rename from static/AccountCombobox.js rename to js/AccountCombobox.js diff --git a/static/AccountRegister.js b/js/AccountRegister.js similarity index 100% rename from static/AccountRegister.js rename to js/AccountRegister.js diff --git a/static/AccountSettingsModal.js b/js/AccountSettingsModal.js similarity index 100% rename from static/AccountSettingsModal.js rename to js/AccountSettingsModal.js diff --git a/static/AccountsTab.js b/js/AccountsTab.js similarity index 100% rename from static/AccountsTab.js rename to js/AccountsTab.js diff --git a/static/MoneyGoApp.js b/js/MoneyGoApp.js similarity index 100% rename from static/MoneyGoApp.js rename to js/MoneyGoApp.js diff --git a/static/NewUserForm.js b/js/NewUserForm.js similarity index 100% rename from static/NewUserForm.js rename to js/NewUserForm.js diff --git a/static/TopBar.js b/js/TopBar.js similarity index 100% rename from static/TopBar.js rename to js/TopBar.js diff --git a/static/main.js b/js/main.js similarity index 100% rename from static/main.js rename to js/main.js diff --git a/static/models.js b/js/models.js similarity index 100% rename from static/models.js rename to js/models.js diff --git a/static/utils.js b/js/utils.js similarity index 100% rename from static/utils.js rename to js/utils.js diff --git a/static/Makefile b/static/Makefile deleted file mode 100644 index be43e62..0000000 --- a/static/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -all: - browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js - -.PHONY = all diff --git a/static/index.html b/static/index.html index a69d08a..c17fc71 100644 --- a/static/index.html +++ b/static/index.html @@ -4,12 +4,11 @@ - + -