From 54edfe6295f1f884270d72fcf1b5455dd2390ec6 Mon Sep 17 00:00:00 2001 From: Sandoche Adittane Date: Thu, 14 Jul 2016 19:16:46 +0200 Subject: [PATCH] script to deploy added --- .grunt/grunt-gh-pages/gh-pages/src | 1 + Gruntfile.js | 13 ++++++++++++- package.json | 5 +++-- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 160000 .grunt/grunt-gh-pages/gh-pages/src diff --git a/.grunt/grunt-gh-pages/gh-pages/src b/.grunt/grunt-gh-pages/gh-pages/src new file mode 160000 index 0000000..9625365 --- /dev/null +++ b/.grunt/grunt-gh-pages/gh-pages/src @@ -0,0 +1 @@ +Subproject commit 9625365d8d18722018d7c0a2e11a62aac657d70d diff --git a/Gruntfile.js b/Gruntfile.js index 1f514ec..641991a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,6 +11,7 @@ module.exports = function (grunt) { // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt); + grunt.loadNpmTasks('grunt-gh-pages'); // Automatically load required Grunt tasks require('jit-grunt')(grunt, { @@ -224,7 +225,7 @@ module.exports = function (grunt) { src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], ignorePath: /(\.\.\/){1,2}bower_components\// } - }, + }, // Compiles Sass to CSS and generates necessary files if requested compass: { @@ -513,4 +514,14 @@ module.exports = function (grunt) { 'test', 'build' ]); + + grunt.initConfig({ + 'gh-pages': { + options: { + base: 'dist' + }, + src: ['**'] + } + }); + }; diff --git a/package.json b/package.json index 4bf6f48..6fbd254 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "grunt-contrib-uglify": "^0.7.0", "grunt-contrib-watch": "^0.6.1", "grunt-filerev": "^2.1.2", + "grunt-gh-pages": "^1.1.0", "grunt-google-cdn": "^0.4.3", "grunt-jscs": "^1.8.0", "grunt-newer": "^1.1.0", @@ -27,8 +28,8 @@ "grunt-usemin": "^3.0.0", "grunt-wiredep": "^2.0.0", "jit-grunt": "^0.9.1", - "time-grunt": "^1.0.0", - "jshint-stylish": "^1.0.0" + "jshint-stylish": "^1.0.0", + "time-grunt": "^1.0.0" }, "engines": { "node": ">=0.10.0"