Skip to content

Commit

Permalink
chore: Remove dead code and code style fixes for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra committed Jun 24, 2017
1 parent eb9f88a commit db88cbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
appSrc: resolveApp('./src'),
entry: resolveApp('./src/index.js'),
appBuild: resolveApp('./build'),
elmPkg: resolveApp('./elm-package.json'),
elmPackageJson: resolveApp('./elm-package.json'),
elmMake: require('elm/platform').executablePaths['elm-make'],
publicUrl: getPublicUrl(resolveApp('elm-package.json')),
servedPath: getServedPath(resolveApp('elm-package.json'))
Expand Down
12 changes: 0 additions & 12 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ measureFileSizesBeforeBuild(paths.appBuild)
console.log('File sizes after gzip:\n');
printFileSizesAfterBuild(stats, previousFileSizes, paths.appBuild);
console.log();

// const appPackage = require(paths.appPackageJson)
// const publicUrl = paths.publicUrl
// const publicPath = config.output.publicPath
// const buildFolder = path.relative(process.cwd(), paths.appBuild)
// printHostingInstructions(
// appPackage,
// publicUrl,
// publicPath,
// buildFolder,
// useYarn
// )
},
err => {
console.log(chalk.red('Failed to compile.\n'));
Expand Down
4 changes: 2 additions & 2 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ choosePort(HOST, DEFAULT_PORT)
return;
}
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
const appName = path.basename(path.dirname(paths.elmPkg));
const appName = path.basename(path.dirname(paths.elmPackageJson));
const urls = prepareUrls(protocol, HOST, port);
// Create a webpack compiler that is configured with custom messages.
const compiler = createCompiler(webpack, config, appName, urls);
// Load proxy config
const proxySetting = require(paths.elmPkg).proxy;
const proxySetting = require(paths.elmPackageJson).proxy;
const proxyConfig = prepareProxy(proxySetting, '/');
// Serve webpack assets generated by the compiler over a web sever.
const serverConfig = createDevServerConfig(
Expand Down

0 comments on commit db88cbb

Please sign in to comment.