See https://github.com/CityOfVernonia/core.
City of Vernonia widgets and friends for Esri JavaScript API in ESM.
npm install cov-arcgis-esm --save
The Typescript modules in this package are intended to be used directly. No built modules are provided.
Include the src
directory in tsconfig.json
.
{
"include": [
"node_modules/cov-arcgis-esm/src/**/*"
]
}
Import the cov
namespace as needed with import cov = __cov
.
Add package alias to resolve
in webpack.config.js
.
const config = {
resolve: {
alias: {
cov: path.resolve(__dirname, 'node_modules/cov-arcgis-esm/src/'),
},
},
};
Widget and layout styles are .scss
files intended to be used with Sass. Most, if not all .scss
files use variables in ~@arcgis/core/assets/esri/themes/base/color
(or similar for other themes), and need to be imported after a @arcgis/core/
import containing the color variables.
npm run test
Runs prettier
, eslint
, jest
and complies the .ts(x)
and .scss
files.