I am completely new to metalsmith. I've been following this tutorial: http://www.robinthrift.com/post/metalsmith-part-1-setting-up-the-forge/
I want to build my site to the root directory of my project (the same dir as the build script). I want to do this because I want github pages to play nicely with it. But when I try to build, I get this error: Error: EBUSY, resource busy or locked
Here is my dir structure:
- project_folder/
- _site-src/
- index.html
- node_modules
- build.js
- package.json
- _site-src/
Here is my build.js source:
var Metalsmith = require("metalsmith");
Metalsmith(__dirname)
.source("_site_src")
.destination(".")
.build();
What I want my project dir to look like:
- project_folder/
- _site-src/
- index.html
- node_modules
- build.js
- package.json
- index.html
- _site-src/
I don't know what I'm doing wrong. I appreciate any help.