diff --git a/Gruntfile.js b/Gruntfile.js index f3997d8..98b68cc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -244,8 +244,8 @@ var }, 'minified': { - 'src' : 'build/minfied/**/*', - 'dest' : 'build/minfied' + 'src' : 'build/minified/**/*', + 'dest' : 'build/minified' } }, @@ -326,6 +326,18 @@ var } }, + 'gh-pages': { + 'options': { + 'base': 'build/minified', + 'user': { + 'name': '<%= pkg.author.name %>', + 'email': '<%= pkg.author.email %>' + } + }, + + 'src': ['**/*'] + }, + 'watch' : { 'options' : { 'spawn' : false, @@ -426,6 +438,13 @@ var 'test:style' ], + 'publish' : [ + 'clean', + 'setup', + 'build', + 'gh-pages' + ], + 'default' : [ 'test:style', 'coverage', @@ -449,25 +468,28 @@ var }, init = function init() { + TASK_CONFIG.pkg = grunt.file.readJSON('package.json'); + grunt.initConfig(TASK_CONFIG); - grunt.loadNpmTasks('grunt-contrib-clean'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-jasmine-nodejs'); - grunt.loadNpmTasks('grunt-jscs'); - grunt.loadNpmTasks('grunt-istanbul'); - grunt.loadNpmTasks('grunt-env'); grunt.loadNpmTasks('grunt-angular-templates'); grunt.loadNpmTasks('grunt-bower-concat'); grunt.loadNpmTasks('grunt-bower-task'); grunt.loadNpmTasks('grunt-browserify'); + grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-htmlmin'); + grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-stylus'); grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-env'); + grunt.loadNpmTasks('grunt-gh-pages'); + grunt.loadNpmTasks('grunt-istanbul'); + grunt.loadNpmTasks('grunt-jasmine-nodejs'); + grunt.loadNpmTasks('grunt-jscs'); grunt.loadNpmTasks('grunt-md5symlink'); grunt.loadNpmTasks('grunt-symlinkassets'); diff --git a/package.json b/package.json index b09f127..3054a92 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,10 @@ "keywords": [ "keywords" ], - "author": "p1100i", + "author": { + "name": "p1100i", + "email": "p1100i.dev@gmail.com" + }, "license": "MIT", "dependencies": { "chalk": "^1.1.1", @@ -22,26 +25,27 @@ }, "devDependencies": { "grunt": "^0.4.5", - "grunt-cli": "^0.1.13", - "require-directory": "^2.1.1", - "grunt-contrib-clean": "^1.0.0", - "grunt-contrib-jshint": "^1.0.0", - "grunt-contrib-watch": "^1.0.0", - "grunt-jasmine-nodejs": "^1.5.0", - "grunt-jscs": "^1.8.0", - "grunt-istanbul": "^0.7.0", - "grunt-env": "^0.4.4", "grunt-angular-templates": "^1.0.3", "grunt-bower-concat": "^1.0.0", "grunt-bower-task": "^0.4.0", "grunt-browserify": "^4.0.1", + "grunt-cli": "^0.1.13", + "grunt-contrib-clean": "^1.0.0", "grunt-contrib-concat": "^1.0.0", "grunt-contrib-copy": "^0.8.2", "grunt-contrib-cssmin": "^0.14.0", "grunt-contrib-htmlmin": "^0.6.0", + "grunt-contrib-jshint": "^1.0.0", "grunt-contrib-stylus": "^1.0.0", "grunt-contrib-uglify": "^0.11.1", + "grunt-contrib-watch": "^1.0.0", + "grunt-env": "^0.4.4", + "grunt-gh-pages": "^1.1.0", + "grunt-istanbul": "^0.7.0", + "grunt-jasmine-nodejs": "^1.5.0", + "grunt-jscs": "^1.8.0", "grunt-md5symlink": "^0.1.0", - "grunt-symlinkassets": "^0.1.1" + "grunt-symlinkassets": "^0.1.1", + "require-directory": "^2.1.1" } }