Psigio / iD

The easy-to-use OpenStreetMap editor in JavaScript.
http://ideditor.com/
ISC License
0 stars 0 forks source link

Try introducing Typescript #1

Open Psigio opened 6 years ago

Psigio commented 6 years ago

Initial conversion of files from Flow on https://github.com/Psigio/iD/commit/8ce8b03023d7df230b44b74f6ad0703a1e007a9e

Psigio commented 6 years ago

Due to an issue reported on rollup-plugin-typescript (#43) - moved to https://github.com/ezolenko/rollup-plugin-typescript2 - this seems to work correctly in that typescript errors cause the build to fail.

See https://github.com/Psigio/iD/commit/450b48f94f9de44eedb769d158d1ea785f782803 - need to understand why it's necessary to specify named exports for d3 files in rollup commonjs plugin now, possible some interaction with the generated JS files from TS.