https://github.com/tomwayson/esri-svelte-snowpack
https://github.com/tomwayson/esri-svelte-snowpack
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomwayson/esri-svelte-snowpack
- Owner: tomwayson
- License: mit
- Created: 2021-01-24T15:35:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T15:58:06.000Z (over 5 years ago)
- Last Synced: 2025-02-11T16:24:05.596Z (over 1 year ago)
- Language: Svelte
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Esri Svelte Snowpack Example
This is an example of how to use the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) in a [Svelte](https://svelte.dev/) application that has been bootstrapped with [Create Snowpack App (CSA)](https://github.com/snowpackjs/snowpack/tree/main/create-snowpack-app/cli).
The App code was copied from [esri-svelte-example](https://github.com/gavinr/esri-svelte-example).
## Available Scripts
### npm start
Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
### npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
### npm run build
Builds a static copy of your site to the `build/` folder.
Your app is ready to be deployed!
**For the best production performance:** Add a build bundler plugin like [@snowpack/plugin-webpack](https://github.com/snowpackjs/snowpack/tree/main/plugins/plugin-webpack) or [snowpack-plugin-rollup-bundle](https://github.com/ParamagicDev/snowpack-plugin-rollup-bundle) to your `snowpack.config.json` config file.
### Q: What about Eject?
No eject needed! Snowpack guarantees zero lock-in, and CSA strives for the same.