Skip to content

Instantly share code, notes, and snippets.

@coodoo
Created December 2, 2012 11:01
Show Gist options
  • Save coodoo/4188218 to your computer and use it in GitHub Desktop.
Save coodoo/4188218 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-requirejs');
grunt.initConfig({
requirejs: {
std: {
options: {
almond: true,
baseUrl: "lib",
paths: {
principium: "../principium"
},
include: ["principium"],
exclude: ["jquery", "underscore"],
out: "dist/principium.js",
wrap: {
startFile: "wrap/wrap.start",
endFile: "wrap/wrap.end"
}
}
}
}
});
// grunt.registerTask('default', 'exec copy-require');
grunt.registerTask('default', 'requirejs');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment