@ryanatkn/gro 0.112.4 → 0.113.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.
- package/README.md +4 -10
- package/dist/modules.d.ts +2 -13
- package/dist/package.d.ts +2 -4
- package/dist/package.js +16 -16
- package/dist/package_meta.d.ts +0 -1
- package/dist/package_meta.js +0 -1
- package/package.json +15 -17
package/README.md
CHANGED
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[`npm i -D @ryanatkn/gro`](https://www.npmjs.com/package/@ryanatkn/gro)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Gro has been actively used since 2019 but it has few users,
|
|
12
|
-
so you'll likely encounter problems and undesirable limitations --
|
|
13
|
-
please open issues!
|
|
14
|
-
- [Windows won't be supported](https://github.com/ryanatkn/gro/issues/319)
|
|
9
|
+
[Windows won't be supported](https://github.com/ryanatkn/gro/issues/319), I chose Bash instead
|
|
15
10
|
|
|
16
11
|
## about
|
|
17
12
|
|
|
@@ -36,6 +31,7 @@ It includes:
|
|
|
36
31
|
and [SvelteKit](https://github.com/sveltejs/kit)
|
|
37
32
|
- defers to SvelteKit and Vite for the frontend and
|
|
38
33
|
[`@sveltejs/package`](https://kit.svelte.dev/docs/packaging) for the library
|
|
34
|
+
- exposes all of its internals in `$lib`
|
|
39
35
|
- uses [Changesets](https://github.com/changesets/changesets) for versioning and changelogs
|
|
40
36
|
- provides a [Node loader](/src/lib/loader.ts) and
|
|
41
37
|
[esbuild plugins for the server](/src/lib/gro_plugin_server.ts)
|
|
@@ -58,8 +54,6 @@ It includes:
|
|
|
58
54
|
- linting with [ESLint](https://github.com/eslint/eslint)
|
|
59
55
|
(I also maintain [`@feltjs/eslint-config`](https://github.com/feltjs/eslint-config))
|
|
60
56
|
- formatting with [Prettier](https://github.com/prettier/prettier)
|
|
61
|
-
(it's not always pretty but it saves time writing and reading code,
|
|
62
|
-
my time is more precious than my formatting style)
|
|
63
57
|
|
|
64
58
|
## docs
|
|
65
59
|
|
|
@@ -118,13 +112,13 @@ clean remove temporary dev and build files, and optionally prune git branch
|
|
|
118
112
|
commit commit and push to a new branch
|
|
119
113
|
deploy deploy to a branch
|
|
120
114
|
dev start SvelteKit and other dev plugins
|
|
121
|
-
exports write the "exports" property of package.json and copy the file to .well-known
|
|
122
115
|
format format source files
|
|
123
116
|
gen run code generation scripts
|
|
124
117
|
lint run eslint
|
|
125
118
|
publish bump version, publish to npm, and git push
|
|
126
119
|
release publish and deploy
|
|
127
|
-
|
|
120
|
+
run execute a file with the loader, like `node` but works for TypeScript
|
|
121
|
+
sync run `gro gen`, update `package.json`, and optionally `npm i` to sync up
|
|
128
122
|
test run tests with uvu
|
|
129
123
|
typecheck run tsc on the project without emitting any files
|
|
130
124
|
upgrade upgrade deps
|
package/dist/modules.d.ts
CHANGED
|
@@ -20,9 +20,7 @@ export type Load_Module_Failure = {
|
|
|
20
20
|
mod: Record<string, any>;
|
|
21
21
|
validation: string;
|
|
22
22
|
};
|
|
23
|
-
export declare const load_module: <T extends Record<string, any>>(id: string, validate?: ((mod: Record<string, any>) => mod is T) | undefined) => Promise<
|
|
24
|
-
mod: T_1;
|
|
25
|
-
}, Load_Module_Failure>>;
|
|
23
|
+
export declare const load_module: <T extends Record<string, any>>(id: string, validate?: ((mod: Record<string, any>) => mod is T) | undefined) => Promise<Load_Module_Result<Module_Meta<T>>>;
|
|
26
24
|
export type Find_Modules_Result = Result<{
|
|
27
25
|
source_ids_by_input_path: Map<string, string[]>;
|
|
28
26
|
source_id_path_data_by_input_path: Map<string, Path_Data>;
|
|
@@ -48,13 +46,4 @@ export type Load_Modules_Result<T_Module_Meta extends Module_Meta> = Result<{
|
|
|
48
46
|
modules: T_Module_Meta[];
|
|
49
47
|
}>;
|
|
50
48
|
export declare const find_modules: (input_paths: string[], custom_search_fs?: (dir: string, options?: import("./search_fs.js").Search_Fs_Options) => Promise<Map<string, import("./path.js").Path_Stats>>, get_possible_source_ids?: ((input_path: string) => string[]) | undefined, timings?: any) => Promise<Find_Modules_Result>;
|
|
51
|
-
export declare const load_modules: <Module_Type extends Record<string, any>, T_Module_Meta extends Module_Meta<Module_Type>>(source_ids_by_input_path: Map<string, string[]>, load_module_by_id: (source_id: Flavored<string, "Source_Id">) => Promise<
|
|
52
|
-
mod: T;
|
|
53
|
-
}, Load_Module_Failure>>, timings?: any) => Promise<Result<{
|
|
54
|
-
modules: T_Module_Meta_1[];
|
|
55
|
-
}, {
|
|
56
|
-
type: 'load_module_failures';
|
|
57
|
-
load_module_failures: Load_Module_Failure[];
|
|
58
|
-
reasons: string[];
|
|
59
|
-
modules: T_Module_Meta_1[];
|
|
60
|
-
}>>;
|
|
49
|
+
export declare const load_modules: <Module_Type extends Record<string, any>, T_Module_Meta extends Module_Meta<Module_Type>>(source_ids_by_input_path: Map<string, string[]>, load_module_by_id: (source_id: Flavored<string, "Source_Id">) => Promise<Load_Module_Result<T_Module_Meta>>, timings?: any) => Promise<Load_Modules_Result<T_Module_Meta>>;
|
package/dist/package.d.ts
CHANGED
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.
|
|
4
|
+
version: '0.113.0',
|
|
5
5
|
description: 'task runner and toolkit extending SvelteKit',
|
|
6
6
|
icon: '🌰',
|
|
7
7
|
public: true,
|
|
@@ -10,7 +10,8 @@ export const package_json = {
|
|
|
10
10
|
homepage: 'https://gro.ryanatkn.com/',
|
|
11
11
|
author: { name: 'Ryan Atkinson', email: 'mail@ryanatkn.com', url: 'https://www.ryanatkn.com/' },
|
|
12
12
|
repository: { type: 'git', url: 'git+https://github.com/ryanatkn/gro.git' },
|
|
13
|
-
bugs:
|
|
13
|
+
bugs: 'https://github.com/ryanatkn/gro/issues',
|
|
14
|
+
funding: 'https://www.ryanatkn.com/funding',
|
|
14
15
|
type: 'module',
|
|
15
16
|
engines: { node: '>=20.10' },
|
|
16
17
|
scripts: {
|
|
@@ -31,16 +32,16 @@ export const package_json = {
|
|
|
31
32
|
],
|
|
32
33
|
files: ['dist'],
|
|
33
34
|
dependencies: {
|
|
34
|
-
'@ryanatkn/belt': '^0.20.
|
|
35
|
+
'@ryanatkn/belt': '^0.20.10',
|
|
35
36
|
chokidar: '^3.6.0',
|
|
36
37
|
dotenv: '^16.4.5',
|
|
37
|
-
'es-module-lexer': '^1.
|
|
38
|
+
'es-module-lexer': '^1.5.0',
|
|
38
39
|
kleur: '^4.1.5',
|
|
39
40
|
mri: '^1.2.0',
|
|
40
41
|
prettier: '^3.2.5',
|
|
41
|
-
'prettier-plugin-svelte': '^3.2.
|
|
42
|
+
'prettier-plugin-svelte': '^3.2.2',
|
|
42
43
|
'tiny-glob': '^0.2.9',
|
|
43
|
-
'ts-morph': '^
|
|
44
|
+
'ts-morph': '^22.0.0',
|
|
44
45
|
tslib: '^2.6.2',
|
|
45
46
|
zod: '^3.22.4',
|
|
46
47
|
},
|
|
@@ -49,21 +50,21 @@ export const package_json = {
|
|
|
49
50
|
'@changesets/changelog-git': '^0.2.0',
|
|
50
51
|
'@changesets/types': '^6.0.0',
|
|
51
52
|
'@ryanatkn/eslint-config': '^0.1.0',
|
|
52
|
-
'@ryanatkn/fuz': '^0.
|
|
53
|
+
'@ryanatkn/fuz': '^0.92.0',
|
|
53
54
|
'@sveltejs/adapter-static': '^3.0.1',
|
|
54
|
-
'@sveltejs/kit': '^2.5.
|
|
55
|
-
'@sveltejs/package': '^2.
|
|
55
|
+
'@sveltejs/kit': '^2.5.4',
|
|
56
|
+
'@sveltejs/package': '^2.3.0',
|
|
56
57
|
'@sveltejs/vite-plugin-svelte': '^3.0.2',
|
|
57
58
|
'@types/fs-extra': '^11.0.4',
|
|
58
|
-
'@types/node': '^20.11.
|
|
59
|
-
'@typescript-eslint/eslint-plugin': '^7.
|
|
60
|
-
'@typescript-eslint/parser': '^7.
|
|
59
|
+
'@types/node': '^20.11.30',
|
|
60
|
+
'@typescript-eslint/eslint-plugin': '^7.4.0',
|
|
61
|
+
'@typescript-eslint/parser': '^7.4.0',
|
|
61
62
|
esbuild: '^0.19.0',
|
|
62
63
|
eslint: '^8.57.0',
|
|
63
64
|
'eslint-plugin-svelte': '^2.35.1',
|
|
64
65
|
svelte: '^4.2.12',
|
|
65
|
-
'svelte-check': '^3.6.
|
|
66
|
-
typescript: '^5.
|
|
66
|
+
'svelte-check': '^3.6.8',
|
|
67
|
+
typescript: '^5.4.3',
|
|
67
68
|
uvu: '^0.5.6',
|
|
68
69
|
},
|
|
69
70
|
eslintConfig: { root: true, extends: '@ryanatkn', rules: { 'no-console': 1 } },
|
|
@@ -233,7 +234,7 @@ export const package_json = {
|
|
|
233
234
|
};
|
|
234
235
|
export const src_json = {
|
|
235
236
|
name: '@ryanatkn/gro',
|
|
236
|
-
version: '0.
|
|
237
|
+
version: '0.113.0',
|
|
237
238
|
modules: {
|
|
238
239
|
'.': {
|
|
239
240
|
path: 'index.ts',
|
|
@@ -611,7 +612,6 @@ export const src_json = {
|
|
|
611
612
|
{ name: 'Package_Meta', kind: 'type' },
|
|
612
613
|
{ name: 'parse_package_meta', kind: 'function' },
|
|
613
614
|
{ name: 'parse_repo_name', kind: 'function' },
|
|
614
|
-
{ name: 'format_host', kind: 'function' },
|
|
615
615
|
{ name: 'parse_org_url', kind: 'function' },
|
|
616
616
|
],
|
|
617
617
|
},
|
package/dist/package_meta.d.ts
CHANGED
|
@@ -19,5 +19,4 @@ export interface Package_Meta {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const parse_package_meta: (url: Flavored<string, "Url">, package_json: Package_Json, src_json: Src_Json) => Package_Meta;
|
|
21
21
|
export declare const parse_repo_name: (name: string) => string;
|
|
22
|
-
export declare const format_host: (url: string) => string;
|
|
23
22
|
export declare const parse_org_url: (pkg: Package_Meta) => string | null;
|
package/dist/package_meta.js
CHANGED
|
@@ -35,7 +35,6 @@ export const parse_package_meta = (url, package_json, src_json) => {
|
|
|
35
35
|
};
|
|
36
36
|
// TODO proper parsing
|
|
37
37
|
export const parse_repo_name = (name) => name[0] === '@' ? name.split('/')[1] : name;
|
|
38
|
-
export const format_host = (url) => strip_start(new URL(url).host, 'www.');
|
|
39
38
|
export const parse_org_url = (pkg) => {
|
|
40
39
|
const { repo_name, repo_url } = pkg;
|
|
41
40
|
if (!repo_url)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanatkn/gro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.113.0",
|
|
4
4
|
"description": "task runner and toolkit extending SvelteKit",
|
|
5
5
|
"icon": "🌰",
|
|
6
6
|
"public": true,
|
|
@@ -18,10 +18,8 @@
|
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "git+https://github.com/ryanatkn/gro.git"
|
|
20
20
|
},
|
|
21
|
-
"bugs":
|
|
22
|
-
|
|
23
|
-
"email": "mail@ryanatkn.com"
|
|
24
|
-
},
|
|
21
|
+
"bugs": "https://github.com/ryanatkn/gro/issues",
|
|
22
|
+
"funding": "https://www.ryanatkn.com/funding",
|
|
25
23
|
"type": "module",
|
|
26
24
|
"engines": {
|
|
27
25
|
"node": ">=20.10"
|
|
@@ -46,16 +44,16 @@
|
|
|
46
44
|
"dist"
|
|
47
45
|
],
|
|
48
46
|
"dependencies": {
|
|
49
|
-
"@ryanatkn/belt": "^0.20.
|
|
47
|
+
"@ryanatkn/belt": "^0.20.10",
|
|
50
48
|
"chokidar": "^3.6.0",
|
|
51
49
|
"dotenv": "^16.4.5",
|
|
52
|
-
"es-module-lexer": "^1.
|
|
50
|
+
"es-module-lexer": "^1.5.0",
|
|
53
51
|
"kleur": "^4.1.5",
|
|
54
52
|
"mri": "^1.2.0",
|
|
55
53
|
"prettier": "^3.2.5",
|
|
56
|
-
"prettier-plugin-svelte": "^3.2.
|
|
54
|
+
"prettier-plugin-svelte": "^3.2.2",
|
|
57
55
|
"tiny-glob": "^0.2.9",
|
|
58
|
-
"ts-morph": "^
|
|
56
|
+
"ts-morph": "^22.0.0",
|
|
59
57
|
"tslib": "^2.6.2",
|
|
60
58
|
"zod": "^3.22.4"
|
|
61
59
|
},
|
|
@@ -67,21 +65,21 @@
|
|
|
67
65
|
"@changesets/changelog-git": "^0.2.0",
|
|
68
66
|
"@changesets/types": "^6.0.0",
|
|
69
67
|
"@ryanatkn/eslint-config": "^0.1.0",
|
|
70
|
-
"@ryanatkn/fuz": "^0.
|
|
68
|
+
"@ryanatkn/fuz": "^0.92.0",
|
|
71
69
|
"@sveltejs/adapter-static": "^3.0.1",
|
|
72
|
-
"@sveltejs/kit": "^2.5.
|
|
73
|
-
"@sveltejs/package": "^2.
|
|
70
|
+
"@sveltejs/kit": "^2.5.4",
|
|
71
|
+
"@sveltejs/package": "^2.3.0",
|
|
74
72
|
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
|
75
73
|
"@types/fs-extra": "^11.0.4",
|
|
76
|
-
"@types/node": "^20.11.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
78
|
-
"@typescript-eslint/parser": "^7.
|
|
74
|
+
"@types/node": "^20.11.30",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
76
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
79
77
|
"esbuild": "^0.19.0",
|
|
80
78
|
"eslint": "^8.57.0",
|
|
81
79
|
"eslint-plugin-svelte": "^2.35.1",
|
|
82
80
|
"svelte": "^4.2.12",
|
|
83
|
-
"svelte-check": "^3.6.
|
|
84
|
-
"typescript": "^5.
|
|
81
|
+
"svelte-check": "^3.6.8",
|
|
82
|
+
"typescript": "^5.4.3",
|
|
85
83
|
"uvu": "^0.5.6"
|
|
86
84
|
},
|
|
87
85
|
"eslintConfig": {
|