Skip to content

Commit a04ea64

Browse files
Tobias Engelhardttobiasengelhardt
authored andcommitted
refactor: move library to projects and use ng-packagr for build
1 parent d807c54 commit a04ea64

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1689
-624
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Thumbs.db
3131
# Node Files #
3232
/node_modules
3333
/bower_components
34+
/projects/**/node_modules
3435
npm-debug.log
3536

3637
# Coverage #
@@ -49,6 +50,7 @@ npm-debug.log
4950
/public/dist/
5051
/src/*/dist/
5152
.webpack.json
53+
/projects/**/package-lock.json
5254

5355
# Doc #
5456

angular.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,41 @@
105105
}
106106
}
107107
}
108+
},
109+
"angular-tree-component": {
110+
"projectType": "library",
111+
"root": "projects/angular-tree-component",
112+
"sourceRoot": "projects/angular-tree-component/src",
113+
"prefix": "lib",
114+
"architect": {
115+
"build": {
116+
"builder": "@angular-devkit/build-ng-packagr:build",
117+
"options": {
118+
"tsConfig": "projects/angular-tree-component/tsconfig.lib.json",
119+
"project": "projects/angular-tree-component/ng-package.json"
120+
}
121+
},
122+
"test": {
123+
"builder": "@angular-devkit/build-angular:karma",
124+
"options": {
125+
"main": "projects/angular-tree-component/src/test.ts",
126+
"tsConfig": "projects/angular-tree-component/tsconfig.spec.json",
127+
"karmaConfig": "projects/angular-tree-component/karma.conf.js"
128+
}
129+
},
130+
"lint": {
131+
"builder": "@angular-devkit/build-angular:tslint",
132+
"options": {
133+
"tsConfig": [
134+
"projects/angular-tree-component/tsconfig.lib.json",
135+
"projects/angular-tree-component/tsconfig.spec.json"
136+
],
137+
"exclude": [
138+
"**/node_modules/**"
139+
]
140+
}
141+
}
142+
}
108143
}},
109144
"defaultProject": "example-app"
110145
}

0 commit comments

Comments
 (0)