Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,11 @@ function buildlocale (source, locale) {

function copystatic () {
console.time('[metalsmith] build/static finished')
fs.mkdir(path.join(__dirname, 'build'), function () {
fs.mkdir(path.join(__dirname, 'build', 'static'), function () {
ncp(path.join(__dirname, 'static'), path.join(__dirname, 'build', 'static'), function (err) {
if (err) { return console.error(err) }
console.timeEnd('[metalsmith] build/static finished')
})
})
fs.mkdirSync(path.join(__dirname, 'build'))
fs.mkdirSync(path.join(__dirname, 'build', 'static'))
ncp(path.join(__dirname, 'static'), path.join(__dirname, 'build', 'static'), function (err) {
if (err) { return console.error(err) }
console.timeEnd('[metalsmith] build/static finished')
})
fs.writeFileSync(path.join(__dirname, 'build', 'static', 'event-geo.json'), JSON.stringify(eventGeo()))
}
Expand Down