Steps to create an Extensible AoT-enabled Dev Environment - 23.1

Spectrum Spatial Analyst Extensibility Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum
Product
Spectrum > Spatial > Spectrum Spatial Analyst
Version
23.1
Language
English
Product name
Spectrum Spatial Analyst
Title
Spectrum Spatial Analyst Extensibility Guide
Topic type
Reference
Overview
Tips
How Do I
Configuration
First publish date
2007
  1. npm install --global @angular/cli
  2. ng new <project-name> --create-application=false
  3. cd <project-name>
  4. ng generate library <lib-name>
  5. Copy provided Spectrum Spatial Analyst typings in a dir out of <project-name> dir and
  6. Provide path in package.json for property ‘analyst’ in devDependecies "analyst": "file:../ssa-typings",
  7. Run npm i @angular-devkit/build-webpack @ngtools/webpack
  8. Copy provided webpack.config.js and webpack.config.prod.js in the <lib-name> directory
  9. Change entry file and tsConfigPath in the webpack.config.js file
  10. Replace @angular-devkit/build-angular:ng-packagr with @angular-devkit/build-webpack:webpack in angular.json
  11. Provide "webpackConfig": "projects/<lib-name>/webpack.config.js" in options of angular.json
  12. Provide "webpackConfig": "projects/<lib-name>/webpack.config.prod.js" in configurations > production of angular.json
  13. ng build <lib-name>