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
  • Enter your appId

(env)

  • Enter your ArcGIS API key
  • Enter your ArcGIS Client ID
  • Enter your ArcGIS Client Secret

(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.31.6 and @arcgis/map-components@4.31.6. (Testing has not been done on later versions)
  • If you choose 'Yes' to Calcite, @esri/calcite-components@2.13.0 will be installed. (Testing has not been done on later versions)
  • Using this will install the following devDepenencies: chalk, prompts and cross-env

🗺️ Roadmap

🙏 Help

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published