mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: TypeScript 5.1 with Nx 16.6 migrations (#10338)
This commit is contained in:
9
tools/workspace-plugin/src/generators/app/index.ts
Normal file
9
tools/workspace-plugin/src/generators/app/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics';
|
||||
|
||||
export default function (schema: any): Rule {
|
||||
return chain([
|
||||
externalSchematic('@nx/workspace', 'lib', {
|
||||
name: schema.name,
|
||||
}),
|
||||
]);
|
||||
}
|
||||
16
tools/workspace-plugin/src/generators/app/schema.json
Normal file
16
tools/workspace-plugin/src/generators/app/schema.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/schema",
|
||||
"id": "app",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Library name",
|
||||
"$default": {
|
||||
"$source": "argv",
|
||||
"index": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
}
|
||||
0
tools/workspace-plugin/src/index.ts
Normal file
0
tools/workspace-plugin/src/index.ts
Normal file
Reference in New Issue
Block a user