Skip to content
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
5 changes: 2 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
Expand All @@ -22,5 +22,4 @@ jobs:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run build ngx-mat-split-button
- run: npm run build ngx-mat-split-button-demo
- run: npm run build
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ There are two demo projects to verify compatibility with both Material 2 and Mat

- **Material 3 demo**: `ng serve ngx-mat-split-button-demo` — uses M3 theming with `mat.theme()` and `--mat-sys-*` design tokens.
- **Material 2 demo**: `ng serve ngx-mat-split-button-demo-m2` — uses M2 theming with `mat.m2-define-light-theme()` and classic palettes (indigo/pink/red).

## Angular Version Compatibility

| ngx-mat-split-button version | Angular version |
| --- | --- |
| v0.2.0 | v18 |
| v0.3.0 | v19 |
| v0.4.0 | v20 |
54 changes: 40 additions & 14 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"builder": "@angular/build:ng-packagr",
"options": {
"project": "projects/ngx-mat-split-button/ng-package.json"
},
Expand All @@ -25,7 +25,7 @@
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular/build:karma",
"options": {
"tsConfig": "projects/ngx-mat-split-button/tsconfig.spec.json",
"polyfills": [
Expand All @@ -48,7 +48,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/ngx-mat-split-button-demo",
"index": "projects/ngx-mat-split-button-demo/src/index.html",
Expand All @@ -74,8 +74,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "1MB",
"maximumError": "2MB"
},
{
"type": "anyComponentStyle",
Expand All @@ -94,7 +94,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "ngx-mat-split-button-demo:build:production"
Expand All @@ -106,10 +106,10 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n"
"builder": "@angular/build:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular/build:karma",
"options": {
"polyfills": [
"zone.js",
Expand Down Expand Up @@ -143,7 +143,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/ngx-mat-split-button-demo-m2",
"index": "projects/ngx-mat-split-button-demo-m2/src/index.html",
Expand All @@ -169,8 +169,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "1MB",
"maximumError": "2MB"
},
{
"type": "anyComponentStyle",
Expand All @@ -189,7 +189,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "ngx-mat-split-button-demo-m2:build:production"
Expand All @@ -201,10 +201,10 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n"
"builder": "@angular/build:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular/build:karma",
"options": {
"polyfills": [
"zone.js",
Expand All @@ -226,5 +226,31 @@
}
}
}
},
"schematics": {
"@schematics/angular:component": {
"type": "component"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
}
}
Loading
Loading