Skip to content

Commit

Permalink
Migrate to ng cli project structure, get build & tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed May 25, 2022
1 parent 85a8c4a commit 9ad4bcb
Show file tree
Hide file tree
Showing 30 changed files with 19,566 additions and 5,947 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
/build
npm-debug.log
*.map
/docs/build
/docs/build
.angular
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

42 changes: 42 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngx-pagination": {
"projectType": "library",
"root": "projects/ngx-pagination",
"sourceRoot": "projects/ngx-pagination/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ngx-pagination/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-pagination/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-pagination/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-pagination/src/test.ts",
"tsConfig": "projects/ngx-pagination/tsconfig.spec.json",
"karmaConfig": "projects/ngx-pagination/karma.conf.js"
}
}
}
}
},
"defaultProject": "ngx-pagination"
}
Loading

0 comments on commit 9ad4bcb

Please sign in to comment.