Remove transpiler + a few small improvements #131
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Applies some of the changes noted in #129 that were done in the https://github.com/azavea/pfb-network-connectivity and are worth bringing back into this version. Most notably, removing the transpilation step. Since Node still doesn't support ES6-style modules, this meant downgrading all the imports and utility modules to the CommonJS-style
require
/module.exports =
setup, but that seems like a reasonable price to pay for the reduced complexity.This also applies some small changes:
util/fs-promise.js
helper, using the built-inutil.promisify
insteadclaudia-local-api
--currently identical to @mattdelsordo's fork but there's a decent chance we'll need more tweaks, and it makes sense to have it in the fold anyway.Testing Instructions
scripts/update
andscripts/server
Connects #129.