Skip to content

Commit

Permalink
grunt: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
p1100i committed May 12, 2016
1 parent ff0980f commit 9f26162
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
40 changes: 31 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ var
},

'minified': {
'src' : 'build/minfied/**/*',
'dest' : 'build/minfied'
'src' : 'build/minified/**/*',
'dest' : 'build/minified'
}
},

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -426,6 +438,13 @@ var
'test:style'
],

'publish' : [
'clean',
'setup',
'build',
'gh-pages'
],

'default' : [
'test:style',
'coverage',
Expand All @@ -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');

Expand Down
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"keywords": [
"keywords"
],
"author": "p1100i",
"author": {
"name": "p1100i",
"email": "[email protected]"
},
"license": "MIT",
"dependencies": {
"chalk": "^1.1.1",
Expand All @@ -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"
}
}

0 comments on commit 9f26162

Please sign in to comment.