r.js minify

This commit is contained in:
Nils Schneider 2015-03-29 03:46:10 +02:00
parent 5651c605de
commit 5a5c3e2263
5 changed files with 21 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
bower_components/
app-combined.js

View File

@ -6,3 +6,11 @@ modules, run
bower install
in its root directory.
# Building
Just run:
node bower_components/r.js/dist/r.js -o build.js
This will create `app-combined.js`.

1
app.js
View File

@ -1,5 +1,4 @@
require.config({
urlArgs: "bust=" + (new Date()).getTime(),
baseUrl: "lib",
paths: {
"leaflet": "../bower_components/leaflet/dist/leaflet",

View File

@ -18,7 +18,9 @@
"requirejs": "~2.1.16",
"tablesort": "https://github.com/tristen/tablesort.git#v3.0.2",
"roboto-slab-fontface": "*",
"es6-shim": "~0.27.1"
"es6-shim": "~0.27.1",
"almond": "~0.3.1",
"r.js": "~2.1.16"
},
"authors": [
"Nils Schneider <nils@nilsschneider.net>"

9
build.js Normal file
View File

@ -0,0 +1,9 @@
({
baseUrl: "lib",
name: "../bower_components/almond/almond",
mainConfigFile: "app.js",
include: "main",
wrap: true,
optimize: "uglify",
out: "app-combined.js"
})