X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/ca7d9f0db18dff8083e5f06e52efec85ca522900..b20691e774cac0cbf2ee174472a1b1dbc94fa61b:/Gruntfile.js diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..4d26c25 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,32 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + requirejs: { + compile: { + options: { + baseUrl: '', + mainConfigFile: 'entrypoint.js', + out: 'build/rng.js', + name: 'entrypoint', + include: ['libs/require'] + } + } + }, + less: { + production: { + options: { + paths: [''], + yuicompress: true + }, + files: { + 'build/rng.css': 'styles/main.less' + }, + }, + } + }); + + grunt.loadNpmTasks('grunt-contrib-requirejs'); + grunt.loadNpmTasks('grunt-contrib-less'); + + grunt.registerTask('default', ['requirejs']); +}; \ No newline at end of file