Commit Graph

31 Commits

Author SHA1 Message Date
Kyle Hensel
7bc94d6f4b migrate unit tests to vitest 2024-09-03 19:23:21 +10:00
Kyℓe Hensel
19df3a2174 fix eslint not working in IDEs (#10406) 2024-08-16 19:17:28 +02:00
Martin Raifer
b2b3009a64 .env oauth2 config: drop client secret; use URL if API_URL is empty 2024-07-05 16:15:47 +02:00
Martin Raifer
211b6dde5f upgrade to eslintv9 (config format, lint to updated rules) 2024-04-12 18:44:04 +02:00
Martin Raifer
3c1dda4ede fix env variables injection for taginfo/nominatim and donation params 2024-03-02 15:43:55 +01:00
Martin Raifer
96e6dc124f Show message about how to support OSM after a successful save, closes #10054
for example in form of a donation

this can be disabled by setting an env variable (`ID_SHOW_DONATION_MESSAGE=false`)

the icon is from https://uxwing.com/charity-donation-hand-love-icon/
2024-02-24 12:48:35 +01:00
Martin Raifer
64ed8df9e9 use api url from env variables, if specified 2023-11-09 15:12:45 +01:00
Martin Raifer
dc5bad3ca6 Merge remote-tracking branch 'k-yle/browserlist' into develop 2023-11-08 11:07:55 +01:00
Martin Raifer
c4d1390270 use api.osm.org url for OSM API calls
see https://github.com/openstreetmap/operations/issues/951
2023-10-10 16:03:10 +02:00
Kyle Hensel
93166ec0ff fix esbuild ignoring browserslist config 2023-10-07 20:45:11 +13:00
Martin Raifer
a15f6ff338 also lint mjs files and config directory 2023-03-27 19:45:47 +02:00
Martin Raifer
45c746ef05 also make other CDNs and services configurable via env vars 2023-02-25 18:21:11 +01:00
Martin Raifer
050c164a60 make OSM API connection details configurable via env vars 2023-02-25 18:05:31 +01:00
Martin Raifer
574cba9ed9 fix variable name in previous commit 2023-02-25 12:19:27 +01:00
Martin Raifer
243c7fdba3 allow to specify presets cdn via env variable or dotenv file 2023-02-25 12:09:19 +01:00
Martin Raifer
c12f7e5479 migrate to esbuild v0.17; only write esbuild stats if needed
see https://github.com/evanw/esbuild/blob/main/CHANGELOG.md#upgrade-guide-for-existing-code
2023-01-18 20:35:26 +01:00
Martin Raifer
597207b0df move karma configuration file to config directory 2022-10-27 12:24:52 +02:00
Martin Raifer
c8a3cf154b make more cdn's and API urls/settings configurable
* CDNs for OCI, NSI, etc.
* OSM API (URL and oauth API settings)
* taginfo API
* nominatim API
2022-10-14 19:19:29 +02:00
Martin Raifer
18b50ccd6d synchronize fetching presets from cdn
by first fetching `package.json` and loading the exact version from that for further presets requests
2022-10-13 18:42:52 +02:00
Martin Raifer
63cdee211f drop unneeded config file, simplify naming of build commands
see https://github.com/openstreetmap/iD/issues/8811#issuecomment-1031379116
2022-02-07 13:16:17 +01:00
Martin Raifer
632e24137a drop legacy builds, unneeded polyfills, document drop of IE11 support 2022-02-03 13:07:28 +01:00
Milos Brzakovic (E-Search)
b926ac7e8d re-enable watch mode 2022-01-17 16:39:44 +01:00
Bryan Housel
5040be45e9 Sync up RapiD and iD esbuild config (#8776)
* 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>
2022-01-17 14:18:27 +01:00
Milos Brzakovic (E-Search)
b15897cca7 switched to esbuild for build:dev
added watch mode
slightly changed the start command
2021-10-26 17:16:46 +02:00
Quincy Morgan
e15aeda221 Switch to core-js for polyfills 2020-10-13 16:02:26 -04:00
Quincy Morgan
55fa1a6dff Switch from buble to babel for ES5 transpilation (close #8065) 2020-10-08 10:25:58 -04:00
Quincy Morgan
8a40a5baab Update to marked 1.2.0 (close #8029) 2020-10-06 10:18:33 -04:00
Bryan Housel
b2b2689fb2 Use the ES6 export for martinez-polygon-clipping 2020-02-03 12:38:17 -05:00
Bryan Housel
3ce640f2cf Remove some unnecessary options that were default values 2020-01-22 15:55:58 -05:00
Bryan Housel
a7bbc8a9d8 Include rollup-plugin-progress to see what is making thing slow
(bundling big .json files)
2020-01-22 10:43:49 -05:00
Bryan Housel
509f949932 Make separate rollup config files for different builds 2020-01-22 10:25:32 -05:00