From 442aac2289d9074e4f016f0caefd1c3b588088c6 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 11 Oct 2022 08:08:40 +0200 Subject: [PATCH 1/3] refactor: added pattern lab UI specific styles (#47) provided by DB UI Core --- package-lock.json | 88 ++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + patternlab-config.json | 21 +++++++++- 3 files changed, 109 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a9da9fce3..61ffcf995 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "devDependencies": { "@commitlint/cli": "17.1.2", "@commitlint/config-conventional": "17.1.0", + "@mfranzke/plugin-node-uiextension": "^1.0.0", "@pattern-lab/cli": "5.17.0", "@pattern-lab/core": "5.17.0", "@pattern-lab/engine-handlebars": "5.16.4", @@ -562,6 +563,40 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@mfranzke/plugin-node-uiextension": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@mfranzke/plugin-node-uiextension/-/plugin-node-uiextension-1.0.0.tgz", + "integrity": "sha512-33k46y2u+tR8fBizOWYU/mE5KCgQSAGer/KWpv1J7qi0TdYdy1TJf4js80avBMw3txPvcwtah5fd4+F+B9T0kA==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "fs-extra": "^0.30.0", + "glob": "^7.0.0", + "lodash": "^4.17.21" + } + }, + "node_modules/@mfranzke/plugin-node-uiextension/node_modules/fs-extra": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", + "integrity": "sha512-UvSPKyhMn6LEd/WpUaV9C9t3zATuqoqfWc3QdPhPLb58prN9tqYPlPWi8Krxi44loBoUzlobqZ3+8tGpxxSzwA==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^2.1.0", + "klaw": "^1.0.0", + "path-is-absolute": "^1.0.0", + "rimraf": "^2.2.8" + } + }, + "node_modules/@mfranzke/plugin-node-uiextension/node_modules/jsonfile": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", + "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -4423,6 +4458,15 @@ "node": ">=0.10.0" } }, + "node_modules/klaw": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", + "integrity": "sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.9" + } + }, "node_modules/known-css-properties": { "version": "0.25.0", "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.25.0.tgz", @@ -9119,6 +9163,41 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "@mfranzke/plugin-node-uiextension": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@mfranzke/plugin-node-uiextension/-/plugin-node-uiextension-1.0.0.tgz", + "integrity": "sha512-33k46y2u+tR8fBizOWYU/mE5KCgQSAGer/KWpv1J7qi0TdYdy1TJf4js80avBMw3txPvcwtah5fd4+F+B9T0kA==", + "dev": true, + "requires": { + "fs-extra": "^0.30.0", + "glob": "^7.0.0", + "lodash": "^4.17.21" + }, + "dependencies": { + "fs-extra": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", + "integrity": "sha512-UvSPKyhMn6LEd/WpUaV9C9t3zATuqoqfWc3QdPhPLb58prN9tqYPlPWi8Krxi44loBoUzlobqZ3+8tGpxxSzwA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^2.1.0", + "klaw": "^1.0.0", + "path-is-absolute": "^1.0.0", + "rimraf": "^2.2.8" + } + }, + "jsonfile": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", + "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + } + } + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -12055,6 +12134,15 @@ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true }, + "klaw": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", + "integrity": "sha512-TED5xi9gGQjGpNnvRWknrwAB1eL5GciPfVFOt3Vk1OJCVDQbzuSfrF3hkUQKlsgKrG1F+0t5W0m+Fje1jIt8rw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.9" + } + }, "known-css-properties": { "version": "0.25.0", "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.25.0.tgz", diff --git a/package.json b/package.json index 1d7932bde..7ccfd8194 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "devDependencies": { "@commitlint/cli": "17.1.2", "@commitlint/config-conventional": "17.1.0", + "@mfranzke/plugin-node-uiextension": "^1.0.0", "@pattern-lab/cli": "5.17.0", "@pattern-lab/core": "5.17.0", "@pattern-lab/engine-handlebars": "5.16.4", diff --git a/patternlab-config.json b/patternlab-config.json index ced4979ed..8502a95e4 100644 --- a/patternlab-config.json +++ b/patternlab-config.json @@ -116,5 +116,24 @@ "extend": "helpers/*.js" } }, - "transformedAssetTypes": ["scss"] + "transformedAssetTypes": ["scss"], + "plugins": { + "@mfranzke/plugin-node-uiextension": { + "enabled": true, + "initialized": false, + "options": { + "stylesheets": [ + "https://db-ui.github.io/core/css/pattern-scaffolding-project-specific.css" + ], + "navLinks": { + "before": [], + "after": [] + }, + "toolLinks": { + "before": [], + "after": [] + } + } + } + } } From 47d3b70f83239b39662468e974cad92d6876164a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 11 Oct 2022 08:16:17 +0200 Subject: [PATCH 2/3] feat: added spacing-l token (#77) --- tokens/spacings.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tokens/spacings.json b/tokens/spacings.json index 73988df9a..8e9525302 100644 --- a/tokens/spacings.json +++ b/tokens/spacings.json @@ -15,6 +15,10 @@ "m": { "value": "1rem", "themeable": true + }, + "l": { + "value": "1.25rem", + "themeable": true } } } From 8d8086bcec541a362490986e7ac405fd2ec6e3d4 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Tue, 11 Oct 2022 09:59:38 +0200 Subject: [PATCH 3/3] fix: made cleanup.yml a cron job (#79) --- .github/workflows/cleanup.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index d1a852865..751a559e7 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -2,9 +2,8 @@ name: Cleans all preview pages for gh-pages on: - push: - branches: - - main + schedule: + - cron: "0 0 * * *" jobs: clean: