瀏覽代碼

Add build step

JC Brand 11 年之前
父節點
當前提交
28e65c946c
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Makefile

+ 5 - 2
Makefile

@@ -2,7 +2,7 @@
 BOWER 		?= node_modules/.bin/bower
 BUILDDIR     = ./docs
 PAPER        =
-PHANTOMJS	?= phantomjs
+PHANTOMJS	?= node_modules/.bin/phantomjs
 SPHINXBUILD  = sphinx-build
 SPHINXOPTS   =
 
@@ -11,7 +11,7 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./d
 # the i18n builder cannot share the environment and doctrees with the others
 I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source
 
-.PHONY: all help clean html epub changes linkcheck gettext po pot po2json merge release css minjs
+.PHONY: all help clean html epub changes linkcheck gettext po pot po2json merge release css minjs build
 
 all: dev
 
@@ -87,6 +87,9 @@ css::
 	./node_modules/.bin/lessc less/styles.less > css/theme.css
 	./node_modules/.bin/lessc less/converse.less > css/converse.css
 
+build::
+	./node_modules/.bin/grunt minify
+
 ########################################################################
 ## Tests