-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
39 lines (37 loc) · 914 Bytes
/
Copy pathbuild.js
File metadata and controls
39 lines (37 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict'
var Metalsmith = require('metalsmith');
var templates = require('metalsmith-templates');
var sass = require('metalsmith-sass');
var autoprefixer = require('metalsmith-autoprefixer');
var markdown = require('metalsmith-markdown');
var ignore = require('metalsmith-ignore');
var watch = require('metalsmith-watch');
var serve = require('metalsmith-serve');
var metalsmith = Metalsmith(__dirname)
.use(sass({
outputDir: "css/"
}))
.use(autoprefixer())
.use(markdown())
.use(templates({
engine: "handlebars",
directory: "src/templates",
partials: {
head: "partials/head",
header: "partials/header",
footer: "partials/footer"
}
}))
.use(ignore([
"templates/**/*",
"sass/**/*",
"sass/**/.bower.json",
"sass/**/.gitignore"
]))
.use(watch())
.use(serve({
port: '8000'
}))
.build(function(err){
if (err) throw err;
});