Skip to content

Commit

Permalink
feat(grunt): add new task grunt init for initializing new projects
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Sep 15, 2015
1 parent 3da28e5 commit d026cb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 9 additions & 5 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,15 @@ module.exports = (grunt) ->
"shell:amsf__core__update_deps"
]

grunt.registerTask "init", "Initialize new project", [
"theme-add"
]

grunt.registerTask "update", "Update AMSF and the activated theme", [
"amsf-update"
"theme-update"
]

grunt.registerTask "serve", "Fire up a server on local machine for development", [
"clean:main"
"copy:serve"
Expand All @@ -629,11 +638,6 @@ module.exports = (grunt) ->
"amsf-update"
]

grunt.registerTask "update", "Update AMSF and the activated theme", [
"amsf-update"
"theme-update"
]

grunt.registerTask "build", "Build site with jekyll", [
"clean:main"
"coffeelint"
Expand Down
4 changes: 3 additions & 1 deletion _app/_posts/note/2014-06-12-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ Almace Scaffolding has exactly the same requirements as Jekyll. For more info pl

1. [Fork](https://github.com/sparanoid/almace-scaffolding/fork) or clone the repo.
2. Install dependencies with Ruby gem [`bundler`](http://bundler.io/) and Node.js package manager [`npm`](https://www.npmjs.org/).
3. Run `grunt serve`.
3. Run `grunt init` to initialize your project.
3. Run `grunt serve` to fire up a local server.

So in short for geeks:

```sh
$ git clone [email protected]:sparanoid/almace-scaffolding.git
$ bundle install && npm install
$ grunt init
$ grunt serve
```

Expand Down

0 comments on commit d026cb5

Please sign in to comment.