From c5604515cc20f60a39d0b6db09b834ad0692b854 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 9 May 2013 23:16:23 +0200 Subject: [PATCH] Add build.js and update Makefile So that we can make releases --- Makefile | 7 ++++--- build.js | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 build.js diff --git a/Makefile b/Makefile index 4a8dbb87b..0b2733d35 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ -# Makefile for Sphinx documentation -# - # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build @@ -18,6 +15,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source help: @echo "Please use \`make ' where is one of" + @echo " release to make a new minified release" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @@ -38,6 +36,9 @@ help: @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" +release: + r.js -o build.js + clean: -rm -rf $(BUILDDIR)/* diff --git a/build.js b/build.js new file mode 100644 index 000000000..4ec18695e --- /dev/null +++ b/build.js @@ -0,0 +1,18 @@ +({ + baseUrl: ".", + paths: { + "jquery": "Libraries/require-jquery", + "sjcl": "Libraries/sjcl", + "tinysort": "Libraries/jquery.tinysort", + "underscore": "Libraries/underscore", + "backbone": "Libraries/backbone", + "localstorage": "Libraries/backbone.localStorage", + "strophe": "Libraries/strophe", + "strophe.muc": "Libraries/strophe.muc", + "strophe.roster": "Libraries/strophe.roster", + "strophe.vcard": "Libraries/strophe.vcard", + "strophe.disco": "Libraries/strophe.disco" + }, + name: "main", + out: "converse.full.min.js" +})