Skip to content

Commit

Permalink
upgrade @grogarden/gro which adds modules to package.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Oct 31, 2023
1 parent c69b6d4 commit 4b0fc13
Show file tree
Hide file tree
Showing 7 changed files with 528 additions and 132 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-llamas-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@grogarden/util': patch
---

upgrade `@grogarden/gro` which adds `modules` to `package.ts`
277 changes: 178 additions & 99 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
},
"devDependencies": {
"@changesets/changelog-git": "^0.1.14",
"@feltjs/eslint-config": "^0.4.0",
"@fuz.dev/fuz": "^0.73.0",
"@fuz.dev/fuz_library": "^0.11.0",
"@grogarden/gro": "^0.95.8",
"@feltjs/eslint-config": "^0.4.1",
"@fuz.dev/fuz": "^0.77.1",
"@fuz.dev/fuz_library": "^0.17.1",
"@grogarden/gro": "^0.98.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.26.0",
"@sveltejs/kit": "^1.27.2",
"@sveltejs/package": "^2.2.2",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.51.0",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.52.0",
"eslint-plugin-svelte": "^2.34.0",
"kleur": "^4.1.5",
"prettier": "^3.0.3",
Expand Down
277 changes: 268 additions & 9 deletions src/lib/package.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// generated by src/lib/package.gen.ts

import type {PackageJson} from '@grogarden/gro/package_json.js';

export const package_json = {
Expand All @@ -23,17 +25,17 @@ export const package_json = {
peerDependencies: {kleur: '^4.0.0'},
devDependencies: {
'@changesets/changelog-git': '^0.1.14',
'@feltjs/eslint-config': '^0.4.0',
'@fuz.dev/fuz': '^0.73.0',
'@fuz.dev/fuz_library': '^0.11.0',
'@grogarden/gro': '^0.95.8',
'@feltjs/eslint-config': '^0.4.1',
'@fuz.dev/fuz': '^0.77.1',
'@fuz.dev/fuz_library': '^0.17.1',
'@grogarden/gro': '^0.98.1',
'@sveltejs/adapter-static': '^2.0.3',
'@sveltejs/kit': '^1.26.0',
'@sveltejs/kit': '^1.27.2',
'@sveltejs/package': '^2.2.2',
'@types/node': '^20.8.7',
'@typescript-eslint/eslint-plugin': '^6.8.0',
'@typescript-eslint/parser': '^6.8.0',
eslint: '^8.51.0',
'@types/node': '^20.8.9',
'@typescript-eslint/eslint-plugin': '^6.9.1',
'@typescript-eslint/parser': '^6.9.1',
eslint: '^8.52.0',
'eslint-plugin-svelte': '^2.34.0',
kleur: '^4.1.5',
prettier: '^3.0.3',
Expand Down Expand Up @@ -80,4 +82,261 @@ export const package_json = {
'./timings.js': {default: './dist/timings.js', types: './dist/timings.d.ts'},
'./types.js': {default: './dist/types.js', types: './dist/types.d.ts'},
},
modules: {
'./array.js': {
path: 'array.ts',
declarations: [
{name: 'EMPTY_ARRAY', kind: 'VariableDeclaration'},
{name: 'to_array', kind: 'VariableDeclaration'},
{name: 'remove_unordered', kind: 'VariableDeclaration'},
{name: 'to_next', kind: 'VariableDeclaration'},
],
},
'./async.js': {
path: 'async.ts',
declarations: [
{name: 'AsyncStatus', kind: 'TypeAliasDeclaration'},
{name: 'wait', kind: 'VariableDeclaration'},
],
},
'./counter.js': {
path: 'counter.ts',
declarations: [
{name: 'Counter', kind: 'InterfaceDeclaration'},
{name: 'create_counter', kind: 'VariableDeclaration'},
],
},
'./dom.js': {
path: 'dom.ts',
declarations: [
{name: 'is_editable', kind: 'VariableDeclaration'},
{name: 'swallow', kind: 'VariableDeclaration'},
{name: 'handle_target_value', kind: 'VariableDeclaration'},
{name: 'is_iframed', kind: 'VariableDeclaration'},
],
},
'./error.js': {
path: 'error.ts',
declarations: [{name: 'UnreachableError', kind: 'ClassDeclaration'}],
},
'./function.js': {
path: 'function.ts',
declarations: [
{name: 'noop', kind: 'VariableDeclaration'},
{name: 'noop_async', kind: 'VariableDeclaration'},
{name: 'resolved', kind: 'VariableDeclaration'},
{name: 'identity', kind: 'VariableDeclaration'},
{name: 'Lazy', kind: 'InterfaceDeclaration'},
{name: 'lazy', kind: 'VariableDeclaration'},
],
},
'./id.js': {
path: 'id.ts',
declarations: [
{name: 'Uuid', kind: 'TypeAliasDeclaration'},
{name: 'is_uuid', kind: 'VariableDeclaration'},
{name: 'uuid_matcher', kind: 'VariableDeclaration'},
{name: 'ClientIdCreator', kind: 'InterfaceDeclaration'},
{name: 'create_client_id_creator', kind: 'VariableDeclaration'},
],
},
'./json.js': {
path: 'json.ts',
declarations: [
{name: 'Json', kind: 'TypeAliasDeclaration'},
{name: 'JsonType', kind: 'TypeAliasDeclaration'},
{name: 'to_json_type', kind: 'VariableDeclaration'},
],
},
'./log.js': {
path: 'log.ts',
declarations: [
{name: 'LogLevel', kind: 'TypeAliasDeclaration'},
{name: 'to_log_level_value', kind: 'VariableDeclaration'},
{name: 'configure_log_level', kind: 'VariableDeclaration'},
{name: 'Log', kind: 'TypeAliasDeclaration'},
{name: 'LoggerState', kind: 'InterfaceDeclaration'},
{name: 'BaseLogger', kind: 'ClassDeclaration'},
{name: 'Logger', kind: 'ClassDeclaration'},
{name: 'SystemLogger', kind: 'ClassDeclaration'},
{name: 'print_log_label', kind: 'VariableDeclaration'},
],
},
'./map.js': {
path: 'map.ts',
declarations: [
{name: 'sort_map', kind: 'VariableDeclaration'},
{name: 'compare_simple_map_entries', kind: 'VariableDeclaration'},
],
},
'./maths.js': {
path: 'maths.ts',
declarations: [
{name: 'clamp', kind: 'VariableDeclaration'},
{name: 'lerp', kind: 'VariableDeclaration'},
{name: 'round', kind: 'VariableDeclaration'},
{name: 'GR', kind: 'VariableDeclaration'},
{name: 'GRi', kind: 'VariableDeclaration'},
{name: 'GR2', kind: 'VariableDeclaration'},
{name: 'GR2i', kind: 'VariableDeclaration'},
{name: 'GR3', kind: 'VariableDeclaration'},
{name: 'GR3i', kind: 'VariableDeclaration'},
{name: 'GR4', kind: 'VariableDeclaration'},
{name: 'GR4i', kind: 'VariableDeclaration'},
{name: 'GR5', kind: 'VariableDeclaration'},
{name: 'GR5i', kind: 'VariableDeclaration'},
{name: 'GR6', kind: 'VariableDeclaration'},
{name: 'GR6i', kind: 'VariableDeclaration'},
{name: 'GR7', kind: 'VariableDeclaration'},
{name: 'GR7i', kind: 'VariableDeclaration'},
{name: 'GR8', kind: 'VariableDeclaration'},
{name: 'GR8i', kind: 'VariableDeclaration'},
{name: 'GR9', kind: 'VariableDeclaration'},
{name: 'GR9i', kind: 'VariableDeclaration'},
],
},
'./object.js': {
path: 'object.ts',
declarations: [
{name: 'map_record', kind: 'VariableDeclaration'},
{name: 'omit', kind: 'VariableDeclaration'},
{name: 'pick_by', kind: 'VariableDeclaration'},
{name: 'omit_undefined', kind: 'VariableDeclaration'},
{name: 'reorder', kind: 'VariableDeclaration'},
{name: 'EMPTY_OBJECT', kind: 'VariableDeclaration'},
{name: 'traverse', kind: 'VariableDeclaration'},
],
},
'./obtainable.js': {
path: 'obtainable.ts',
declarations: [
{name: 'Unobtain', kind: 'TypeAliasDeclaration'},
{name: 'create_obtainable', kind: 'VariableDeclaration'},
],
},
'./package.gen.js': {path: 'package.gen.ts', declarations: []},
'./package.js': {
path: 'package.ts',
declarations: [{name: 'package_json', kind: 'VariableDeclaration'}],
},
'./path.js': {
path: 'path.ts',
declarations: [
{name: 'parse_path_parts', kind: 'VariableDeclaration'},
{name: 'parse_path_segments', kind: 'VariableDeclaration'},
{name: 'parse_path_pieces', kind: 'VariableDeclaration'},
{name: 'PathPiece', kind: 'TypeAliasDeclaration'},
],
},
'./print.js': {
path: 'print.ts',
declarations: [
{name: 'print_key_value', kind: 'VariableDeclaration'},
{name: 'print_ms', kind: 'VariableDeclaration'},
{name: 'print_causes', kind: 'VariableDeclaration'},
{name: 'print_string', kind: 'VariableDeclaration'},
{name: 'print_number', kind: 'VariableDeclaration'},
{name: 'print_boolean', kind: 'VariableDeclaration'},
{name: 'print_value', kind: 'VariableDeclaration'},
{name: 'print_error', kind: 'VariableDeclaration'},
{name: 'print_timing', kind: 'VariableDeclaration'},
{name: 'print_timings', kind: 'VariableDeclaration'},
],
},
'./process.js': {
path: 'process.ts',
declarations: [
{name: 'SpawnedProcess', kind: 'InterfaceDeclaration'},
{name: 'Spawned', kind: 'InterfaceDeclaration'},
{name: 'SpawnResult', kind: 'TypeAliasDeclaration'},
{name: 'spawn', kind: 'VariableDeclaration'},
{name: 'SpawnedOut', kind: 'InterfaceDeclaration'},
{name: 'spawn_out', kind: 'VariableDeclaration'},
{name: 'spawn_process', kind: 'VariableDeclaration'},
{name: 'print_child_process', kind: 'VariableDeclaration'},
{name: 'global_spawn', kind: 'VariableDeclaration'},
{name: 'register_global_spawn', kind: 'VariableDeclaration'},
{name: 'despawn', kind: 'VariableDeclaration'},
{name: 'attach_process_error_handlers', kind: 'VariableDeclaration'},
{name: 'print_spawn_result', kind: 'VariableDeclaration'},
{name: 'RestartableProcess', kind: 'InterfaceDeclaration'},
{name: 'spawn_restartable_process', kind: 'VariableDeclaration'},
],
},
'./random_alea.js': {
path: 'random_alea.ts',
declarations: [
{name: 'Alea', kind: 'InterfaceDeclaration'},
{name: 'create_random_alea', kind: 'VariableDeclaration'},
{name: 'masher', kind: 'VariableDeclaration'},
],
},
'./random.js': {
path: 'random.ts',
declarations: [
{name: 'random_float', kind: 'VariableDeclaration'},
{name: 'random_int', kind: 'VariableDeclaration'},
{name: 'random_boolean', kind: 'VariableDeclaration'},
{name: 'random_item', kind: 'VariableDeclaration'},
{name: 'shuffle', kind: 'VariableDeclaration'},
],
},
'./regexp.js': {
path: 'regexp.ts',
declarations: [{name: 'escape_regexp', kind: 'VariableDeclaration'}],
},
'./result.js': {
path: 'result.ts',
declarations: [
{name: 'Result', kind: 'TypeAliasDeclaration'},
{name: 'OK', kind: 'VariableDeclaration'},
{name: 'NOT_OK', kind: 'VariableDeclaration'},
{name: 'unwrap', kind: 'VariableDeclaration'},
{name: 'ResultError', kind: 'ClassDeclaration'},
{name: 'unwrap_error', kind: 'VariableDeclaration'},
],
},
'./string.js': {
path: 'string.ts',
declarations: [
{name: 'truncate', kind: 'VariableDeclaration'},
{name: 'strip_start', kind: 'VariableDeclaration'},
{name: 'strip_end', kind: 'VariableDeclaration'},
{name: 'strip_after', kind: 'VariableDeclaration'},
{name: 'strip_before', kind: 'VariableDeclaration'},
{name: 'ensure_start', kind: 'VariableDeclaration'},
{name: 'ensure_end', kind: 'VariableDeclaration'},
{name: 'deindent', kind: 'VariableDeclaration'},
{name: 'plural', kind: 'VariableDeclaration'},
{name: 'to_grapheme_count', kind: 'VariableDeclaration'},
],
},
'./timings.js': {
path: 'timings.ts',
declarations: [
{name: 'Stopwatch', kind: 'InterfaceDeclaration'},
{name: 'create_stopwatch', kind: 'VariableDeclaration'},
{name: 'TimingsKey', kind: 'TypeAliasDeclaration'},
{name: 'Timings', kind: 'ClassDeclaration'},
],
},
'./types.js': {
path: 'types.ts',
declarations: [
{name: 'OmitStrict', kind: 'TypeAliasDeclaration'},
{name: 'PartialExcept', kind: 'TypeAliasDeclaration'},
{name: 'PartialOnly', kind: 'TypeAliasDeclaration'},
{name: 'PartialValues', kind: 'TypeAliasDeclaration'},
{name: 'Assignable', kind: 'TypeAliasDeclaration'},
{name: 'Defined', kind: 'TypeAliasDeclaration'},
{name: 'NotNull', kind: 'TypeAliasDeclaration'},
{name: 'Branded', kind: 'TypeAliasDeclaration'},
{name: 'Flavored', kind: 'TypeAliasDeclaration'},
{name: 'Brand', kind: 'InterfaceDeclaration'},
{name: 'Flavor', kind: 'InterfaceDeclaration'},
],
},
},
} satisfies PackageJson;

// generated by src/lib/package.gen.ts
22 changes: 7 additions & 15 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<script lang="ts">
import {base} from '$app/paths';
import {parse_package_meta} from '@fuz.dev/fuz_library/package_meta.js';
import LibraryHeader from '@fuz.dev/fuz_library/LibraryHeader.svelte';
import LibraryFooter from '@fuz.dev/fuz_library/LibraryFooter.svelte';
import {base} from '$app/paths';
import {package_json} from '$lib/package.js';
import Favicon from '$routes/Favicon.svelte';
const pkg = parse_package_meta(package_json.homepage, package_json);
</script>
Expand All @@ -14,16 +16,10 @@
<LibraryHeader {pkg} />
</section>
<section class="padded_md width_sm">
<blockquote class="box">
<div class="spaced">under construction</div>
<a href="https://www.grogarden.org/" title="grogarden.org" class="box padded_md panel"
><img
class="icon"
src="{base}/favicon.png"
alt="a pixelated green oak acorn with a glint of sun"
/></a
>
</blockquote>
<a href="{base}/about" class="box padded_md panel"
><div class="spaced">about</div>
<Favicon width={80} height={80} /></a
>
</section>
<section>
<LibraryFooter {pkg} root_url="https://www.grogarden.org/" />
Expand All @@ -42,8 +38,4 @@
flex-direction: column;
align-items: center;
}
.icon {
width: 80px;
height: 80px;
}
</style>
13 changes: 13 additions & 0 deletions src/routes/Favicon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script lang="ts">
import {base} from '$app/paths';
export let width = 16;
export let height = 16;
</script>

<img
src="{base}/favicon.png"
{width}
{height}
alt="the Gro icon, a {width} by {height} pixelated green oak acorn with a glint of sun"
/>
Loading

0 comments on commit 4b0fc13

Please sign in to comment.