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']
33 all: ['Gruntfile.js', 'src/**/*.js'],
41 {src: ['libs/bootstrap/**'], dest: build_output_dir+'/'},
47 grunt.loadNpmTasks('grunt-contrib-requirejs');
48 grunt.loadNpmTasks('grunt-contrib-less');
49 grunt.loadNpmTasks('grunt-contrib-jshint');
50 grunt.loadNpmTasks('grunt-contrib-copy');
52 grunt.registerTask('build', ['requirejs', 'less:production', 'copy:resources']);
53 grunt.registerTask('lint', ['jshint']);
54 grunt.registerTask('default', ['build']);