An open API service indexing awesome lists of open source software.

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)

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)_