diff --git a/Jenkinsfile.develop b/Jenkinsfile.develop index 8075fb7..39ad8b2 100644 --- a/Jenkinsfile.develop +++ b/Jenkinsfile.develop @@ -20,9 +20,9 @@ pipeline { } stage('build'){ steps { - sh '''ng build common - ng build common-map - ng build common-map3d''' + sh '''ng build common --configuration production + ng build common-map --configuration production + ng build common-map3d --configuration production''' } } stage('npm publish'){ diff --git a/projects/common-map/tsconfig.lib.prod.json b/projects/common-map/tsconfig.lib.prod.json new file mode 100644 index 0000000..cfb0d6c --- /dev/null +++ b/projects/common-map/tsconfig.lib.prod.json @@ -0,0 +1,40 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/lib", + "target": "es2015", + "module": "es2015", + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "inlineSources": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "importHelpers": true, + "esModuleInterop": true, + "types": [], + "lib": [ + "dom", + "es2018" + ], + "paths": { + "@angular/*": [ + + "node_modules/@angular/*" + + ] + } + }, + "angularCompilerOptions": { + "skipTemplateCodegen": true, + "strictMetadataEmit": true, + "fullTemplateTypeCheck": true, + "strictInjectionParameters": true, + "enableResourceInlining": true, + "compilationMode": "partial" + }, + "exclude": [ + "src/test.ts", + "**/*.spec.ts" + ] +} diff --git a/projects/common-map3d/tsconfig.lib.prod.json b/projects/common-map3d/tsconfig.lib.prod.json index fb40dbb..cfb0d6c 100644 --- a/projects/common-map3d/tsconfig.lib.prod.json +++ b/projects/common-map3d/tsconfig.lib.prod.json @@ -1,7 +1,40 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { - "extends": "./tsconfig.lib.json", + "extends": "../../tsconfig.json", "compilerOptions": { - "declarationMap": false - } + "outDir": "../../out-tsc/lib", + "target": "es2015", + "module": "es2015", + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "inlineSources": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "importHelpers": true, + "esModuleInterop": true, + "types": [], + "lib": [ + "dom", + "es2018" + ], + "paths": { + "@angular/*": [ + + "node_modules/@angular/*" + + ] + } + }, + "angularCompilerOptions": { + "skipTemplateCodegen": true, + "strictMetadataEmit": true, + "fullTemplateTypeCheck": true, + "strictInjectionParameters": true, + "enableResourceInlining": true, + "compilationMode": "partial" + }, + "exclude": [ + "src/test.ts", + "**/*.spec.ts" + ] } diff --git a/projects/common/tsconfig.lib.prod.json b/projects/common/tsconfig.lib.prod.json index cfe6512..cfb0d6c 100644 --- a/projects/common/tsconfig.lib.prod.json +++ b/projects/common/tsconfig.lib.prod.json @@ -30,7 +30,8 @@ "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, - "enableResourceInlining": true + "enableResourceInlining": true, + "compilationMode": "partial" }, "exclude": [ "src/test.ts",