Permalink
Browse files

switched to browserify

  • Loading branch information...
1 parent f03e9ff commit e3cc73b508e8b4102c15f76dfcad79fd4a5136ac @dimsmol committed Mar 19, 2013
View
@@ -1,7 +1,14 @@
-js_all: js_min js_min_global
+UGLIFY_OPTS = -c 'unused=false' -m
-js_min:
- r.js -o client/build.min.js
+client_all: client_js test_page
-js_min_global:
- r.js -o client/build.min.global.js
+test_page:
+ browserify -e lib/test_page/client/init.js > public/static/test_page/js/test_page.js
+
+client_js:
+ browserify ./client/export/browserify.js > client/apis.js
+ browserify ./client/export/amd.js > client/apis.amd.js
+ browserify ./client/export/global.js > client/apis.global.js
+ uglifyjs client/apis.js $(UGLIFY_OPTS) > client/apis.min.js
+ uglifyjs client/apis.amd.js $(UGLIFY_OPTS) > client/apis.amd.min.js
+ uglifyjs client/apis.global.js $(UGLIFY_OPTS) > client/apis.global.min.js
View
@@ -15,10 +15,10 @@ Handler interface:
## Test page
-To get test page on `/test_page/index.html` add to your contract:
+To get test page on `/test_page` add to your contract:
```js
-res.subpaths('/test_page', st(apis.tools.testPage.staticPath))
+cont('/test', [apis.testPage.contract])
```
## Apps known by Loader
Oops, something went wrong.

0 comments on commit e3cc73b

Please sign in to comment.