Skip to content

Commit

Permalink
docs: add sponsership section
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Feb 10, 2024
1 parent c143a81 commit b2fead6
Show file tree
Hide file tree
Showing 12 changed files with 3,769 additions and 1,798 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dist
.cache
migrations.json
.pnpm-debug.log

.nx/cache
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.cache
dist

/.nx/cache
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@
[![@ngneat/until-destroy](https://github.com/ngneat/until-destroy/workflows/@ngneat/until-destroy/badge.svg)](https://github.com/ngneat/until-destroy/actions/workflows/until-destroy.yml)
[![npm](https://img.shields.io/npm/dm/@ngneat/until-destroy?style=plastic)](https://www.npmjs.com/package/@ngneat/until-destroy)

## Sponsoring ngneat

[Sponsorships](https://github.com/sponsors/ngneat) aid in the continued development and maintenance of ngneat libraries. Consider asking your company to sponsor ngneat as its core to their business and application development.

### Gold Sponsors

Elevate your support by becoming a Gold Sponsor and have your logo prominently featured on our README in the top 5 repositories.

### Silver Sponsors

Boost your backing by becoming a Gold Sponsor and enjoy the spotlight with your logo prominently showcased in the top 3 repositories on our README.

### Bronze Sponsors

<a href="https://houseofangular.io" target="_blank">
<img src="https://github.com/ngrx/platform/blob/main/projects/ngrx.io/src/assets/images/sponsors/house-of-angular.png" width="50px" height="50px" alt="House of Angular" />
</a>

Become a bronze sponsor and get your logo on our README on GitHub.

## Compatibility with Angular Versions

<table>
Expand Down
5 changes: 1 addition & 4 deletions apps/integration-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/integration-e2e/**/*.{js,ts}"]
},
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
Expand Down
14 changes: 5 additions & 9 deletions apps/integration/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,33 +122,29 @@
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "integration:build"
"buildTarget": "integration:build"
},
"configurations": {
"development": {
"browserTarget": "integration:build:development"
"buildTarget": "integration:build:development"
},
"development-jit": {
"browserTarget": "integration:build:development-jit"
"buildTarget": "integration:build:development-jit"
},
"production": {
"browserTarget": "integration:build:production"
"buildTarget": "integration:build:production"
}
},
"defaultConfiguration": "development"
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"passWithNoTests": true,
"jestConfig": "apps/integration/jest.config.ts"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/integration/src/**/*.ts", "apps/integration/src/**/*.html"]
},
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<ol>
<li>
`Issue61Component` extends from the `Issue61BaseDirective`. Component is decorated
with `@UntilDestroy()` but directive is not
with `&#64;UntilDestroy()` but directive is not
</li>
<li>
`Issue97Component` extends from the `Issue97Directive`. Directive is decorated with
`@UntilDestroy()` but component is not
`&#64;UntilDestroy()` but component is not
</li>
</ol>

Expand Down
9 changes: 1 addition & 8 deletions libs/until-destroy-migration/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@
"test": {
"executor": "@nx/jest:jest",
"options": {
"passWithNoTests": true,
"jestConfig": "libs/until-destroy-migration/jest.config.ts"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/until-destroy-migration/src/**/*.ts",
"libs/until-destroy-migration/src/**/*.html"
]
},
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
Expand Down
9 changes: 1 addition & 8 deletions libs/until-destroy/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@
"test": {
"executor": "@nx/jest:jest",
"options": {
"passWithNoTests": true,
"jestConfig": "libs/until-destroy/jest.config.ts"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/until-destroy/src/**/*.ts",
"libs/until-destroy/src/**/*.html"
]
},
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
},
Expand Down
9 changes: 9 additions & 0 deletions libs/until-destroy/src/lib/until-destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ function decoratePipe<T>(type: PipeType<T>, options: UntilDestroyOptions): void

export function UntilDestroy(options: UntilDestroyOptions = {}): TypeDecorator {
return (type: any) => {
if (type['ɵfac']) {
const original = type['ɵfac'];
type.ɵfac = function (...args: any[]) {
const instance = original.apply(this, args);
debugger;
return instance;
};
}

if (isPipe(type)) {
decoratePipe(type, options);
} else {
Expand Down
34 changes: 22 additions & 12 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"npmScope": "ngneat",
"tasksRunnerOptions": {
"default": {
"runner": "@nx/workspace/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"],
"parallel": 1
}
"options": {}
}
},
"affected": {
Expand Down Expand Up @@ -49,22 +45,36 @@
},
"targetDefaults": {
"build": {
"inputs": ["production", "^production"]
"inputs": ["production", "^production"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"]
"inputs": ["default", "^production"],
"cache": true
},
"e2e-development": {
"inputs": ["default", "^production"]
},
"e2e-development-jit": {
"inputs": ["default", "^production"]
},
"test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
},
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
}
},
"parallel": 1
}
67 changes: 33 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"license": "MIT",
"private": true,
"scripts": {
"ng": "nx",
"nx": "nx",
"postinstall": "husky install",
"contributors:add": "all-contributors add",
Expand Down Expand Up @@ -37,53 +36,52 @@
],
"devDependencies": {
"@angular-builders/custom-webpack": "16.0.0",
"@angular-devkit/build-angular": "16.1.7",
"@angular-devkit/core": "16.1.7",
"@angular-devkit/schematics": "16.1.7",
"@angular-devkit/build-angular": "17.0.9",
"@angular-devkit/core": "17.0.9",
"@angular-devkit/schematics": "17.0.9",
"@angular-eslint/builder": "15.1.0",
"@angular-eslint/eslint-plugin": "16.0.3",
"@angular-eslint/eslint-plugin-template": "16.0.3",
"@angular-eslint/template-parser": "16.0.3",
"@angular/cli": "~16.1.0",
"@angular/common": "16.1.8",
"@angular/compiler": "16.1.8",
"@angular/compiler-cli": "16.1.8",
"@angular/core": "16.1.8",
"@angular/platform-browser": "16.1.8",
"@angular/platform-browser-dynamic": "16.1.8",
"@angular/router": "16.1.8",
"@angular-eslint/eslint-plugin": "17.0.1",
"@angular-eslint/eslint-plugin-template": "17.0.1",
"@angular-eslint/template-parser": "17.0.1",
"@angular/cli": "~17.0.0",
"@angular/common": "17.0.8",
"@angular/compiler": "17.0.8",
"@angular/compiler-cli": "17.0.8",
"@angular/core": "17.0.8",
"@angular/platform-browser": "17.0.8",
"@angular/platform-browser-dynamic": "17.0.8",
"@angular/router": "17.0.8",
"@babel/core": "7.20.2",
"@commitlint/cli": "16.2.1",
"@commitlint/config-conventional": "16.2.1",
"@nrwl/tao": "16.6.0",
"@nx/angular": "16.6.0",
"@nx/cypress": "16.6.0",
"@nx/eslint-plugin": "16.6.0",
"@nx/jest": "16.6.0",
"@nx/linter": "16.6.0",
"@nx/workspace": "16.6.0",
"@schematics/angular": "16.1.7",
"@nrwl/tao": "17.2.8",
"@nx/angular": "17.2.8",
"@nx/cypress": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/jest": "17.2.8",
"@nx/workspace": "17.2.8",
"@schematics/angular": "17.0.9",
"@types/jest": "29.4.4",
"@types/minimist": "1.2.2",
"@types/node": "^18.13.0",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "6.17.0",
"@typescript-eslint/parser": "6.17.0",
"all-contributors-cli": "^6.24.0",
"cpx": "1.5.0",
"cypress": "9.6.0",
"eslint": "8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint": "8.48.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-ban": "^1.6.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-cypress": "2.15.1",
"glob": "^7.2.3",
"husky": "7.0.4",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest-preset-angular": "13.1.1",
"jest-preset-angular": "13.1.5",
"lint-staged": "^11.2.6",
"minimist": "1.2.6",
"ng-packagr": "16.1.0",
"nx": "16.6.0",
"ng-packagr": "17.0.3",
"nx": "17.2.8",
"postcss": "^8.4.19",
"postcss-import": "14.1.0",
"postcss-preset-env": "7.5.0",
Expand All @@ -97,8 +95,9 @@
"ts-jest": "29.1.1",
"ts-morph": "^7.3.0",
"tslib": "^2.4.1",
"typescript": "5.1.6",
"zone.js": "0.13.1"
"typescript": "5.2.2",
"zone.js": "0.14.2",
"@nx/eslint": "17.2.8"
},
"lint-staged": {
"*.{js,ts,html,md,json}": [
Expand Down
Loading

0 comments on commit b2fead6

Please sign in to comment.