Skip to content

chore: update build process to use ng-packgr builder #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ packages/angular/dist
# System Files
.DS_Store
Thumbs.db

.angular
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/angular/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"assets": [".npmignore"],
"lib": {
"entryFile": "src/index.ts"
},
"dest": "../../dist/packages/angular",
"allowedNonPeerDependencies": ["."]
}
7 changes: 3 additions & 4 deletions packages/angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"generators": {},
"targets": {
"build": {
"executor": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"],
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"commands": ["node tools/scripts/build-angular.ts angular"],
"parallel": false
"tsConfig": "packages/angular/tsconfig.lib.prod.json",
"project": "packages/angular/ng-package.json"
}
},
"lint": {
Expand Down
16 changes: 0 additions & 16 deletions packages/angular/tsconfig.angular.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/angular/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": ["node", "./references"],
"outDir": "../../dist/out-tsc"
},
"exclude": ["**/*.spec.ts", "dist/**/*"],
"include": ["**/*.ts"]
Expand Down
9 changes: 9 additions & 0 deletions packages/angular/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
}
}
48 changes: 0 additions & 48 deletions tools/scripts/build-angular.ts

This file was deleted.