* Sync up RapiD and iD esbuild config scripts
* Remove uglify too
* Remove babel/preset-react
* Just have `npm run start` start a modern build, remove `quickstart`
* Better setup for modern/legacy build
- much simpler babel config
- separate entry points for modern and legacy (ie11/phantom)
- explicitly import 'core-js' and 'regenerator-runtime' instead of using deprecated 'babel/polyfill' plugin
- still need 'core-js-bundle' for the test/index.html, so Mocha/PhantomJS combo will work.
* Revert "Better setup for modern/legacy build"
This reverts commit 4ce17defa8a3c6f4b3a9168bcd672235bfc651be.
Co-authored-by: Milos Brzakovic (E-Search) <mbrzakovic@microsoft.com>
Also dist/data/* contains minified files now
These are now external and will fetch as needed:
-export { dataAddressFormats } from './address-formats.json';
-export { dataDeprecated } from './deprecated.json';
-export { dataDiscarded } from './discarded.json';
-export { dataLanguages } from './languages.json';
-export { dataPhoneFormats } from './phone-formats.json';
-export { dataShortcuts } from './shortcuts.json';
-export { dataTerritoryLanguages } from './territory-languages.json';
Line 14 (img) caused the entire /dist/img directory to be ignored even though it is already in git, so new images were ignored. Prefixing it with / prevents this very general rule from applying to the subdirs. The same logic applies to the other rules for top level dirs.
This directory will contain the built sources (iD.js, iD.css)
and images. On a release branch, we will check in the generated
files. For the osm.us/master deploy, it should run make and use
dist/ as the root.
Paths in css are relative, e.g. url(img/foo.png).