3 module.exports = function(grunt) {
6 var build_output_dir = grunt.option('output-dir') || 'build',
9 less_files[build_output_dir + '/rng.css'] = 'src/editor/styles/main.less';
15 baseUrl: 'src/editor',
16 mainConfigFile: 'src/editor/entrypoint.js',
17 out: build_output_dir + '/rng.js',
19 include: ['libs/require']
34 all: ['Gruntfile.js', 'src/**/*.js'],
42 {src: ['libs/bootstrap/img/**'], dest: build_output_dir+'/'},
48 grunt.loadNpmTasks('grunt-contrib-requirejs');
49 grunt.loadNpmTasks('grunt-contrib-less');
50 grunt.loadNpmTasks('grunt-contrib-jshint');
51 grunt.loadNpmTasks('grunt-contrib-copy');
53 grunt.registerTask('build', ['requirejs', 'less:production', 'copy:resources']);
54 grunt.registerTask('lint', ['jshint']);
55 grunt.registerTask('default', ['build']);