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
- Configuration
- How Do I
- Tips
- First publish date
- 2007
- Last edition
- 2023-06-02
- Last publish date
- 2023-06-02T09:43:01.991628
- npm install --global @angular/cli
- ng new <project-name> --create-application=false
- cd <project-name>
- ng generate library <lib-name>
- Copy provided Spectrum Spatial Analyst typings in a dir out of <project-name> dir and
- Provide path in
package.json
for property ‘analyst’ in devDependecies "analyst":
"file:../ssa-typings",
- Run npm i @angular-devkit/build-webpack @ngtools/webpack
- Copy provided
webpack.config.js
and
webpack.config.prod.js
in the <lib-name>
directory
- Change entry file and tsConfigPath in the
webpack.config.js
file
- Replace
@angular-devkit/build-angular:ng-packagr
with
@angular-devkit/build-webpack:webpack
in
angular.json
- Provide "webpackConfig": "projects/<lib-name>/webpack.config.js"
in options of
angular.json
- Provide "webpackConfig":
"projects/<lib-name>/webpack.config.prod.js" in
configurations > production of angular.json
- ng build <lib-name>