Skip to content

Instantly share code, notes, and snippets.

@TechnotronicOz
Created February 7, 2013 18:56
Show Gist options
  • Save TechnotronicOz/4733214 to your computer and use it in GitHub Desktop.
Save TechnotronicOz/4733214 to your computer and use it in GitHub Desktop.
r.js gruntfile
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.initConfig({
exec: {
build: {
command: 'node node_modules/requirejs/bin/r.js -o require-config.js'
}
}
});
grunt.registerTask('copy-require', function() {
grunt.file.mkdir('build/js/lib');
grunt.file.copy('node_modules/requirejs/require.js', 'build/js/lib/require.js');
});
grunt.registerTask('default', 'exec copy-require');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment