Skip to content

Commit 5c51f41

Browse files
authored
Merge pull request #115 from it-at-m/beta
Release current beta version
2 parents 1596a93 + d663606 commit 5c51f41

26 files changed

+2685
-1113
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ module.exports = {
1212
parserOptions: {
1313
ecmaVersion: "latest",
1414
},
15+
ignorePatterns: ["/storybook-static", "/dist"], // Ignoriere die Ordner foo und bar
1516
};

.github/workflows/build.yaml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
11
name: build and deploy
22

3+
env:
4+
NODE_VERSION: "20"
5+
36
on: [push]
47

58
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: ${{ env.NODE_VERSION }}
18+
cache: "npm"
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Run formater and linter
22+
run: npm run lint
23+
624
build:
725
runs-on: ubuntu-latest
26+
needs: lint
827
permissions:
9-
contents: read # to be able to publish a GitHub release
28+
contents: read
1029
steps:
1130
- uses: actions/checkout@v4
1231
- uses: actions/setup-node@v4
1332
with:
14-
node-version: "20"
33+
node-version: ${{ env.NODE_VERSION }}
1534
cache: "npm"
16-
registry-url: "https://registry.npmjs.org"
1735
- run: npm ci # install dependencies
1836
- run: npm run build # build library
1937
- run: npm run build-storybook # build docs
@@ -41,9 +59,8 @@ jobs:
4159
- uses: actions/checkout@v4
4260
- uses: actions/setup-node@v4
4361
with:
44-
node-version: "20"
62+
node-version: ${{ env.NODE_VERSION }}
4563
cache: "npm"
46-
registry-url: "https://registry.npmjs.org"
4764
- run: npm ci # install dependencies
4865
- name: Download build-results
4966
uses: actions/download-artifact@v4
@@ -53,7 +70,7 @@ jobs:
5370
- name: run semantic-release
5471
env:
5572
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
73+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5774
run: npm run semantic-release
5875

5976
deploy-gh-pages:
@@ -78,4 +95,4 @@ jobs:
7895
id: deployment
7996
with:
8097
github_token: ${{ secrets.GITHUB_TOKEN }}
81-
publish_dir: ./storybook-static
98+
publish_dir: ./storybook-static

.storybook/MucTheme.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { create } from '@storybook/theming/create';
1+
import { create } from "@storybook/theming/create";
22

33
export default create({
4-
base: 'light',
5-
brandTitle: 'muc-patternlab-vue',
6-
brandUrl: 'https://github.com/it-at-m/muc-patternlab-vue',
7-
brandImage: './muc-patternlab-vue.png',
8-
brandTarget: '_blank',
9-
});
4+
base: "light",
5+
brandTitle: "muc-patternlab-vue",
6+
brandUrl: "https://github.com/it-at-m/muc-patternlab-vue",
7+
brandImage: "./muc-patternlab-vue.png",
8+
brandTarget: "_blank",
9+
});

.storybook/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { StorybookConfig } from "@storybook/vue3-vite";
66
const fs = require("fs");
77
const path = require("path");
88
const mucIconsSvg = fs.readFileSync(
9-
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
10-
"utf8"
9+
path.resolve(__dirname, "../public/assets/temporary/muc-icons.svg"),
10+
"utf8"
1111
);
1212
const customIconsSvg = fs.readFileSync(
13-
path.resolve(__dirname, "../public/assets/temporary/custom-icons.svg"),
14-
"utf8"
13+
path.resolve(__dirname, "../public/assets/temporary/custom-icons.svg"),
14+
"utf8"
1515
);
1616

1717
const config: StorybookConfig = {

.storybook/manager-head.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<link rel="shortcut icon" href="/favicon.ico">
1+
<link
2+
rel="shortcut icon"
3+
href="/favicon.ico"
4+
/>

.storybook/manager.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { addons } from '@storybook/manager-api';
2-
import mucTheme from './MucTheme';
1+
import { addons } from "@storybook/manager-api";
2+
3+
import mucTheme from "./MucTheme";
34

45
addons.setConfig({
5-
theme: mucTheme,
6-
});
6+
theme: mucTheme,
7+
});

docs/GettingStarted.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ In your Webcomponents root you should import the MDE5-CSS and SVG-Sprite for MDE
3939
lang="ts"
4040
setup
4141
>
42-
import mucIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
4342
import customIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/custom-icons.svg?raw";
43+
import mucIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
4444
</script>
4545

4646
<template>

docs/Iconography.mdx

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Meta, IconGallery, IconItem } from '@storybook/blocks';
1+
import { IconGallery, IconItem, Meta } from "@storybook/blocks";
22

33
<Meta title="Iconography" />
44

@@ -9,16 +9,24 @@ This library already contains MDE5-Patternlabs iconset. The documentation to it
99
Additionally, it adds some specialty icons from [Pictogrammers](https://pictogrammers.com/library/mdi) which can be accessed by embedding the SVG-Sprite `custom-icons.svg` as described in [the getting started guide](/docs/getting-started--docs#setup).
1010

1111
<IconGallery>
12-
<IconItem name="pencil">
13-
<svg fill="currentColor"><use href="#icon-pencil" /></svg>
14-
</IconItem>
15-
<IconItem name="dots-vertical">
16-
<svg fill="currentColor"><use href="#icon-dots-vertical" /></svg>
17-
</IconItem>
18-
<IconItem name="circle-off-outline">
19-
<svg fill="currentColor"><use href="#icon-circle-off-outline" /></svg>
20-
</IconItem>
21-
<IconItem name="account">
22-
<svg fill="currentColor"><use href="#icon-account" /></svg>
23-
</IconItem>
24-
</IconGallery>
12+
<IconItem name="pencil">
13+
<svg fill="currentColor">
14+
<use href="#icon-pencil" />
15+
</svg>
16+
</IconItem>
17+
<IconItem name="dots-vertical">
18+
<svg fill="currentColor">
19+
<use href="#icon-dots-vertical" />
20+
</svg>
21+
</IconItem>
22+
<IconItem name="circle-off-outline">
23+
<svg fill="currentColor">
24+
<use href="#icon-circle-off-outline" />
25+
</svg>
26+
</IconItem>
27+
<IconItem name="account">
28+
<svg fill="currentColor">
29+
<use href="#icon-account" />
30+
</svg>
31+
</IconItem>
32+
</IconGallery>

0 commit comments

Comments
 (0)