Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed Mar 7, 2017
1 parent efe894b commit d69fee6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ function niceStattrace(error)
].join("\n")
}

/* eslint-disable no-process-exit */
/* eslint-disable no-process-exit, no-console */
export default function build()
{
const buildFolderClient = resolve("build", "client")
const buildFolderServer = resolve("build", "server")

series([
function(callback)
(callback) =>
{
// Remove all content but keep the directory so that
// if you're in it, you don't end up in Trash
rimraf(`${buildFolderClient}/*`, callback)
},
function(callback)
(callback) =>
{
// Remove all content but keep the directory so that
// if you're in it, you don't end up in Trash
rimraf(`${buildFolderServer}/*`, callback)
},
function(callback)
(callback) =>
{
console.log("Creating a production build for client...")
webpack(ConfigFactory({ target: "web", mode: "production" })).run((error, stats) =>
Expand All @@ -66,7 +66,7 @@ export default function build()
callback()
})
},
function(callback)
(callback) =>
{
console.log("Creating a production build for server...")
webpack(ConfigFactory({ target: "node", mode: "production" })).run((error, stats) =>
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/start.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import HotController from "../hotdev/HotController"

export default function start() {
export default function start()
{
new HotController()
}

0 comments on commit d69fee6

Please sign in to comment.