Skip to content

Commit d48cff2

Browse files
committed
WIP
1 parent 67a0315 commit d48cff2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"program": "${workspaceRoot}/lib/nativescript-cli.js",
1414

1515
// example commands
16-
"args": [ "create", "cliapp"]
16+
// "args": [ "create", "cliapp"]
1717
// "args": [ "platform", "add", "[email protected]", "--path", "cliapp"]
1818
// "args": [ "platform", "remove", "android", "--path", "cliapp"]
1919
// "args": [ "plugin", "add", "nativescript-barcodescanner", "--path", "cliapp"]
@@ -23,7 +23,7 @@
2323
// "args": [ "debug", "android", "--path", "cliapp"]
2424
// "args": [ "livesync", "android", "--path", "cliapp"]
2525
// "args": [ "livesync", "android", "--watch", "--path", "cliapp"],
26-
// "args": [ "generate-icons", "./test/image-generation-test.png", "--path", "cliapp" ],
26+
"args": [ "resources", "generate", "icons", "./test/image-generation-test.png", "--path", "cliapp" ],
2727
// "args": [ "generate-splashscreens", "./test/image-generation-test.png", "--path", "cliapp", "--background", "black" ],
2828
},
2929
{

lib/bootstrap.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ $injector.require('playgroundService', './services/playground-service');
161161
$injector.require("platformEnvironmentRequirements", "./services/platform-environment-requirements");
162162
$injector.require("nativescriptCloudExtensionService", "./services/nativescript-cloud-extension-service");
163163

164-
$injector.requireCommand("generate-icons", "./commands/generate-assets")
165-
$injector.requireCommand("generate-splashscreens", "./commands/generate-assets")
164+
$injector.requireCommand("resources|generate|icons", "./commands/generate-assets")
165+
$injector.requireCommand("resources|generate|splashes", "./commands/generate-assets")
166166
$injector.requirePublic("assetsGenerationService", "./services/assets-generation/assets-generation-service");

lib/commands/generate-assets.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class GenerateIconsCommand extends GenerateCommandBase implements IComman
3232
}
3333
}
3434

35-
$injector.registerCommand("generate-icons", GenerateIconsCommand);
35+
$injector.registerCommand("resources|generate|icons", GenerateIconsCommand);
3636

3737
export class GenerateSplashScreensCommand extends GenerateCommandBase implements ICommand {
3838
constructor(protected $options: IOptions,
@@ -47,4 +47,4 @@ export class GenerateSplashScreensCommand extends GenerateCommandBase implements
4747
}
4848
}
4949

50-
$injector.registerCommand("generate-splashscreens", GenerateSplashScreensCommand);
50+
$injector.registerCommand("resources|generate|splashes", GenerateSplashScreensCommand);

test/image-generation-test.png

-928 KB
Loading

0 commit comments

Comments
 (0)