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

Spectrum Spatial Analyst Extensibility Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum™ software
Product
Spectrum™ software > Spatial > Spectrum Spatial Analyst
Version
Latest
ft:locale
en-US
Product name
Spectrum Spatial Analyst
ft:title
Spectrum Spatial Analyst Extensibility Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-10-28
ft:lastPublication
2025-10-28T15:15:05.535000
L1_Product_Gateway
L2_Product_Segment
L3_Product_Brand
L4_Investment_Segment
L5_Product_Group
L6_Product_Name
  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. In the public-api.ts file, export both the extension module and its corresponding component that is registered in the CustomAnalystModuleConfig.json file.
    For example, if you have registered McModule and its corresponding McComponent in CustomAnalystModuleConfig.json, then the public-api.ts file should include the following exports:
    export { McModule } from './lib/mc.module';
    export { McComponent } from './lib/mc.component';
  12. Provide "webpackConfig": "projects/<lib-name>/webpack.config.js" in options of angular.json
  13. Provide "webpackConfig": "projects/<lib-name>/webpack.config.prod.js" in configurations > production of angular.json
  14. ng build <lib-name>