Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

CityOfVernonia/cov-arcgis-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Archived

See https://github.com/CityOfVernonia/core.


cov-arcgis-esm

npm version build status

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

View Models

Widgets

Layouts

Popups

Test

npm run test

Runs prettier, eslint, jest and complies the .ts(x) and .scss files.