@frigear-nu/cli 0.2.2 → 0.2.3

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.
package/README.md CHANGED
@@ -9,7 +9,7 @@ pnpx @frigear-nu/cli --help
9
9
 
10
10
  | Command | What it does |
11
11
  | --- | --- |
12
- | `init [dir] --platform <web\|mobile\|desktop\|web,mobile>` | New project from a starter (or `-t <giget source>`), then `pnpm install` and `pnpm prepare:env`. |
12
+ | `init [dir] --platform <web\|mobile\|desktop\|web,mobile\|web,mobile,desktop>` | New project from a starter (or `-t <giget source>`), then `pnpm install` and `pnpm prepare:env`. |
13
13
  | `app:create <name> --template <web\|web-standalone\|mobile\|desktop>` | Adds a starter's app to `apps/<name>`. |
14
14
  | `module:create <name> [--scope @acme]` | Scaffolds a Nuxt module in `packages/<name>`. |
15
15
  | `add <module...> [--app <app>]` | `pnpm add` in the app and adds the modules to its `nuxt.config`. |
@@ -17,7 +17,8 @@ const STARTERS = {
17
17
  "workspace": { platforms: ["web"], hint: "apps/web: users, auth, account and admin" },
18
18
  "mobile": { platforms: ["mobile"], hint: "apps/mobile: a Capacitor app against any OAuth issuer" },
19
19
  "mobile-standalone": { platforms: ["web", "mobile"], hint: "apps/web + apps/mobile, with apps/web as the OAuth server" },
20
- "desktop": { platforms: ["desktop"], hint: "apps/desktop: a Tauri app against any OAuth issuer, or offline with its own server" }
20
+ "desktop": { platforms: ["desktop"], hint: "apps/desktop: a Tauri app against any OAuth issuer, or offline with its own server" },
21
+ "multi-platform": { platforms: ["web", "mobile", "desktop"], hint: "apps/web + apps/mobile + apps/desktop, with apps/web as the OAuth server" }
21
22
  };
22
23
  const nextSteps = {
23
24
  "workspace": [" put your email in NUXT_ACL_ADMINS in apps/web/.env"],
@@ -26,6 +27,10 @@ const nextSteps = {
26
27
  "desktop": [
27
28
  " set NUXT_PUBLIC_AUTHENTICATION_CLIENT_ISSUER (and _API_BASE) in apps/desktop/.env, or DESKTOP_MODE=local",
28
29
  " pnpm desktop:init"
30
+ ],
31
+ "multi-platform": [
32
+ " put your email in NUXT_ACL_ADMINS in apps/web/.env",
33
+ " pnpm desktop:init"
29
34
  ]
30
35
  };
31
36
  const isStarter = (value) => value in STARTERS;
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { m as main } from './shared/cli.Bq3BvIWj.mjs';
2
+ import { m as main } from './shared/cli.BRfEZGZ1.mjs';
3
3
  import 'citty';
4
4
 
5
5
  await main();
package/dist/index.d.mts CHANGED
@@ -23,11 +23,15 @@ declare const STARTERS: {
23
23
  readonly platforms: readonly ["desktop"];
24
24
  readonly hint: "apps/desktop: a Tauri app against any OAuth issuer, or offline with its own server";
25
25
  };
26
+ readonly 'multi-platform': {
27
+ readonly platforms: readonly ["web", "mobile", "desktop"];
28
+ readonly hint: "apps/web + apps/mobile + apps/desktop, with apps/web as the OAuth server";
29
+ };
26
30
  };
27
31
  type Starter = keyof typeof STARTERS;
28
32
  /**
29
- * A starter from its name (`mobile-standalone`) or from its platforms (`web`, `mobile`, `desktop`, `web,mobile`, in any
30
- * order).
33
+ * A starter from its name (`mobile-standalone`) or from its platforms (`web`, `mobile`, `desktop`, `web,mobile`,
34
+ * `web,mobile,desktop`, in any order).
31
35
  */
32
36
  declare const resolveStarter: (value: string) => Starter | undefined;
33
37
  declare const _default: citty.CommandDef<{
package/dist/index.d.ts CHANGED
@@ -23,11 +23,15 @@ declare const STARTERS: {
23
23
  readonly platforms: readonly ["desktop"];
24
24
  readonly hint: "apps/desktop: a Tauri app against any OAuth issuer, or offline with its own server";
25
25
  };
26
+ readonly 'multi-platform': {
27
+ readonly platforms: readonly ["web", "mobile", "desktop"];
28
+ readonly hint: "apps/web + apps/mobile + apps/desktop, with apps/web as the OAuth server";
29
+ };
26
30
  };
27
31
  type Starter = keyof typeof STARTERS;
28
32
  /**
29
- * A starter from its name (`mobile-standalone`) or from its platforms (`web`, `mobile`, `desktop`, `web,mobile`, in any
30
- * order).
33
+ * A starter from its name (`mobile-standalone`) or from its platforms (`web`, `mobile`, `desktop`, `web,mobile`,
34
+ * `web,mobile,desktop`, in any order).
31
35
  */
32
36
  declare const resolveStarter: (value: string) => Starter | undefined;
33
37
  declare const _default: citty.CommandDef<{
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { m as default, a as mainCmd } from './shared/cli.Bq3BvIWj.mjs';
1
+ export { m as default, a as mainCmd } from './shared/cli.BRfEZGZ1.mjs';
2
2
  export { PLATFORMS, STARTERS, default as initCmd, resolveStarter } from './chunks/init.mjs';
3
3
  export { m as migrations, u as upgradeWorkspace } from './chunks/upgrade.mjs';
4
4
  import 'citty';
@@ -1,6 +1,6 @@
1
1
  import { defineCommand, runMain } from 'citty';
2
2
 
3
- const version = "0.2.2";
3
+ const version = "0.2.3";
4
4
  const pkg = {
5
5
  version: version};
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Frigear CLI: scaffold projects, apps and modules, and add Frigear modules to an app.",