X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b20691e774cac0cbf2ee174472a1b1dbc94fa61b..9ce300f6e7b27995b982c14b79785e8ca4bed4f0:/Gruntfile.js?ds=sidebyside diff --git a/Gruntfile.js b/Gruntfile.js index 4d26c25..55ee1c8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,8 +4,8 @@ module.exports = function(grunt) { requirejs: { compile: { options: { - baseUrl: '', - mainConfigFile: 'entrypoint.js', + baseUrl: 'src/editor', + mainConfigFile: 'src/editor/entrypoint.js', out: 'build/rng.js', name: 'entrypoint', include: ['libs/require'] @@ -19,14 +19,23 @@ module.exports = function(grunt) { yuicompress: true }, files: { - 'build/rng.css': 'styles/main.less' + 'build/rng.css': 'src/editor/styles/main.less' }, }, + }, + jshint: { + all: ['Gruntfile.js', 'src/**/*.js'], + options: { + jshintrc: '.jshintrc' + } } }); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.registerTask('default', ['requirejs']); + grunt.registerTask('build', ['requirejs', 'less:production']); + grunt.registerTask('lint', ['jshint']); + grunt.registerTask('default', ['build']); }; \ No newline at end of file