Skip to content

Instantly share code, notes, and snippets.

@jasonkarns
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonkarns/8ba5b8f216fdd8d57175 to your computer and use it in GitHub Desktop.
Save jasonkarns/8ba5b8f216fdd8d57175 to your computer and use it in GitHub Desktop.
diff --git a/config/application.coffee b/config/application.coffee
index 0f03b1f..83e745d 100644
--- a/config/application.coffee
+++ b/config/application.coffee
@@ -17,6 +17,18 @@ module.exports = lineman.config.extend "application",
paths:
archive: null
rss: null
+ pages:
+ cwd: "app/pages"
+ src: "**/*.md"
+ ext: ".html"
+ flatten: true
+ expand: true
+ posts:
+ cwd: "app/posts"
+ src: "**/*.md"
+ ext: ".html"
+ flatten: true
+ expand: true
lib:
Category: require('../lib/category')
@@ -28,6 +40,23 @@ module.exports = lineman.config.extend "application",
context:
cdn: cdn
+ copy:
+ dev:
+ expand: true
+ cwd: "app/pages"
+ src: ["**", "!**/*.{md,us}"]
+ dest: "generated"
+ filter: "isFile"
+ flatten: false
+
+ dist:
+ expand: true
+ cwd: "app/pages"
+ src: ["**", "!**/*.{md,us}"]
+ dest: "dist"
+ filter: "isFile"
+ flatten: false
+
pages:
dist:
context:
diff --git a/config/application.coffee b/config/application.coffee
index 0bb9795..88071d1 100644
--- a/config/application.coffee
+++ b/config/application.coffee
@@ -16,6 +16,18 @@ module.exports = (lineman) ->
options:
title: "<%= pkg.title %>"
dateFormat: 'MMMM Do, YYYY'
+ paths:
+ pages:
+ cwd: "app/pages"
+ src: "**/*.md"
+ ext: ".html"
+ expand: true
+ posts:
+ cwd: "app/posts"
+ src: "**/*.md"
+ dest: "posts"
+ ext: ".html"
+ expand: true
sass:
options:
@@ -23,9 +35,15 @@ module.exports = (lineman) ->
copy:
dev:
- files: [ expand: true, cwd: 'static', src: '**', dest: 'generated' ]
+ files: [
+ expand: true, cwd: "app/pages", src: ["**", "!**/*.{md,us}"], dest: "generated", filter: "isFile"
+ expand: true, cwd: 'static', src: '**', dest: 'generated'
+ ]
dist:
- files: [ expand: true, cwd: 'static', src: '**', dest: 'dist' ]
+ files: [
+ expand: true, cwd: "app/pages", src: ["**", "!**/*.{md,us}"], dest: "dist", filter: "isFile"
+ expand: true, cwd: 'static', src: '**', dest: 'dist'
+ ]
htmlhint:
files:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment