@ryanatkn/gro 0.115.0 → 0.115.2

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
@@ -2,7 +2,9 @@
2
2
 
3
3
  <img src="static/favicon.png" align="right" width="192" height="192">
4
4
 
5
- > task runner and toolkit extending SvelteKit - [gro.ryanatkn.com](https://gro.ryanatkn.com)
5
+ > task runner and toolkit extending SvelteKit 🌰 generate, run, optimize
6
+
7
+ [gro.ryanatkn.com](https://gro.ryanatkn.com/)
6
8
 
7
9
  [`npm i -D @ryanatkn/gro`](https://www.npmjs.com/package/@ryanatkn/gro)
8
10
 
@@ -1,6 +1,6 @@
1
- # SvelteKit frontend plugin
1
+ # SvelteKit app plugin
2
2
 
3
- Gro's [SvelteKit frontend plugin](/src/lib/gro_plugin_sveltekit_app.ts)
3
+ Gro's [SvelteKit app plugin](/src/lib/gro_plugin_sveltekit_app.ts)
4
4
  calls `vite dev` and `vite build` with some additional behaviors.
5
5
 
6
6
  ```ts
@@ -24,7 +24,7 @@ export const gro_plugin_sveltekit_app = ({ host_target = 'github_pages', well_kn
24
24
  sveltekit_process = spawn_process('npx', serialized_args);
25
25
  }
26
26
  else {
27
- log.debug(`the SvelteKit frontend plugin is loaded but will not output anything` +
27
+ log.debug(`the SvelteKit app plugin is loaded but will not output anything` +
28
28
  ' because `dev` is true and `watch` is false');
29
29
  }
30
30
  }
package/dist/package.d.ts CHANGED
@@ -2,6 +2,7 @@ export declare const package_json: {
2
2
  name: string;
3
3
  version: string;
4
4
  description: string;
5
+ motto: string;
5
6
  icon: string;
6
7
  public: true;
7
8
  bin: {
package/dist/package.js CHANGED
@@ -1,8 +1,9 @@
1
1
  // generated by src/lib/package.gen.ts
2
2
  export const package_json = {
3
3
  name: '@ryanatkn/gro',
4
- version: '0.115.0',
4
+ version: '0.115.2',
5
5
  description: 'task runner and toolkit extending SvelteKit',
6
+ motto: 'generate, run, optimize',
6
7
  icon: '🌰',
7
8
  public: true,
8
9
  bin: { gro: 'dist/gro.js' },
@@ -235,7 +236,7 @@ export const package_json = {
235
236
  };
236
237
  export const src_json = {
237
238
  name: '@ryanatkn/gro',
238
- version: '0.115.0',
239
+ version: '0.115.2',
239
240
  modules: {
240
241
  '.': {
241
242
  path: 'index.ts',
@@ -51,6 +51,7 @@ export declare const Package_Json: z.ZodIntersection<z.ZodRecord<z.ZodString, z.
51
51
  icon: z.ZodOptional<z.ZodString>;
52
52
  private: z.ZodOptional<z.ZodBoolean>;
53
53
  description: z.ZodOptional<z.ZodString>;
54
+ motto: z.ZodOptional<z.ZodString>;
54
55
  license: z.ZodOptional<z.ZodString>;
55
56
  homepage: z.ZodOptional<z.ZodString>;
56
57
  repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -141,6 +142,7 @@ export declare const Package_Json: z.ZodIntersection<z.ZodRecord<z.ZodString, z.
141
142
  icon: z.ZodOptional<z.ZodString>;
142
143
  private: z.ZodOptional<z.ZodBoolean>;
143
144
  description: z.ZodOptional<z.ZodString>;
145
+ motto: z.ZodOptional<z.ZodString>;
144
146
  license: z.ZodOptional<z.ZodString>;
145
147
  homepage: z.ZodOptional<z.ZodString>;
146
148
  repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -231,6 +233,7 @@ export declare const Package_Json: z.ZodIntersection<z.ZodRecord<z.ZodString, z.
231
233
  icon: z.ZodOptional<z.ZodString>;
232
234
  private: z.ZodOptional<z.ZodBoolean>;
233
235
  description: z.ZodOptional<z.ZodString>;
236
+ motto: z.ZodOptional<z.ZodString>;
234
237
  license: z.ZodOptional<z.ZodString>;
235
238
  homepage: z.ZodOptional<z.ZodString>;
236
239
  repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -60,6 +60,7 @@ export const Package_Json = z.intersection(z.record(z.unknown()), z
60
60
  icon: z.string({ description: 'a Gro extension' }).optional(), // TODO maybe base64 favicon?
61
61
  private: z.boolean({ description: 'disallow npm publish' }).optional(),
62
62
  description: z.string().optional(),
63
+ motto: z.string().optional(),
63
64
  license: z.string().optional(),
64
65
  homepage: Url.optional(),
65
66
  repository: z.union([z.string(), Url, Package_Json_Repository]).optional(),
@@ -4,16 +4,22 @@ export declare const Args: z.ZodObject<{
4
4
  _: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5
5
  origin: z.ZodDefault<z.ZodBranded<z.ZodString, "Git_Origin">>;
6
6
  force: z.ZodDefault<z.ZodBoolean>;
7
+ pull: z.ZodDefault<z.ZodBoolean>;
8
+ 'no-pull': z.ZodDefault<z.ZodBoolean>;
7
9
  dry: z.ZodDefault<z.ZodBoolean>;
8
10
  }, "strict", z.ZodTypeAny, {
9
11
  _: string[];
10
12
  origin: string & z.BRAND<"Git_Origin">;
13
+ pull: boolean;
11
14
  dry: boolean;
12
15
  force: boolean;
16
+ 'no-pull': boolean;
13
17
  }, {
14
18
  _?: string[] | undefined;
15
19
  origin?: string | undefined;
16
20
  force?: boolean | undefined;
21
+ pull?: boolean | undefined;
22
+ 'no-pull'?: boolean | undefined;
17
23
  dry?: boolean | undefined;
18
24
  }>;
19
25
  export type Args = z.infer<typeof Args>;
@@ -7,6 +7,8 @@ export const Args = z
7
7
  _: z.array(z.string(), { description: 'names of deps to exclude from the upgrade' }).default([]),
8
8
  origin: Git_Origin.describe('git origin to deploy to').default('origin'),
9
9
  force: z.boolean({ description: 'if true, print out the planned upgrades' }).default(false),
10
+ pull: z.boolean({ description: 'dual of no-pull' }).default(true),
11
+ 'no-pull': z.boolean({ description: 'opt out of git pull' }).default(false),
10
12
  dry: z.boolean({ description: 'if true, print out the planned upgrades' }).default(false),
11
13
  })
12
14
  .strict();
@@ -14,9 +16,11 @@ export const task = {
14
16
  summary: 'upgrade deps',
15
17
  Args,
16
18
  run: async ({ args, log, invoke_task }) => {
17
- const { _, origin, force, dry } = args;
19
+ const { _, origin, force, pull, dry } = args;
18
20
  // TODO maybe a different task that pulls and does other things, like `gro ready`
19
- await git_pull(origin);
21
+ if (pull) {
22
+ await git_pull(origin);
23
+ }
20
24
  const package_json = await load_package_json();
21
25
  const deps = to_deps(package_json).filter((d) => !_.includes(d.key));
22
26
  const upgrade_items = to_upgrade_items(deps);
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.115.0",
3
+ "version": "0.115.2",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
+ "motto": "generate, run, optimize",
5
6
  "icon": "🌰",
6
7
  "public": true,
7
8
  "bin": {