Skip to content

joe-allen/sv-arcgis

Repository files navigation

❓ What does this do?

It's an ~opinionated way to setup a Svelte or SvelteKit and ArcGIS project. It'll give you everything you need to get going quickly and will set default locations for things like config.js|ts and your .env file.

Here are the prompts that are asked when running the tool (all are optional):

(config)

  • Enter your environment
  • Enter your appName
  • Enter your baseUrl (e.g. /)
  • Enter your Portal URL
  • Enter your webmapId

(env)

  • Enter your ArcGIS API key (private)
  • Enter your ArcGIS Client ID (private)
  • Enter your ArcGIS Client Secret (public)

(ui)

  • Do you need the Security Classification bars above and below on the UI?
  • Do you want to use Calcite Components?
  • Would you like a demo page?

🎬 Repo / NPM

📋 Prereqs

  • SvelteKit: npx sv create [project_name]
  • (Or Svelte: npm create vite@latest)

🗜️ Setup

  1. Install sv-arcgis npx sv-arcgis
  2. Follow instructions in terminal 👍

📕 Notes

  • Using this will install @arcgis/core@4.34.8 and @arcgis/map-components@4.34.9. (Testing has not been done on later versions)
  • If you choose 'Yes' to Calcite, @esri/calcite-components@3.3.3 will be installed. (Testing has not been done on later versions)
  • Using this will install the following devDepenencies: chalk, prompts and cross-env

🗺️ Roadmap

q3 2026

q1 2027

  • i18n support
  • Add prompt for ArcGIS Charts / Code components?

q3 2027

q1 2026

  • Toggle for calcite-mode-light/dark?
  • Update to work Svelte / Vite app (not just Kit)? (Demo would need to be different)
  • When selecting demo for Svelte (vite) currently we're only importing the component. Update the script to drop <ArcGIS /> something in the html

🙏 Help

About

A CLI tool that generates settings for an SvelteKit / ArcGIS development environment.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors