Permalink
Browse files

Added build configuration using grunt.js

  • Loading branch information...
1 parent 055e3f7 commit bb55165bc8618891fba28b350f7b255be446a4e7 @ivoszz committed Nov 29, 2012
Showing with 27 additions and 0 deletions.
  1. +20 −0 grunt.js
  2. +7 −0 require-config.js
View
@@ -0,0 +1,20 @@
+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');
+};
View
@@ -0,0 +1,7 @@
+({
+ appDir: 'app/',
+ baseUrl: 'js',
+ paths: {},
+ dir: 'build/',
+ modules: [{name: 'main'}]
+})

0 comments on commit bb55165

Please sign in to comment.