From 2860b0ceae8e08704996b3397fb8b962ca60ab95 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 28 Nov 2016 18:11:12 -0500 Subject: tree init --- tree/Gruntfile.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tree/Gruntfile.js (limited to 'tree/Gruntfile.js') diff --git a/tree/Gruntfile.js b/tree/Gruntfile.js new file mode 100644 index 0000000..7f3fedc --- /dev/null +++ b/tree/Gruntfile.js @@ -0,0 +1,58 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + concat: { + index: { + options: { + separator: "\n;\n" + }, + src: [ + "public/js/vendor/prefixfree.min.js", + "public/js/vendor/fastclick.js", + "public/js/vendor/util.js", + + "public/js/app.js", + ], + dest: 'public/app.concat.js', + }, + css: { + options: { + separator: "\n" + }, + src: [ + "public/css/main.css", + ], + dest: 'public/app.css', + }, + }, + + uglify: { + options: { + banner: '/* okfoc.us 2016 */\n' + }, + index: { + src: 'public/app.concat.js', + dest: 'public/app.min.js' + } + }, + + clean: { + release: [ + "public/app.concat.js", + "tmp/" + ], + } + }); + + // Load tasks that we'll be using + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-dentist'); + + // Default task(s). + grunt.registerTask('default', ['concat', 'uglify', 'clean']); +}; -- cgit v1.2.3-70-g09d2