Skip to content

Commit

Permalink
feat(kit): add new library (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordrad authored May 8, 2024
1 parent 3d8440b commit 1576da6
Show file tree
Hide file tree
Showing 14 changed files with 502 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{ "extends": ["stylelint-config-standard-scss"] }
{
"extends": ["stylelint-config-standard-scss"],
"rules": {
"no-descending-specificity": null
}
}
55 changes: 50 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"schematics": {
"@schematics/angular:component": {
"style": "scss",
"standalone": true,
"changeDetection": "OnPush"
}
},
"projects": {
"ng-zen": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
Expand Down Expand Up @@ -82,6 +84,49 @@
}
}
}
},
"kit": {
"projectType": "library",
"root": "projects/kit",
"sourceRoot": "projects/kit/src",
"prefix": "zen",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/kit/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/kit/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/kit/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "projects/kit/jest.config.ts"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/kit/**/*.ts",
"projects/kit/**/*.html"
]
}
}
},
"schematics": {
"@schematics/angular:component": {
"viewEncapsulation": "None"
}
}
}
},
"cli": {
Expand Down
Loading

0 comments on commit 1576da6

Please sign in to comment.