-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update of @o3r/dev-tools deprecation
- Loading branch information
Showing
5 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json", | ||
"schematics": { | ||
"ng-update": { | ||
"version": "10.0.0-alpha.0", | ||
"description": "Updates of the Otter DevTools module to v10.0.x", | ||
"factory": "./schematics/ng-update/index#ngUpdate" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { noop } from '@angular-devkit/schematics'; | ||
import type { Rule } from '@angular-devkit/schematics'; | ||
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | ||
|
||
/** | ||
* Add Otter dev-tools to an Angular Project | ||
* | ||
* @param options | ||
*/ | ||
export function ngAdd(): Rule { | ||
/* ng add rules */ | ||
return noop(); | ||
return (tree: Tree, context: SchematicContext) => { | ||
context.logger.warn('This package is deprecated and will no longer be updated as of v12.'); | ||
return tree; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | ||
|
||
/** | ||
* Update Otter dev-tools in an Angular Project | ||
*/ | ||
export function ngUpdate(): Rule { | ||
return (tree: Tree, context: SchematicContext) => { | ||
context.logger.warn('This package is deprecated and will no longer be updated as of v12.'); | ||
return tree; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters