https://github.com/raruto/leaflet-npm
Collection of Leaflet bundles to start building web maps with a proper npm module loader (browserify, rollup or webpack)
https://github.com/raruto/leaflet-npm
browserify bundle css js leaflet module nodejs npm rollup webmap webpack
Last synced: about 1 month ago
JSON representation
Collection of Leaflet bundles to start building web maps with a proper npm module loader (browserify, rollup or webpack)
- Host: GitHub
- URL: https://github.com/raruto/leaflet-npm
- Owner: Raruto
- License: gpl-3.0
- Created: 2019-06-19T15:55:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-25T11:43:54.000Z (over 6 years ago)
- Last Synced: 2025-06-05T06:56:00.013Z (8 months ago)
- Topics: browserify, bundle, css, js, leaflet, module, nodejs, npm, rollup, webmap, webpack
- Homepage: https://raruto.github.io/leaflet-npm
- Size: 1.89 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leaflet-npm
Collection of Leaflet bundles to start building web maps with a proper npm module loader (browserify, rollup or webpack)
1. **Start cloning a branch:**
- [leaflet-browserify](https://github.com/Raruto/leaflet-npm/tree/leaflet-browserify)
- [leaflet-rollup](https://github.com/Raruto/leaflet-npm/tree/leaflet-rollup)
- [leaflet-webpack](https://github.com/Raruto/leaflet-npm/tree/leaflet-webpack)
3. **Update project dependecies running the `npm install` command**
2. **Develop your Leaflet Map within the respective `/src` folder**
3. **Pack your application running the `npm run build` command**
4. **See generated results opening the `/dist/index.html` file**
---
**List of useful npm commands**
- **`npm install`** - _download npm package dependecies_
- **`npm update`** - _download/update npm package dependecies_
- **`npm i [--s]/[--D]`** - _add package/dependency (alias for: `npm install [--save]/[--save-dev]`)_
- **`npm r [--s]/[--D]`** - _remove package/dependency (alias for: `npm remove [--save]/[--save-dev]`)_
- **`npm run build`** - _run build script (from package.json)_
- **`npm run watch`** - _run watch script (from package.json)_
- **`npm start`** - _run start command (from package.json)_