Commit Graph

231 Commits

Author SHA1 Message Date
19bb9c4e1e Always build ESM version in watch mode (#8844) 2023-02-13 11:58:56 +01:00
cb502c1309 Provide file extensions when running ESLint (#8831) 2023-02-06 18:13:56 +01:00
ba5b633814 Remove L_NO_TOUCH global switch (#8752)
Co-authored-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
2022-12-27 12:33:22 +01:00
c5c8fb4bc2 Remove noConflict() (#8753) 2022-12-27 12:28:44 +01:00
430bac2741 Convert build scripts into ESM (#8610) 2022-10-26 00:07:03 +02:00
119785e3a9 Enable no-var linting rule and fix issues (#8602) 2022-10-20 21:18:26 +02:00
c33a57ca3a Enable prefer-template linting rule and fix issues (#8587) 2022-10-16 23:58:24 +02:00
b9212a6011 Upgrade Rollup to version 3 (#8582) 2022-10-16 17:15:13 +02:00
0bfedaebeb fix my name across docs and code 2022-10-05 20:05:05 +03:00
29606c37b4 Improve integrity generation for releases (#8459) 2022-09-22 21:40:03 +02:00
519db3d771 Expose ESM entrypoint with Leaflet global (#8329) 2022-07-20 22:18:09 +02:00
7c565e5fe0 Fix bundle export error (#8050) 2022-03-11 10:59:38 +01:00
0cea36c169 simplify build/docs.js 2022-03-09 17:45:01 +02:00
9a5a5ebc58 Add DivOverlay to menu (#7777)
* Add DivOverlay to menu

* Update build/leafdoc-templates/html.hbs

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2022-02-10 10:10:10 +02:00
f3f27b0ff6 Fixing noConflict and merge rollup-config (#7855)
* fixing noConflict and merge rollup-config

* Fix lint
2022-01-19 12:13:49 +02:00
009748a0ca Change http to https of https://leafletjs.com (#7857) 2021-12-12 14:34:38 +01:00
9f9c549756 simplify docs update process on release (#7730) 2021-11-02 23:31:33 +02:00
7bccf7e9f6 simplify release process (#7727) 2021-11-02 17:36:57 +02:00
da32372b9f Upgrade to latest version of Rollup (#7677)
* Upgrade to latest version of Rollup

* add esModule: false for legacy compat

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-10-29 21:39:13 +03:00
1b89c0af3a Add scripts in 'build' directory to linting config (#7676) 2021-10-29 16:35:02 +03:00
436430db42 It's almost 2021 (#7371)
In any case, 2019 is over.
2021-01-14 22:07:25 +02:00
9b0d7c2a70 Update dev dependencies, fix most of vulnerabilities (#7133)
* Update rollup-plugin-git-version to ^0.3.1

* Update uglify-js to ^3.9.2

* Update git-rev-sync to ^2.0.0

* Update ssri to ^8.0.0

* Update rollup to ^0.59.4

(latests version with support of IE 8)

Remove Object.freeze hack, use rollup's `output.freeze` option instead

* Update eslint to ^5.16.0

And fix a couple of warnings.
Ref:
https://eslint.org/docs/user-guide/migrating-to-5.0.0#eslint-recommended-changes
https://eslint.org/docs/user-guide/migrating-to-5.0.0#deprecated-globals

* Update eslint to ^6.8.0

Ref:
https://eslint.org/docs/user-guide/migrating-to-6.0.0#eslint-recommended-changes
2020-05-19 00:25:15 +03:00
9a43cf72d7 docs/reference: fix duplicate footer, invalid HTML (#6759)
* docs: fix duplicate footer on reference pages

* docs: move reference css+js to separate files

* lint docs/docs/js files

* docs: update RELEASE steps
2019-08-14 11:48:42 +03:00
87326cdf71 leafdoc: fix invalid HTML code (#6757) 2019-08-14 11:38:15 +03:00
4469505e48 build/docs: print path to generated file (#6756) 2019-08-14 11:37:30 +03:00
8c3de5d983 docs: update © to 2019 (#6752) 2019-08-07 17:16:33 +02:00
d9a4c66f8b Tweaking documentation for SVGOverlay, add links to the docs index. (#6631) 2019-04-30 11:51:53 +02:00
e7129b44c0 Fix insecure content error in documentation
docs.js was prevented from loading due to it.
2018-12-22 16:54:54 +02:00
c189189b9d [hotfix] remove pkg.module (#6239)
remove pkg.module
2018-07-18 11:22:42 +02:00
00c1a8c969 extend publish.sh to commit dist/leaflet-src.esm.js too 2018-07-17 13:47:14 +02:00
5ffe207921 Use https everywhere for OSM links (#6082)
* Use https everywhere for OSM tile URLs

Use
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

instead of
http://{s}.tile.osm.org/{z}/{x}/{y}.png
http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png

* Use https everywhere for OSM attribution link

Use
https://www.openstreetmap.org/copyright

instead of
http://www.openstreetmap.org/copyright
http://osm.org/copyright
2018-03-12 08:46:20 +01:00
31575e8e7a 2018 (#6076)
* 2018

* 2018

* 2018
2018-03-05 22:46:47 +02:00
e3b049cefd Chore(scripts): Remove jake dependency and use NPM scripts instead (#5828)
* run `docs` via npm

* add shebang line to integrity.js, so npm will resolve node binary automatically

* remove unnecessary build-jake npm script

* add test.js script as replacement of Jakefile.js

* remove Jakefile, remove jake from devDependencies

* update docs

* move scripts to separate directory

* change shebang line from nodejs to js

* change shebang line from js to node

* update docs

* use Karma cli instead of custom test script

* add pretest and test-nolint scripts, remove lint scripts from travis.ci

Run linting scripts in pretest script, this way test script will automatically trigger code linting.

Add test-nolint script to have possibility to run tests without triggering pretest script with linting. This is useful when running tests in different browsers and tere's no sense to lint code more than one time

* replace shebang lines with node executable in npm scripts

* remove note about nodejs symlink in CONTRIBUTING.md
2018-02-05 11:15:32 +04:00
d188cc5ede add pkg.module (#6021)
* add pkg.module version

* get tests to pass

* export noConflict
2018-02-01 10:42:54 -05:00
67ab617f82 Tweak 'legacy' option in rollup config (#5929) 2017-11-20 10:34:18 +01:00
iH8
33415fcbab New rollup config signature (#5812)
Adapted rollup configurations to new signature., ironed out some minor
inconsistencies between configurations and some syntax cleanup. Fixes
following warnings when running rollup:

(!) Some options have been renamed
https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
options.entry is now options.input
options.sourceMap is now options.sourcemap
options.dest is now options.output.file
options.format is now options.output.format
2017-09-29 17:01:24 +03:00
88dd22cfe8 upgrade deps, fix indenting (#5743) 2017-08-31 08:58:42 +02:00
fe3a340f1c Remove warning alert in watch bundle (#5714) 2017-08-15 11:39:53 +02:00
567f13a1a8 ensure copyright banner survives minification (#5682) 2017-08-06 10:47:25 +02:00
276d6df153 Update copyright banner to the fact that it's in fact 2017 now (#5503) 2017-05-10 10:04:18 +02:00
561b7f737b Add subresource integrity information & scripts (#5468)
* Add subresource integrity information & scripts

* Include the integrity hashes in all tutorials also

* Change wording of one of the build scripts
2017-04-19 14:56:14 +02:00
013198c9e2 Change copyright year from 2015 to 2017 (#5433) 2017-04-07 13:34:14 +03:00
61ff641951 Add new class L.VideoOverlay (#4988)
* Add VideoOverlay class based on ImageOverlay

* Make linter happy

* Move VideoOverlay include to layer/index

* Fix mapbox tokens
2017-04-04 22:45:09 +02:00
0d1eae32be Fix debug examples after rollup (#5417)
Fix #5373.

- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
bd957ad32f Have uglifyjs spit out a sourcemap for leaflet.js too. (#5351)
* Have uglifyjs spit out a sourcemap for leaflet.js too.

Fixes #5341

* Fix incorrect source map file when publishing a release and add the new one too.
2017-02-21 13:53:07 +01:00
703ae02aa8 ES6 modules & Rollup (#4989)
* WIP ES6 modules & rollup

* WIP ES6 modules & rollup 2

* WIP ES6 modules & rollup 3

* WIP ES6 modules Browser

* WIP ES6 module fixes

* WIP ES6 modules: simpler browser exports

* WIP ES6: refactor CRS/Projection modules, CRS obj -> CRS.Base

* get rid of unnecessary index.js

* WIP ES6 modules, dom events and stuff

* Make linter happy, rollup to dist/

* revert to CRS namespace/class for now

* WIP rollup: export more stuff

* export controls

* rollup: export Layer

* rollup: export DomEvent

* rollup: export more layer types

* rollup: export Popup/Tooltip

* WIP: ES6-ify marker, icon, domutil, draggable.

* ES6-ify gridlayer, tilelayer.

* ES6-ify: Tweak imports-exports, code is now runnable!!

* ES6-ify: Fix scope in some DomUtils

* ES6-ify: Path, fix Popup

* ES6-ify: Lint & cleanup

* ES6-ify map handlers, more linting

* ES6-ify: Icon.Default namespacing

* ES6-ify: Renderers, CircleMarker

* ES6-ify: Circle, Polyline, LineUtil

* ES6-ify: Polygon, Rectangle, LineUtil, PolyUtil, linting

* ES6-ify: SVG.VML

* ES6-ify: DomEvent.Pointer, DomEvent.DoubleTap

* ES6-ify: Linting, make Karma play nice with Rollup

* ES6-ify: More work on fixing bits breaking some unit tests.

* ES6-ify: rollup the version number, fiddled with build scripts

* ES6-ify: Fiddle with test scripts

* ES6-ify: cleanup (refs to global L, imports from (DOM)Util), prevent cyclic loop on Map imports

* ES6-ify: More cleanup of (DOM)Util/Browser/DomEvent imports

* ES6ify: Use rollup's "legacy" option for ES3 (IE8) builds

* ES6-ify: Clean up build scripts, fix CONTRIBUTING.md instructions

* Typo

* ES6-ify: minor fixes and lefovers after rebasing on top of 1.0.2

* ES6-ify: upgrade to rollup 0.38 for proper IE8 builds, fix L.SVG.VML

* Make linter happy.

* ES6: Fixing typos and sxrew-ups after big rebase

* Fix symlink for debugging scripts

* ES6: Cleanup old build scripts

* ES6-ify: Update build system to include git rev in L.version

* ES6-ify: re-enable unit tests replacing L.Path with L.Polyline

* Export Path

* ES6ify: cleanup old banner file

* ES6-ify: whitespace in var declarations

* ES6-ify: Export toTransformation as L.transformation

* ES6-ify: cleanup L.transform exports

* ES6-ify: "import Util" in Transformation and SVG.VML
2017-01-30 11:35:16 +01:00
863cf74461 move zoom animation code into Map.js 2016-09-30 19:51:01 +03:00
ff73971294 move pan animation code into Map.js 2016-09-30 19:51:01 +03:00
5110298c45 get rid of separate Layer.Popup.js and Layer.Tooltip.js 2016-09-30 19:51:01 +03:00
88b593b7ab move flyTo to Map.js 2016-09-30 19:51:01 +03:00