Skip to content

Commit

Permalink
refactor: move library to projects and use ng-packagr for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Engelhardt authored and tobiasengelhardt committed Jul 3, 2020
1 parent d807c54 commit a04ea64
Show file tree
Hide file tree
Showing 43 changed files with 1,689 additions and 624 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Thumbs.db
# Node Files #
/node_modules
/bower_components
/projects/**/node_modules
npm-debug.log

# Coverage #
Expand All @@ -49,6 +50,7 @@ npm-debug.log
/public/dist/
/src/*/dist/
.webpack.json
/projects/**/package-lock.json

# Doc #

Expand Down
35 changes: 35 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,41 @@
}
}
}
},
"angular-tree-component": {
"projectType": "library",
"root": "projects/angular-tree-component",
"sourceRoot": "projects/angular-tree-component/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/angular-tree-component/tsconfig.lib.json",
"project": "projects/angular-tree-component/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-tree-component/src/test.ts",
"tsConfig": "projects/angular-tree-component/tsconfig.spec.json",
"karmaConfig": "projects/angular-tree-component/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-tree-component/tsconfig.lib.json",
"projects/angular-tree-component/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}},
"defaultProject": "example-app"
}
Loading

0 comments on commit a04ea64

Please sign in to comment.