Commit Graph

199 Commits

Author SHA1 Message Date
Andrew
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
Rich Harris
d188cc5ede add pkg.module (#6021)
* add pkg.module version

* get tests to pass

* export noConflict
2018-02-01 10:42:54 -05:00
Iván Sánchez Ortega
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
Vladimir Agafonkin
88dd22cfe8 upgrade deps, fix indenting (#5743) 2017-08-31 08:58:42 +02:00
Per Liedman
fe3a340f1c Remove warning alert in watch bundle (#5714) 2017-08-15 11:39:53 +02:00
john gravois
567f13a1a8 ensure copyright banner survives minification (#5682) 2017-08-06 10:47:25 +02:00
Per Liedman
276d6df153 Update copyright banner to the fact that it's in fact 2017 now (#5503) 2017-05-10 10:04:18 +02:00
Iván Sánchez Ortega
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
Per Liedman
013198c9e2 Change copyright year from 2015 to 2017 (#5433) 2017-04-07 13:34:14 +03:00
Iván Sánchez Ortega
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
Thach Hoang
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
Dave Leaver
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
Vladimir Agafonkin
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
Vladimir Agafonkin
863cf74461 move zoom animation code into Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
ff73971294 move pan animation code into Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
5110298c45 get rid of separate Layer.Popup.js and Layer.Tooltip.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
88b593b7ab move flyTo to Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
d0879e14af move geolocation methods to Map.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
e3545bc9b9 move marker extensions to Marker.js 2016-09-30 19:51:01 +03:00
Vladimir Agafonkin
44176d9cea remove rc tag from the build script 2016-09-27 16:22:54 +03:00
Iván Sánchez Ortega
6e08ae427d Improve docs for keypress events, local refs from leafdoc templates (#4907) 2016-09-21 17:38:23 +03:00
Iván Sánchez Ortega
5dda4f4e0e Docstrings: clarifications about noWrap and wrapLng 2016-08-04 16:27:10 +02:00
Yohan Boniface
64ba1f7f95 Rename Label in Tooltip, PopupBase in DivOverlay 2016-07-08 13:51:18 +02:00
Yohan Boniface
0dd58bd01f Merge branch 'master' into label 2016-07-08 11:07:22 +02:00
Yohan Boniface
5dfc3364d1 Allow to make screenshots in Phantomjs (#4705)
* Load CSS in PhantomJS

* Allow to take screenshot in PhantomJS while running tests

For that, one need to run this call:

    window.top.callPhantom({'render': 'screenshot.png'});

* Make PhantomJS serve images

* Bonus: those tests now passe in Phantom too

* Add helper to make screenshot in tests

	takeScreenshot();

or

	takeScreenshot('path/to/screenshot.png');
2016-07-08 11:05:12 +02:00
Yohan Boniface
14bfedf7ff Merge branch 'master' into label 2016-07-02 10:36:42 +02:00
Iván Sánchez Ortega
5cc9b79c97 docstrings: Refactor interactive layers, implements #4583 (#4585) 2016-05-25 10:57:18 +02:00
Iván Sánchez Ortega
d4ea41214d docstrings: minor links around. 2016-05-20 13:45:12 +02:00
Benjamin Becquet
5aca1896b4 Add missing Leafdoc template files (#4558) 2016-05-11 14:19:53 +02:00
Yohan Boniface
4a9140e6b1 Add L.Label related documentation 2016-05-06 15:00:01 +02:00
Yohan Boniface
8a2255afc3 Merge branch 'master' into label 2016-04-30 14:36:48 +02:00
Iván Sánchez Ortega
ca01120227 Use git rev as semver metadata 2016-04-19 12:32:08 +02:00
Iván Sánchez Ortega
acbc6d23a9 Sourcemaps: replace magic-string with source-map.SourceNode 2016-04-19 10:22:52 +02:00
Vladimir Agafonkin
a626826974 update deps and bump travis node version 2016-04-18 11:15:46 +03:00
Iván Sánchez Ortega
a4a72ccb17 Finish @yohanboniface's job by replacing more 🍂s with @s 2016-04-02 20:50:27 +02:00
Yohan Boniface
1b1d21b1bf Let's say I'm @IvanSanchez for once 2016-04-02 15:59:54 +02:00
Iván Sánchez Ortega
560e73bac5 Trying out Leafdoc comments in L.Marker
Added Leafdoc comments to Layer.js

Leafdoc comments for Popup, Layer

Leafdoc comments: L.Evented, inheritances, minor tilelayer

Leafdoc comments: gridlayer & tilelayer options

Leafdoc comments: tilelayer, marker drag

Typos

Leafdoc: switch to shorthand method params

Leafdoc: Switch to shorthands in marker drag, WMS.

Leafdoc: Vector layers

Leafdoc: Layer group, feature group, geojson

Leafdoc: LatLng, Point, Bounds, Icons.

Leafdoc: Controls.

Leafdoc: DOM & utils.

Leafdoc: "jake docs" now builds the documentation

Leafdoc: Commit actual templates instead of symlinks

Leafdoc: Fix broken build, have jake print out uglifyjs errors

Leafdoc: Several L.Map bits.

Leafdoc: Map handlers

Leafdoc: Map events, L.CRS, misc. fixes

Leafdoc: Fixed ordering of classes by using new leafdoc features

Leafdoc: Misc bits at the bottom of the docs

🍂doc: Map panes

🍂doc: CRSs, projections and their templates

🍂doc: miniclasses for map methods' options

Leafdoc: Cleanup L.Class, mark uninheritable sections, use Leafdoc 0.3.0

🍂doc: miniclasses for event types, bump to Leafdoc 1.0.0

🍂doc: Make linter happy after branch rebase

🍂doc: Tweaked headers for inherited stuff.

🍂doc: Tweaking section headers (white, padding, triangles)

Leafdoc: upgrade to 1.2, document SVG&Canvas, and misc bits

🍂doc: minor CSS tweaks, version in filename, typo.

Add missing bits - supersedes #4105, #4065, #4031

🍂doc: moved sections around, minor typos & fixes

Typo about LocationEvent
2016-04-02 15:59:39 +02:00
Yohan Boniface
5fce8dda51 Fix bad Label description in deps.js 2015-11-15 19:22:57 +01:00
Vladimir Agafonkin
ca43794128 simplify bower setup, remove component
Component is not an active project anymore, and bower no longer
requires a version field in the config.
2015-10-26 19:25:39 +02:00
Yohan Boniface
d7b721877c First naive L.Label version 2015-10-17 22:42:17 +02:00
Vladimir Agafonkin
857848fbee come back to the old publishing approach with improvements 2015-10-14 19:16:05 +03:00
Vladimir Agafonkin
213c602f4e new Travis configuration with automatic releases 2015-10-14 18:09:47 +03:00
Vladimir Agafonkin
08d655fe66 upgrade deps and stricter eslint 2015-09-04 17:46:55 +02:00
Iván Sánchez Ortega
62f1cd2f58 Build sourcemaps via magic-string 2015-08-10 15:29:00 +02:00
Tim Blakely
6c96fef0d0 Fix up some missing dependencies 2015-06-18 14:57:22 -07:00
Yohan Boniface
a9658d7178 Use standard .eslintrc naming 2015-02-26 11:29:42 +01:00
Vladimir Agafonkin
aeb5083170 complete the switch to ESLint 2015-01-28 19:33:45 +02:00
John Firebaugh
e0a75093dc Merge pull request #3028 from tomhughes/jshint
Don't require jshint as it is not used
2014-11-17 13:54:31 -08:00
Tom Hughes
8f5fe4defc Don't require jshint as it is not used 2014-11-15 14:43:57 +00:00