Created
February 7, 2013 18:56
-
-
Save TechnotronicOz/4733214 to your computer and use it in GitHub Desktop.
r.js gruntfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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