Skip to content

Commit

Permalink
Implement grunt dev task
Browse files Browse the repository at this point in the history
closes #18
- Update grunt-contrib-watch to 0.6.0
- Add watch/dev task to Gruntfile
- Add Ruby to README
  • Loading branch information
halfdan committed Mar 15, 2014
1 parent 403a058 commit 95fdb60
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ module.exports = function (grunt) {
stdout: true
}
}
},

watch: {
sass: {
files: '**/*.scss',
tasks: ['sass']
}
}
});

Expand All @@ -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']);
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 95fdb60

Please sign in to comment.