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'],
40 grunt.loadNpmTasks('grunt-contrib-requirejs');
41 grunt.loadNpmTasks('grunt-contrib-less');
42 grunt.loadNpmTasks('grunt-contrib-jshint');
44 grunt.registerTask('build', ['requirejs', 'less:production']);
45 grunt.registerTask('lint', ['jshint']);
46 grunt.registerTask('default', ['build']);