Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ module.exports = {
parserOptions: {
ecmaVersion: "latest",
},
ignorePatterns: ["/storybook-static", "/dist"], // Ignoriere die Ordner foo und bar
};
27 changes: 22 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
name: build and deploy

env:
NODE_VERSION: "20"

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run formater and linter
run: npm run lint

build:
runs-on: ubuntu-latest
needs: lint
permissions:
contents: read # to be able to publish a GitHub release
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
registry-url: "https://registry.npmjs.org"
- run: npm ci # install dependencies
- run: npm run build # build library
- run: npm run build-storybook # build docs
Expand Down Expand Up @@ -41,9 +59,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
registry-url: "https://registry.npmjs.org"
- run: npm ci # install dependencies
- name: Download build-results
uses: actions/download-artifact@v4
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@
"dist"
],
"scripts": {
"build": "rimraf dist && npm run type-check && npm run build-only",
"build": "rimraf dist && npm run build-only",
"test:unit": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write ./",
"lint": "prettier . --check && eslint . --ignore-path .gitignore && vue-tsc -p tsconfig.json --emitDeclarationOnly --skipLibCheck --composite false",
"fix": "prettier . --write && eslint . --fix --ignore-path .gitignore",
"semantic-release": "semantic-release",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
Expand Down
4 changes: 3 additions & 1 deletion src/components/Button/MucButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ const buttonVariantClass = computed(() => {
}
});

const iconAnimatedClass = computed(() => props.iconAnimated ? 'm-button--animated-right' : '');
const iconAnimatedClass = computed(() =>
props.iconAnimated ? "m-button--animated-right" : ""
);

const handleClick = () => {
emit("click");
Expand Down