Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove transpiler + a few small improvements #131

Merged
merged 7 commits into from
Jan 25, 2019

Conversation

KlaasH
Copy link
Collaborator

@KlaasH KlaasH commented Jan 19, 2019

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:

  • Removes the util/fs-promise.js helper, using the built-in util.promisify instead
  • Switches to an Azavea fork of claudia-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.
  • Makes it return a specific error when there's no default map config available

Testing Instructions

  • run scripts/update and scripts/server
  • open your demo pages to confirm that everything works as before

Connects #129.

Convert to 'require'-based imports to avoid having to transpile.
Also removes fs-promise in favor of just using `util.promisify`
@KlaasH KlaasH changed the title Feature/kjh/remove transpiler Remove transpiler + a few small improvements Jan 20, 2019
Removes babel transpilation and switches the claudia commands to point at
the source directory.

The config still gets built by its own script, but now goes back into
src/config (.xml files in that directory are now .gitignored).
An unqualified tile URL will produce a somewhat unhelpful message if there's
no default config file. This catches errors from opening the config file and
sets a more helpful message in that situation.
@KlaasH KlaasH force-pushed the feature/kjh/remove-transpiler branch from 0d123bc to 5a6c14f Compare January 20, 2019 18:34
This is a back-end project, so there's no reason not to log, and indeed
it's very useful when debugging Lambda functions.
@KlaasH KlaasH merged commit e69b1af into develop Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant