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']
29 rootpath: 'src/editor/styles/'
35 all: ['Gruntfile.js', 'src/**/*.js'],
43 {src: ['libs/bootstrap/img/**'], dest: build_output_dir+'/'},
49 grunt.loadNpmTasks('grunt-contrib-requirejs');
50 grunt.loadNpmTasks('grunt-contrib-less');
51 grunt.loadNpmTasks('grunt-contrib-jshint');
52 grunt.loadNpmTasks('grunt-contrib-copy');
54 grunt.registerTask('build', ['requirejs', 'less:production', 'copy:resources']);
55 grunt.registerTask('lint', ['jshint']);
56 grunt.registerTask('default', ['build']);