4d26c252fa11d4c4ed5b4c84fe3fbc828a267c8c
[fnpeditor.git] / Gruntfile.js
1 module.exports = function(grunt) {
2
3     grunt.initConfig({
4         requirejs: {
5           compile: {
6             options: {
7               baseUrl: '',
8               mainConfigFile: 'entrypoint.js',
9               out: 'build/rng.js',
10               name: 'entrypoint',
11               include: ['libs/require']
12             }
13           }
14         },
15         less: {
16             production: {
17                 options: {
18                     paths: [''],
19                     yuicompress: true
20                 },
21                 files: {
22                     'build/rng.css': 'styles/main.less'
23                 },
24             },
25         }
26     });
27
28     grunt.loadNpmTasks('grunt-contrib-requirejs');
29     grunt.loadNpmTasks('grunt-contrib-less');
30
31     grunt.registerTask('default', ['requirejs']);
32 };