From 3e0f2fb7810ced3782162ef10716b217cfc905a5 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 20 Oct 2025 12:48:57 +0200 Subject: [PATCH] Framework refactor complete, still need new name --- task_2_ts/ts/main.ts | 5 +---- task_2_ts/ts/rendering/index.ts | 4 ++++ task_2_ts/ts/rendering/package.json | 20 ++++++++++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 task_2_ts/ts/rendering/package.json diff --git a/task_2_ts/ts/main.ts b/task_2_ts/ts/main.ts index 5628225..cad5699 100644 --- a/task_2_ts/ts/main.ts +++ b/task_2_ts/ts/main.ts @@ -3,13 +3,10 @@ import '../css/layout.css'; import '@picocss/pico/css/pico.min.css'; import { listRef, ref -} from './rendering/framework'; +} from './rendering'; import { CSVRecord } from './types'; -import { - RenderTemplate -} from './rendering/rendering'; import { readCSV } from './csv'; diff --git a/task_2_ts/ts/rendering/index.ts b/task_2_ts/ts/rendering/index.ts index 3fb866c..4f471b1 100644 --- a/task_2_ts/ts/rendering/index.ts +++ b/task_2_ts/ts/rendering/index.ts @@ -23,6 +23,10 @@ import { ref } from './primitives'; +export { + listRef, + ref +}; export default { ref, diff --git a/task_2_ts/ts/rendering/package.json b/task_2_ts/ts/rendering/package.json new file mode 100644 index 0000000..5dc0279 --- /dev/null +++ b/task_2_ts/ts/rendering/package.json @@ -0,0 +1,20 @@ +{ + "name": "rendering", + "version": "1.0.0", + "description": "Simple rendering framework for this task", + "homepage": "https://github.com/janishutz/fundamentals-of-webengineering#readme", + "bugs": { + "url": "https://github.com/janishutz/fundamentals-of-webengineering/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/janishutz/fundamentals-of-webengineering.git" + }, + "license": "ISC", + "author": "Janis Hutz ", + "type": "module", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + } +}