@ryanatkn/gro 0.115.1 → 0.115.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# SvelteKit
|
|
1
|
+
# SvelteKit app plugin
|
|
2
2
|
|
|
3
|
-
Gro's [SvelteKit
|
|
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
|
|
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.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// generated by src/lib/package.gen.ts
|
|
2
2
|
export const package_json = {
|
|
3
3
|
name: '@ryanatkn/gro',
|
|
4
|
-
version: '0.115.
|
|
4
|
+
version: '0.115.3',
|
|
5
5
|
description: 'task runner and toolkit extending SvelteKit',
|
|
6
6
|
motto: 'generate, run, optimize',
|
|
7
7
|
icon: '🌰',
|
|
@@ -236,7 +236,7 @@ export const package_json = {
|
|
|
236
236
|
};
|
|
237
237
|
export const src_json = {
|
|
238
238
|
name: '@ryanatkn/gro',
|
|
239
|
-
version: '0.115.
|
|
239
|
+
version: '0.115.3',
|
|
240
240
|
modules: {
|
|
241
241
|
'.': {
|
|
242
242
|
path: 'index.ts',
|
package/dist/publish.task.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ export declare const Args: z.ZodObject<{
|
|
|
10
10
|
'no-check': z.ZodDefault<z.ZodBoolean>;
|
|
11
11
|
install: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
'no-install': z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
build: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
'no-build': z.ZodDefault<z.ZodBoolean>;
|
|
13
15
|
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
build: boolean;
|
|
14
17
|
install: boolean;
|
|
15
18
|
origin: string & z.BRAND<"Git_Origin">;
|
|
16
19
|
branch: string & z.BRAND<"Git_Branch">;
|
|
@@ -18,6 +21,7 @@ export declare const Args: z.ZodObject<{
|
|
|
18
21
|
'no-install': boolean;
|
|
19
22
|
check: boolean;
|
|
20
23
|
dry: boolean;
|
|
24
|
+
'no-build': boolean;
|
|
21
25
|
preserve_changelog: boolean;
|
|
22
26
|
'no-check': boolean;
|
|
23
27
|
}, {
|
|
@@ -30,6 +34,8 @@ export declare const Args: z.ZodObject<{
|
|
|
30
34
|
'no-check'?: boolean | undefined;
|
|
31
35
|
install?: boolean | undefined;
|
|
32
36
|
'no-install'?: boolean | undefined;
|
|
37
|
+
build?: boolean | undefined;
|
|
38
|
+
'no-build'?: boolean | undefined;
|
|
33
39
|
}>;
|
|
34
40
|
export type Args = z.infer<typeof Args>;
|
|
35
41
|
export declare const task: Task<Args>;
|
package/dist/publish.task.js
CHANGED
|
@@ -39,13 +39,15 @@ export const Args = z
|
|
|
39
39
|
'no-install': z
|
|
40
40
|
.boolean({ description: 'opt out of npm installing before building' })
|
|
41
41
|
.default(false),
|
|
42
|
+
build: z.boolean({ description: 'dual of no-build' }).default(true),
|
|
43
|
+
'no-build': z.boolean({ description: 'opt out of building' }).default(false),
|
|
42
44
|
})
|
|
43
45
|
.strict();
|
|
44
46
|
export const task = {
|
|
45
47
|
summary: 'bump version, publish to npm, and git push',
|
|
46
48
|
Args,
|
|
47
49
|
run: async ({ args, log, invoke_task }) => {
|
|
48
|
-
const { branch, changelog, preserve_changelog, dry, check, install,
|
|
50
|
+
const { branch, origin, changelog, preserve_changelog, dry, check, install, build } = args;
|
|
49
51
|
if (dry) {
|
|
50
52
|
log.info(green('dry run!'));
|
|
51
53
|
}
|
|
@@ -106,8 +108,9 @@ export const task = {
|
|
|
106
108
|
throw new Task_Error('changeset version failed: are there any changes?');
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
if (build) {
|
|
112
|
+
await invoke_task('build', { install });
|
|
113
|
+
}
|
|
111
114
|
if (dry) {
|
|
112
115
|
log.info('publishing branch ' + branch);
|
|
113
116
|
log.info(green('dry run complete!'));
|
package/dist/upgrade.task.d.ts
CHANGED
|
@@ -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>;
|
package/dist/upgrade.task.js
CHANGED
|
@@ -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
|
-
|
|
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);
|