Skip to content

Commit

Permalink
Merge pull request #632 from langpavel/fix-lint
Browse files Browse the repository at this point in the history
[fix] Linter Error fixed
  • Loading branch information
koistya committed Apr 28, 2016
2 parents c948d5d + 5e13920 commit 03fddd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ async function copy({ watch } = {}) {
const watcher = await new Promise((resolve, reject) => {
gaze('src/content/**/*.*', (err, val) => err ? reject(err) : resolve(val));
});

const cp = async (file) => {
const relPath = file.substr(path.join(__dirname, '../src/content/').length);
await ncp(`src/content/${relPath}`, `build/content/${relPath}`);
}
};

watcher.on('changed', cp);
watcher.on('added', cp);
watcher.on('added', cp);
}
}

Expand Down

0 comments on commit 03fddd6

Please sign in to comment.