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';
16 baseUrl: 'src/editor',
17 mainConfigFile: 'src/editor/entrypoint.js',
18 out: build_output_dir + '/rng.js',
20 include: ['libs/require']
30 rootpath: 'src/editor/styles/'
36 all: ['Gruntfile.js', 'src/**/*.js'],
44 {src: ['libs/bootstrap/img/**'], dest: build_output_dir+'/'},
50 grunt.loadNpmTasks('grunt-contrib-requirejs');
51 grunt.loadNpmTasks('grunt-contrib-less');
52 grunt.loadNpmTasks('grunt-contrib-jshint');
53 grunt.loadNpmTasks('grunt-contrib-copy');
55 grunt.registerTask('build', ['requirejs', 'less:production', 'copy:resources']);
56 grunt.registerTask('lint', ['jshint']);
57 grunt.registerTask('default', ['build']);