diff --git a/npm/ng-packs/.gitignore b/npm/ng-packs/.gitignore index 19a56a732f..3cd079f8b7 100644 --- a/npm/ng-packs/.gitignore +++ b/npm/ng-packs/.gitignore @@ -45,4 +45,6 @@ testem.log .DS_Store Thumbs.db -!**/[Pp]ackages/* \ No newline at end of file +!**/[Pp]ackages/* + +apps/dev-app/src/environments/environment.internal.ts \ No newline at end of file diff --git a/npm/ng-packs/angular.json b/npm/ng-packs/angular.json index 820636fb4a..d0289505fe 100644 --- a/npm/ng-packs/angular.json +++ b/npm/ng-packs/angular.json @@ -485,6 +485,14 @@ "maximumError": "10kb" } ] + }, + "internal": { + "fileReplacements": [ + { + "replace": "apps/dev-app/src/environments/environment.ts", + "with": "apps/dev-app/src/environments/environment.internal.ts" + } + ] } } }, @@ -496,6 +504,9 @@ "configurations": { "production": { "browserTarget": "dev-app:build:production" + }, + "internal": { + "browserTarget": "dev-app:build:internal" } } }, diff --git a/npm/ng-packs/package.json b/npm/ng-packs/package.json index a4a3045b0a..2c60ba2e83 100644 --- a/npm/ng-packs/package.json +++ b/npm/ng-packs/package.json @@ -6,9 +6,9 @@ }, "scripts": { "ng": "ng", - "abpng": "abpng", "symlink": "symlink", "start": "ng serve dev-app", + "start:internal": "ng serve dev-app --configuration=internal", "test": "ng test --watchAll --runInBand", "commit": "git-cz", "lint": "ng lint",