Skip to content
Open
Show file tree
Hide file tree
Changes from 8 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ Thumbs.db
.nx/cache
.nx/workspace-data
.angular
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.12.2
20.20.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Based on [emilkowalski](https://github.com/emilkowalski)'s React [implementation

| ngx-sonner | @angular |
|------------|----------|
| 3.0.0 | ≥19.0.0 |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update the table to show the supported version for v20

| 2.0.0 | ≥18.0.0 |
| 1.0.0 | ≥17.3.0 |

Expand Down
10 changes: 7 additions & 3 deletions apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"polyfills": [],
"tsConfig": "apps/docs/tsconfig.app.json",
"assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"],
"styles": ["apps/docs/src/styles.css", "node_modules/highlight.js/styles/github.min.css"],
"styles": [
"apps/docs/src/styles.css",
"node_modules/highlight.js/styles/github.min.css"
],
"scripts": []
},
"configurations": {
Expand All @@ -30,7 +33,7 @@
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "15kb"
"maximumError": "15.2kb"
}
],
"outputHashing": "all"
Expand All @@ -53,7 +56,8 @@
"buildTarget": "docs:build:development"
}
},
"defaultConfiguration": "development"
"defaultConfiguration": "development",
"continuous": true
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
ApplicationConfig,
provideExperimentalZonelessChangeDetection,
provideZonelessChangeDetection,
} from '@angular/core';
import { provideRouter } from '@angular/router';
import { appRoutes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [
provideExperimentalZonelessChangeDetection(),
provideZonelessChangeDetection(),
provideRouter(appRoutes),
],
};
3 changes: 2 additions & 1 deletion apps/docs/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
"types": [],
"moduleResolution": "bundler"
},
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"],
Expand Down
6 changes: 3 additions & 3 deletions libs/ngx-sonner/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-sonner",
"description": "An opinionated toast component for Angular.",
"version": "2.0.0",
"version": "3.1.0",
"bugs": {
"url": "https://github.com/tutkli/ngx-sonner/issues"
},
Expand All @@ -23,8 +23,8 @@
},
"license": "MIT",
"peerDependencies": {
"@angular/common": ">=19.0.0",
"@angular/core": ">=19.0.0"
"@angular/common": ">=20.0.0",
"@angular/core": ">=20.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
9 changes: 4 additions & 5 deletions libs/ngx-sonner/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/ngx-sonner/src",
"prefix": "ngx-sonner",
"tags": [],
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/ngx-sonner/ng-package.json"
"project": "libs/ngx-sonner/ng-package.json",
"tsConfig": "libs/ngx-sonner/tsconfig.lib.json"
},
"configurations": {
"production": {
"tsConfig": "libs/ngx-sonner/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/ngx-sonner/tsconfig.lib.json"
}
"development": {}
},
"defaultConfiguration": "production"
}
Expand Down
3 changes: 2 additions & 1 deletion libs/ngx-sonner/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
"types": [],
"moduleResolution": "bundler"
},
"exclude": [
"src/**/*.spec.ts",
Expand Down
3 changes: 2 additions & 1 deletion libs/ngx-sonner/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"moduleResolution": "bundler"
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
57 changes: 54 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,60 @@
"unitTestRunner": "jest"
},
"@nx/angular:component": {
"style": "css"
"style": "css",
"type": "component"
},
"@schematics/angular:component": {
"type": "component"
},
"@nx/angular:directive": {
"type": "directive"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@nx/angular:service": {
"type": "service"
},
"@schematics/angular:service": {
"type": "service"
},
"@nx/angular:scam": {
"type": "component"
},
"@nx/angular:scam-directive": {
"type": "directive"
},
"@nx/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@nx/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@nx/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@nx/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@nx/angular:resolver": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
},
"defaultBase": "master",
"useLegacyCache": true
"defaultBase": "master"
}
Loading
Loading