From 49cc4eb4b2ebcd2452e31f187596cde2f75a37f1 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 17 Apr 2022 17:50:05 -0400 Subject: [PATCH 1/4] add showdown for the markdown conversion --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bfa5b6b..fac5e60 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "eslint-plugin-svelte3": "^3.4.1", "prettier": "~2.5.1", "prettier-plugin-svelte": "^2.6.0", + "showdown": "^2.0.3", "standard-version": "^9.3.2", "storybook-builder-vite": "0.1.21", "svelte": "^3.46.4", From f44de3ab6ba9c701d683cb7d757019821a719960 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 17 Apr 2022 17:50:37 -0400 Subject: [PATCH 2/4] incorporate the changelog comp generation to standard-version --- .versionrc.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.versionrc.json b/.versionrc.json index b4a1cf4..b49c3dc 100644 --- a/.versionrc.json +++ b/.versionrc.json @@ -1,4 +1,7 @@ { + "scripts": { + "postchangelog": "gotask changelog" + }, "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, From d4743390c74e387aa3d23af1620a26c1fd6db425 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 17 Apr 2022 17:51:19 -0400 Subject: [PATCH 3/4] add a Taskfile --- .gitignore | 1 + Taskfile.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Taskfile.yml diff --git a/.gitignore b/.gitignore index 7d5a785..4b43a61 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ package-lock.json .temp node_modules/ dist/yarn-error.log +.task/ diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..cddf613 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,22 @@ +# https://taskfile.dev + +version: "3" + +vars: + GREETING: Hello, World! + +tasks: + release: + cmds: + - standard-version -a + changelog: + sources: [CHANGELOG.md] + generates: [src/lib/components/Changelog.svelte] + cmds: + - pnpx showdown makehtml -i CHANGELOG.md -o src/lib/components/Changelog.svelte + - git add src/lib/components/Changelog.svelte + + default: + cmds: + - echo "{{.GREETING}}" + silent: true From 89fb27ff9fb8794b4a19d20bff17c0d08e355d1c Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 17 Apr 2022 17:51:31 -0400 Subject: [PATCH 4/4] add Changelog component --- src/lib/components/About.svelte | 94 ++++++++++++++------- src/lib/components/Changelog.stories.svelte | 15 ++++ src/lib/components/Changelog.svelte | 38 +++++++++ 3 files changed, 117 insertions(+), 30 deletions(-) create mode 100644 src/lib/components/Changelog.stories.svelte create mode 100644 src/lib/components/Changelog.svelte diff --git a/src/lib/components/About.svelte b/src/lib/components/About.svelte index 421f42a..364478c 100644 --- a/src/lib/components/About.svelte +++ b/src/lib/components/About.svelte @@ -1,40 +1,55 @@ - -
-

Welcome to the docks

+{#if showChangelog} + +

Changelog for the Docks

+
+ +
+
+{:else} + +
+

Welcome to the docks

-

version {import.meta.env.PACKAGE_VERSION}

-
+
+
version {import.meta.env.PACKAGE_VERSION}
+ (showChangelog = true)}>changelog +
+
-

- This app is a ship builder for the game - Full Thrust - . -

+

+ This app is a ship builder for the game + Full Thrust + . +

-

- The contruction rules are following the - - Cross Dimensions rules - - as closely as possible. -

+

+ The contruction rules are following the + + Cross Dimensions rules + + as closely as possible. +

-

- The app is mostly developed for Firefox. I also check as much as I can that - I don't mess things too badly on Chrome. For the other browsers... caveat - emptor. -

+

+ The app is mostly developed for Firefox. I also check as much as I can + that I don't mess things too badly on Chrome. For the other browsers... + caveat emptor. +

-

- Written by - Yanick Champoux - . Code available on - Github. -

-
+

+ Written by + Yanick Champoux + . Code available on + Github. +

+ +{/if} diff --git a/src/lib/components/Changelog.stories.svelte b/src/lib/components/Changelog.stories.svelte new file mode 100644 index 0000000..183f8b9 --- /dev/null +++ b/src/lib/components/Changelog.stories.svelte @@ -0,0 +1,15 @@ + + + + + + + diff --git a/src/lib/components/Changelog.svelte b/src/lib/components/Changelog.svelte new file mode 100644 index 0000000..0cf664c --- /dev/null +++ b/src/lib/components/Changelog.svelte @@ -0,0 +1,38 @@ +

Changelog

+

+ All notable changes to this project will be documented in this file. See standard-version for commit guidelines. +

+

+ 2.3.0 (2022-04-17) +

+

Features

+
    +
  • +

    + add 'reset ship' button [GH#15] 49fc8d5 +

    +
  • +
  • add version to About component 919f286, closes #6

  • +
  • release: 2.3.0 4d10119

  • +
+

+ 2.2.0 (2022-04-11) +

+

Features

+
    +
  • allow to edit the print layout 381d497
  • +
+

+ 2.1.0 (2022-04-07) +

+

Features

+
    +
  • add localStorage memory bf7206a

  • +
  • can move main system comps in the print output b425f4a

  • +
  • add standard-version 2fd047f

  • +