@youcan/app 1.2.0-beta.9 → 2.0.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.
@@ -1,5 +1,6 @@
1
1
  import { AppCommand } from '@/util/theme-command';
2
2
  declare class Dev extends AppCommand {
3
+ static description: string;
3
4
  run(): Promise<any>;
4
5
  }
5
6
  export default Dev;
@@ -5,6 +5,7 @@ import { APP_CONFIG_FILENAME } from '../../../constants.js';
5
5
  import { bootAppWorker, bootWebWorker, bootExtensionWorker } from '../../services/dev/workers/index.js';
6
6
 
7
7
  class Dev extends AppCommand {
8
+ static description = 'Run the app in draft mode';
8
9
  async run() {
9
10
  const app = await load();
10
11
  const session = await Session.authenticate(this);
@@ -1,5 +1,6 @@
1
1
  import { AppCommand } from '@/util/theme-command';
2
2
  declare class GenerateExtension extends AppCommand {
3
+ static description: string;
3
4
  run(): Promise<any>;
4
5
  }
5
6
  export default GenerateExtension;
@@ -5,6 +5,7 @@ import { ensureExtensionDirectoryExists, initThemeExtension } from '../../../ser
5
5
  import { APP_CONFIG_FILENAME } from '../../../../constants.js';
6
6
 
7
7
  class GenerateExtension extends AppCommand {
8
+ static description = 'Generate an app extension';
8
9
  async run() {
9
10
  const filepath = Path.resolve(Path.cwd(), APP_CONFIG_FILENAME);
10
11
  const app = await Filesystem.readJsonFile(filepath);
@@ -1,4 +1,5 @@
1
1
  import { AppCommand } from '@/util/theme-command';
2
2
  export default class Install extends AppCommand {
3
+ static description: string;
3
4
  run(): Promise<void>;
4
5
  }
@@ -3,6 +3,7 @@ import { load } from '../../../util/app-loader.js';
3
3
  import { AppCommand } from '../../../util/theme-command.js';
4
4
 
5
5
  class Install extends AppCommand {
6
+ static description = 'Generate an app installation URL';
6
7
  async run() {
7
8
  const app = await load();
8
9
  if (!app.config.id) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/app",
3
3
  "type": "module",
4
- "version": "1.2.0-beta.9",
4
+ "version": "2.0.0",
5
5
  "description": "OCLIF plugin for building apps",
6
6
  "author": "YouCan <contact@youcan.shop> (https://youcan.shop)",
7
7
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@oclif/core": "^2.15.0",
19
19
  "dayjs": "^1.11.10",
20
- "@youcan/cli-kit": "1.2.0-beta.9"
20
+ "@youcan/cli-kit": "2.0.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@oclif/plugin-legacy": "^1.3.0",