681ec8b27405acf8d9e12f1a26ca650e1e4f8191
[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         jshint: {
27             all: ['Gruntfile.js', 'modules/**/*.js', 'views/**/*.js', 'fnpjs/**/*.js']
28         }
29     });
30
31     grunt.loadNpmTasks('grunt-contrib-requirejs');
32     grunt.loadNpmTasks('grunt-contrib-less');
33     grunt.loadNpmTasks('grunt-contrib-jshint');
34
35     grunt.registerTask('default', ['requirejs']);
36 };