0.0.17 • Published 5 years ago
cov-arcgis-esm v0.0.17
cov-arcgis-esm
City of Vernonia widgets and friends for Esri JavaScript API in ESM.
Install
npm install cov-arcgis-esm --saveUsage
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/'),
},
},
};Sass
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.
Modules
Test
npm run testRuns prettier, eslint, jest and complies the .ts(x) and .scss files.