Note Generali
Creazione npm package
- Controllare versione ng-packagr (uguale ad Angular)
- Controllare SOPRATUTTO versione module (es2020 etc etc) in tsconfig.json
Pubblicazione
progetto padre (ngx-este_ng)
npm run generate_p
Cartella <progetto padre>\dist\ngx-este
npm publish
Note generali per la configurazione della libreria
Generale
package.json
"@angular/animations": "~14.1.3",
"reflect-metadata": "^0.1.13",
tsconfig.json
"emitDecoratorMetadata": true,
"strictNullChecks": false,
"target": "esnext",
Come usarla in debug
installazione tramite file
npm install ../../nestjeste_ng/projects/ngx-este
tsconfig.json
{
...
"compilerOptions": {
...
"strictPropertyInitialization": false,
"paths": {
"ngx-este": [
"../../nestjeste_ng/projects/ngx-este/src/public-api"
],
"@angular/*": [
"./node_modules/@angular/*"
],
"@ng-bootstrap/*": [
"./node_modules/@ng-bootstrap/*"
]
}
},
"angularCompilerOptions": {
...
"strictNullChecks": false,
...
}
}
Nessun Commento