Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Dec 29, 2013
0 parents commit da620f5
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules

.DS_Store
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# lineman-blog

This is a plugin to get started writing a blog with
[Lineman](http://linemanjs.com) managing the build and bringing with it both excellent markdown parsing as well as static asset (JS/CSS) management. We recommend you look at our
[Blog template project](https://github.com/testdouble/lineman-blog-template/)
as a starting point.

If you'd like to add this to a fresh Lineman project on your own, just:

```
$ npm install --save-dev lineman-blog
```

And then start adding Underscore templates to `app/templates/**/*.us`, posts to `app/posts/*.md`, and static pages to `app/pages/**/*.md`. Refer to the [Lineman docs](http://linemanjs.com) for details about how to use Lineman generally.

To review what the default configuration and paths are specific to this plugin, run:

```
$ lineman config markdown
```
60 changes: 60 additions & 0 deletions config/plugins/markdown.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module.exports = (lineman) ->
app = lineman.config.application

files:
pages:
source: ["app/pages/**/*.*", "!app/pages/**/*.md"]

markdown:
posts: "app/posts/*.md"
pages: "app/pages/**/*.md"
templates: "app/templates/**/*.us"

config:

loadNpmTasks: app.loadNpmTasks.concat("grunt-markdown-blog")

prependTasks:
common: app.prependTasks.common.concat("markdown:dev")
dist: app.prependTasks.dist.concat("markdown:dist")

markdown:
options:
author: "FirstName LastName"
title: "my lineman blog"
description: "where I post all my brilliant ideas"
url: "http://www.mylinemanblog.com"
rssCount: 10 #<-- remove, comment, or set to zero to disable RSS generation
#disqus: "my_disqus_name" #<-- uncomment and set your disqus account name to enable disqus support
layouts:
wrapper: "app/templates/wrapper.us"
index: "app/templates/index.us"
post: "app/templates/post.us"
page: "app/templates/page.us"
archive: "app/templates/archive.us"
paths:
posts: "<%= files.markdown.posts %>"
pages: "<%= files.markdown.pages %>"
index: "index.html"
archive: "archive.html"
rss: "index.xml"
pathRoots:
posts: "posts"
pages: ""

dev:
dest: "generated"
context:
js: "/js/app.js"
css: "/css/app.css"

dist:
dest: "dist"
context:
js: "/js/app.js"
css: "/css/app.css"

watch:
markdown:
files: ["<%= files.markdown.posts %>", "<%= files.markdown.pages %>", "<%= files.markdown.templates %>"]
tasks: ["markdown:dev"]
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
version: require('./package').version
};
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "lineman-blog",
"title": "An Markdown blogging plugin for Lineman",
"version": "0.0.1",
"homepage": "https://github.com/testdouble/lineman-blog",
"author": {
"name": "Justin Searls",
"company": "Test Double"
},
"repository": {
"type": "git",
"url": "git://github.com/testdouble/lineman-blog.git"
},
"main": "main.js",
"dependencies": {
"grunt": "~0.4.1",
"grunt-markdown-blog": ">= 0.2.0",
"coffee-script": "~1.6.3"
},
"devDependencies": {
},
"peerDependencies": {
"lineman": ">= 0.19.0"
},
"licenses": [
{
"type": "MIT",
"url": "http://mit-license.org"
}
]
}

0 comments on commit da620f5

Please # to comment.