summaryrefslogtreecommitdiff
path: root/ui/Makefile
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-09-16 14:02:32 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-22 11:40:11 -0400
commit073393af311d36c8ca7570ff0d3f0a3117c0b544 (patch)
treee59286ac350ba17110392f53b6e48bcedfd12ef1 /ui/Makefile
parentae5a20d059209f2027c05820dc3b4cfe7346c8a8 (diff)
[pkg] rename www to ui
Diffstat (limited to 'ui/Makefile')
-rw-r--r--ui/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/ui/Makefile b/ui/Makefile
new file mode 100644
index 00000000..d67a02b3
--- /dev/null
+++ b/ui/Makefile
@@ -0,0 +1,47 @@
+#
+# builds for development mode
+#
+
+dev-build: build-clean
+ npm install
+ npm run build
+ touch pydist/bitmask_js/__init__.py
+
+dev-install: dev-build
+ pip install -e pydist
+
+#
+# installs python package, but does not rebuild the js.
+# for usage when you don't want to install nodejs
+#
+dev-install-prebuilt:
+ pip install -e pydist
+
+
+#
+# distribution builds
+#
+
+dist-build: build-clean
+ npm install
+ npm run build:production
+ touch pydist/bitmask_js/__init__.py
+ cd pydist && python setup.py bdist_wheel
+
+dist-install: dist-build
+ pip install pydist/dist/*.whl
+
+#
+# cleaning up
+#
+
+build-clean:
+ rm -rf pydist/bitmask_js
+ rm -rf pydist/dist
+ rm -rf pydist/build
+
+clean: build-clean
+ rm -rf node_modules
+
+uninstall:
+ pip uninstall bitmask_js