Skip to content

Commit 615a61d

Browse files
committed
feat(cli): migrate all HBS templates to typescript using defineTemplate util
BREAKING CHANGE: HBS templating are removed, use defineTemplate to declare a template file
1 parent 9529ee7 commit 615a61d

File tree

206 files changed

+4736
-4897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+4736
-4897
lines changed

packages/cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@
6363
"create-frame": "^1.0.0",
6464
"fs-extra": "^11.2.0",
6565
"globby": "^14.0.2",
66-
"handlebars": "^4.7.8",
67-
"handlebars-utils": "^1.0.6",
6866
"read-pkg-up": "^11.0.0",
6967
"rxjs": "^7.8.1",
7068
"semver": "^7.6.3",
69+
"ts-morph": "^26.0.0",
7170
"tslib": "^2.7.0"
7271
},
7372
"devDependencies": {

packages/cli/src/commands/add/AddCmd.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type Task
1212
} from "@tsed/cli-core";
1313

14-
export interface AddCmdOptions extends CliDefaultOptions {
14+
export interface AddCmdOptions extends CommandProvider {
1515
name: string;
1616
}
1717

@@ -50,6 +50,10 @@ export class AddCmd implements CommandProvider {
5050
{
5151
title: "Install plugins dependencies",
5252
task: createSubTasks(() => this.cliPlugins.addPluginsDependencies(ctx), {...ctx, concurrent: false})
53+
},
54+
{
55+
title: "Transform files",
56+
task: createSubTasks(() => this.cliPlugins.addPluginsDependencies(ctx), {...ctx, concurrent: false})
5357
}
5458
];
5559
}

packages/cli/src/commands/generate/GenerateCmd.spec.ts

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)