Stencil is a compiler for building fast web apps using Web Components. This app shows how to integrate the ArcGIS API for JavaScript into a Stencil component.
Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
To start a the application in development mode run:
npm install
npm start
To view the build, start an HTTP server inside of the /www
directory.
To build the app for production, run:
npm run build
To run the unit tests once, run:
npm test
To run the unit tests and watch for file changes during development, run:
npm run test.watch