@emailshepherd/cli 0.1.40 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +13 -13
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import updateNotifier from "update-notifier";
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@emailshepherd/cli",
11
- version: "0.1.40",
11
+ version: "0.2.0",
12
12
  type: "module",
13
13
  publishConfig: {
14
14
  registry: "https://registry.npmjs.org",
@@ -305,10 +305,10 @@ function registerValidateCommand(program2) {
305
305
  });
306
306
  }
307
307
 
308
- // src/commands/save.ts
308
+ // src/commands/deploy.ts
309
309
  import { AxiosError as AxiosError3 } from "axios";
310
- function registerSaveAllCommand(program2) {
311
- program2.command("save").description("Save the Email Design System and all components to the server").action(async () => {
310
+ function registerDeployCommand(program2) {
311
+ program2.command("deploy").description("Deploy the Email Design System and all components to the server").action(async () => {
312
312
  try {
313
313
  console.log("Checking types...");
314
314
  const typeCheck = runTypeCheck();
@@ -319,7 +319,7 @@ function registerSaveAllCommand(program2) {
319
319
  }
320
320
  configureAxios();
321
321
  const eds = await loadEDS2();
322
- console.log("Saving Email Design System...");
322
+ console.log("Deploying Email Design System...");
323
323
  const edsResponse = await syncEmailDesignSystem(
324
324
  eds.workspace_id,
325
325
  eds.email_design_system_id,
@@ -335,7 +335,7 @@ function registerSaveAllCommand(program2) {
335
335
  }
336
336
  );
337
337
  await closeViteServer2();
338
- console.log(`Email Design System saved successfully`);
338
+ console.log(`Email Design System deployed successfully`);
339
339
  process.exit(0);
340
340
  } catch (error) {
341
341
  await closeViteServer2();
@@ -492,10 +492,10 @@ function registerDevCommand(program2) {
492
492
  });
493
493
  }
494
494
 
495
- // src/commands/build.ts
495
+ // src/commands/render.ts
496
496
  import { resolve as resolve4 } from "path";
497
- function registerBuildCommand(program2) {
498
- program2.command("build").description("Build the Email Design System HTML output").action(async () => {
497
+ function registerRenderCommand(program2) {
498
+ program2.command("render").description("Render the Email Design System HTML output").action(async () => {
499
499
  try {
500
500
  console.log("Checking types...");
501
501
  const typeCheck = runTypeCheck();
@@ -504,11 +504,11 @@ function registerBuildCommand(program2) {
504
504
  console.error(typeCheck.output);
505
505
  process.exit(1);
506
506
  }
507
- console.log("Building...");
507
+ console.log("Rendering...");
508
508
  await buildHtml();
509
509
  await closeViteServer();
510
510
  const outputPath = resolve4(process.cwd(), "dist", "rendered.html");
511
- console.log(`Built successfully: ${outputPath}`);
511
+ console.log(`Rendered successfully: ${outputPath}`);
512
512
  process.exit(0);
513
513
  } catch (error) {
514
514
  if (error instanceof Error) {
@@ -529,7 +529,7 @@ Run: npm update @emailshepherd/cli`
529
529
  var program = new Command();
530
530
  program.name("emailshepherd").description("EmailShepherd CLI - run commands from within an EDS project").version(package_default.version);
531
531
  registerValidateCommand(program);
532
- registerSaveAllCommand(program);
532
+ registerDeployCommand(program);
533
533
  registerDevCommand(program);
534
- registerBuildCommand(program);
534
+ registerRenderCommand(program);
535
535
  program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailshepherd/cli",
3
- "version": "0.1.40",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",