Permalink
Browse files

Deploy to gh-pages

  • Loading branch information...
1 parent feaf203 commit 34290a48c20b96e5665f1c5f0eb531f5d5789914 @timdream committed Aug 30, 2014
Showing with 17 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +10 −1 Gruntfile.js
  3. +6 −5 package.json
View
@@ -2,3 +2,4 @@
/.tmp
/production
/node_modules
+/.grunt
View
@@ -24,6 +24,12 @@ module.exports = function(grunt) {
]
}
},
+ 'gh-pages': {
+ options: {
+ base: 'production'
+ },
+ src: '**/*'
+ },
jshint: {
options: {
jshintrc: true,
@@ -131,13 +137,16 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-connect');
+ grunt.loadNpmTasks('grunt-gh-pages');
+
// Build web app for production
grunt.registerTask('default', [
'checkvars', 'clean', 'copy', 'useminPrepare',
'concat', 'uglify', 'rev', 'usemin', 'replace']);
// Quick shell command to rsync the code to my site
- grunt.registerTask('deploy', ['shell:deploy']);
+ grunt.registerTask('deploy-timc', ['shell:deploy']);
+ grunt.registerTask('deploy', ['gh-pages']);
// Test
grunt.registerTask('test', ['jshint', 'test-phantomjs']);
View
@@ -8,17 +8,18 @@
"test": "grunt test"
},
"devDependencies": {
- "grunt": "~0.4.1",
+ "grunt": "^0.4.5",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.4.0",
+ "grunt-contrib-connect": "~0.7.1",
"grunt-contrib-copy": "~0.5.0",
+ "grunt-contrib-jshint": "~0.10.0",
+ "grunt-contrib-qunit": "~0.4.0",
"grunt-contrib-uglify": "~0.4.0",
- "grunt-usemin": "~2.1.1",
+ "grunt-gh-pages": "^0.9.1",
"grunt-replace": "~0.7.6",
"grunt-rev": "~0.1.0",
"grunt-shell": "~0.6.4",
- "grunt-contrib-qunit": "~0.4.0",
- "grunt-contrib-connect": "~0.7.1",
- "grunt-contrib-jshint": "~0.10.0"
+ "grunt-usemin": "~2.1.1"
}
}

0 comments on commit 34290a4

Please sign in to comment.