cov-arcgis-esm
v0.0.17
Published
City of Vernonia widgets and friends for Esri JavaScript API in ESM.
Downloads
5
Readme
cov-arcgis-esm
City of Vernonia widgets and friends for Esri JavaScript API in ESM.
Install
npm install cov-arcgis-esm --save
Usage
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 test
Runs prettier
, eslint
, jest
and complies the .ts(x)
and .scss
files.