Skip to content

Commit

Permalink
Merge pull request #6 from hariadi/develop
Browse files Browse the repository at this point in the history
use object directly instead of require
  • Loading branch information
hariadi committed Apr 4, 2014
2 parents a483684 + 8e5d555 commit d6fd905
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
17 changes: 16 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,22 @@ var MetalsmithGenerator = yeoman.generators.Base.extend({
});
});

this.metalsmith = require('../metalsmith.json');
this.metalsmith = {
title: 'Metalsmith Blog',
description: 'My Metalsmith-Powered Site',
plugins: {
'metalsmith-ignore': '^0.1.2',
'metalsmith-drafts': '^0.0.1',
'metalsmith-templates': '^0.3.0',
'metalsmith-markdown': '^0.2.1',
'metalsmith-permalinks': '^0.2.2',
'metalsmith-collections': '^0.1.0'
},
engine: {
swig: '^1.3.2',
handlebars: '^2.0.0-alpha.2'
}
};

},

Expand Down
6 changes: 3 additions & 3 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"dependencies": {<% if(ignore){ %>
"metalsmith-ignore": "^0.1.2",<% } %><% if(drafts){ %>
"metalsmith-drafts": "0.0.1",<% } %><% if(templates){ %>
"metalsmith-templates": "^0.3.0",
"metalsmith-templates": "^0.4.0",
"<%= templateEngine %>": "<%= metalsmith.engine[templateEngine] %>",<% } %><% if(markdown){ %>
"metalsmith-markdown": "^0.2.1",<% } %><% if(permalinks){ %>
"metalsmith-permalinks": "^0.2.2",<% } %><% if(collections){ %>
"metalsmith-permalinks": "^0.3.0",<% } %><% if(collections){ %>
"metalsmith-collections": "^0.1.0",<% } %>
"metalsmith": "^0.5.0"
"metalsmith": "^0.6.0"
}
}
16 changes: 0 additions & 16 deletions metalsmith.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-metalsmith",
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/hariadi/generator-metalsmith",
"description": "Yeoman generator for Metalsmith",
"author": {
Expand Down

0 comments on commit d6fd905

Please sign in to comment.