From 8b16fed41411cb0eab8173448ade41da9886e8c4 Mon Sep 17 00:00:00 2001 From: Justin Sternberg Date: Wed, 18 Jun 2014 15:15:45 -0400 Subject: [PATCH] Why so serious? --- Gruntfile.js | 16 +++++++++++++--- package.json | 3 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index d73eab953..f9f39247f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -76,6 +76,15 @@ module.exports = function(grunt) { predef :['document','window','jQuery','cmb_l10','wp','tinyMCEPreInit','tinyMCE','console'] } }, + asciify: { + banner: { + text : 'CMB!', + options : { + font : 'isometric2', + log : true + } + } + }, uglify: { all: { files: { @@ -92,14 +101,13 @@ module.exports = function(grunt) { } }, watch: { - sass: { files: ['**/*.scss'], tasks: ['sass', 'cssmin'] }, scripts: { files: ['js/cmb.js'], - tasks: ['jshint', 'uglify'], + tasks: ['js'], options: { debounceDelay: 500 } @@ -116,8 +124,10 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-sass'); + grunt.loadNpmTasks('grunt-asciify'); // grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.registerTask('default', ['jshint', 'sass', 'cssmin', 'uglify', 'phpunit']); + grunt.registerTask('default', ['asciify', 'jshint', 'sass', 'cssmin', 'uglify', 'phpunit']); + grunt.registerTask('js', ['asciify', 'jshint', 'uglify']); grunt.registerTask('tests', ['jshint', 'phpunit']); }; diff --git a/package.json b/package.json index 7ae90655b..e73476155 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "grunt-contrib-uglify": "~0.4.0", "grunt-contrib-cssmin": "~0.9.0", "grunt-contrib-watch": "~0.6.1", - "grunt-contrib-sass": "~0.7.3" + "grunt-contrib-sass": "~0.7.3", + "grunt-asciify": "~0.2.2" } }