diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..fd97aeff1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,38 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + browserify: { + dist: { + files: { + 'static/main.js': ['lib/GUI/js/main.js'] + }, + options: { + debug: true + } + } + }, + less: { + dist: { + files: { + 'static/main.css': ['lib/GUI/css/main.less'] + }, + options: { + sourceMap: true + } + } + }, + watch: { + files: [ "lib/GUI/js/**/*", "lib/GUI/css/**/*"], + tasks: [ 'default' ] + } + }); + + grunt.loadNpmTasks('grunt-browserify'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-less'); + + grunt.registerTask('default', [ + 'browserify', + 'less' + ]); +}; \ No newline at end of file diff --git a/lib/GUI/css/main.less b/lib/GUI/css/main.less new file mode 100644 index 000000000..a39a29544 --- /dev/null +++ b/lib/GUI/css/main.less @@ -0,0 +1,3 @@ +body { + +} \ No newline at end of file diff --git a/lib/GUI/index.handlebars b/lib/GUI/index.handlebars index 97afde139..0b1f058c6 100644 --- a/lib/GUI/index.handlebars +++ b/lib/GUI/index.handlebars @@ -3,6 +3,8 @@
{{ description }}
{{/each}} + +