hopglass/tasks/build.js
Nils Schneider bfe6fe346d grunt
2015-03-29 14:43:02 +02:00

66 lines
1.5 KiB
JavaScript

"use strict"
module.exports = function(grunt) {
grunt.config.merge({
copy: {
html: {
src: ["*.html"],
expand: true,
cwd: "html/",
dest: "build/"
},
vendorjs: {
src: [ "es6-shim/es6-shim.min.js",
"intl/Intl.complete.js"
],
expand: true,
cwd: "bower_components/",
dest: "build/vendor/"
},
roboto: {
src: [ "fonts/*",
"roboto-slab-fontface.css"
],
expand: true,
dest: "build/",
cwd: "bower_components/roboto-slab-fontface"
},
ionicons: {
src: [ "fonts/*",
"css/ionicons.min.css"
],
expand: true,
dest: "build/",
cwd: "bower_components/ionicons/",
}
},
cssmin: {
target: {
files: {
"build/style.css": [ "bower_components/leaflet/dist/leaflet.css",
"bower_components/Leaflet.label/dist/leaflet.label.css",
"style.css"
]
}
}
},
requirejs: {
compile: {
options: {
baseUrl: "lib",
name: "../bower_components/almond/almond",
mainConfigFile: "app.js",
include: "../app",
wrap: true,
optimize: "uglify",
out: "build/app.js"
}
}
}
})
grunt.loadNpmTasks("grunt-contrib-copy")
grunt.loadNpmTasks("grunt-contrib-requirejs")
grunt.loadNpmTasks('grunt-contrib-cssmin')
}