diff --git a/Gruntfile.js b/Gruntfile.js index e2636cb4e5ef..ac3bf354b10d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -81,6 +81,13 @@ module.exports = function (grunt) { stdout: true } } + }, + + watch: { + sass: { + files: '**/*.scss', + tasks: ['sass'] + } } }); @@ -93,6 +100,9 @@ module.exports = function (grunt) { // Docs distribution task. grunt.registerTask('dist-docs', 'copy:docs'); + // Watch/Dev task. + grunt.registerTask('dev', 'watch'); + // Full distribution task grunt.registerTask('dist', ['clean', 'shell', 'dist-css', 'copy:fonts', 'dist-docs']); grunt.registerTask('default', 'Build CSS, JS & templates for development', ['dist']); diff --git a/README.md b/README.md index cd83e8e6ade9..f9f5d291a246 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,14 @@ Learn more about using Jekyll by reading its [documentation](http://jekyllrb.com Ghost-UI uses [Grunt](http://gruntjs.com/) with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed below and then check out the available Grunt commands. -### Install Grunt +### Install Dependencies From the command line: -1. Install `grunt-cli` globally with `npm install -g grunt-cli`. -2. Navigate to the root `/Ghost-UI` directory, then run `npm install`. npm will look at [package.json](https://github.com/TryGhost/Ghost-UI/blob/master/package.json) and automatically install the necessary local dependencies listed there. +1. Install Ruby and bundler globally with `gem install bundler`. +2. Install Ruby dependencies with `bundle install`. +3. Install `grunt-cli` globally with `npm install -g grunt-cli`. +4. Navigate to the root `/Ghost-UI` directory, then run `npm install`. npm will look at [package.json](https://github.com/TryGhost/Ghost-UI/blob/master/package.json) and automatically install the necessary local dependencies listed there. When completed, you'll be able to run the various Grunt commands provided from the command line. diff --git a/package.json b/package.json index 3d50db04e7a6..bc103454e540 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "grunt-contrib-sass": "~0.7.3", "grunt-contrib-qunit": "~0.4.0", "grunt-contrib-uglify": "~0.3.0", - "grunt-contrib-watch": "~0.5.3", + "grunt-contrib-watch": "~0.6.0", "grunt-csscomb": "~2.0.1", "grunt-exec": "~0.4.5", "grunt-html-validation": "~0.1.13",