Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icon kit #3

Merged
merged 96 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
9e7789c
Initial commit
seggewiss Mar 30, 2022
2205809
Add tooling
seggewiss Mar 31, 2022
157a007
Update readme
seggewiss Apr 4, 2022
b943c9c
Fix package name
seggewiss Apr 4, 2022
9a28889
Add actions
seggewiss Apr 4, 2022
8134445
Merge pull request #2 from shopware/add-actions
seggewiss Apr 4, 2022
312bf84
Update readme badge
seggewiss Apr 4, 2022
06478a3
Merge pull request #3 from shopware/update-readme-badge
seggewiss Apr 4, 2022
83435c8
Add manual action
seggewiss Apr 4, 2022
558d420
Merge pull request #4 from shopware/add-manual-action
seggewiss Apr 4, 2022
5acdf86
Configure manual action
seggewiss Apr 4, 2022
f5fbadc
Merge pull request #6 from shopware/configure-manual-action
seggewiss Apr 4, 2022
133f06b
Update README.md
seggewiss Apr 4, 2022
59f6fdf
Add assignees
seggewiss Apr 4, 2022
14bef2f
Update icons
Apr 4, 2022
51b0160
Update package.json
Weltraumakustik Apr 4, 2022
686cee6
Merge pull request #9 from shopware/update-icons-1649059575
Weltraumakustik Apr 4, 2022
ca44231
Cleanup
seggewiss Apr 4, 2022
4e749d7
Merge pull request #10 from shopware/clean-up
seggewiss Apr 4, 2022
2d4eb53
Update README.md
seggewiss Apr 4, 2022
9b9e4f9
Update icons
Weltraumakustik Apr 12, 2022
30acf5f
Bump up version and add changelog
Weltraumakustik Apr 12, 2022
36fe32f
Update README and add LICENSE
Weltraumakustik Apr 12, 2022
487779e
Update README
Weltraumakustik Apr 12, 2022
5c8258d
Merge pull request #11 from shopware/update-icons-1649745178
Weltraumakustik Apr 12, 2022
095f061
Update icons
Weltraumakustik May 18, 2022
b40afb5
Update changelog and package version
Weltraumakustik May 18, 2022
d2ec019
Merge pull request #12 from shopware/update-icons-1652858253
Weltraumakustik May 18, 2022
2d5cee0
NEXT-17228 - remove dimensions from svg files
jleifeld Jun 14, 2022
30ef95e
Merge pull request #14 from shopware/next-17228/remove-fixed-dimensio…
jleifeld Jun 20, 2022
bb8fcac
Implement docs
seggewiss Jun 28, 2022
66013e9
Merge pull request #15 from shopware/implement-docs
seggewiss Jun 28, 2022
15f9eb3
Implement docs
seggewiss Jun 28, 2022
fd633a7
Merge pull request #16 from shopware/implement-docs
jleifeld Jun 29, 2022
a2912cc
Fix icon assets
seggewiss Jun 29, 2022
43c5eac
Merge pull request #17 from shopware/fix-icon-assets
seggewiss Jun 29, 2022
699454b
Disable dark mode for build
seggewiss Jun 29, 2022
a489a9c
Merge pull request #18 from shopware/disable-dark-mode-for-build
jleifeld Jun 29, 2022
241deca
Fix search width
seggewiss Jun 30, 2022
f353222
Merge pull request #19 from shopware/fix-search-width
jleifeld Jun 30, 2022
9ce9831
Fix search width in docs
seggewiss Jun 30, 2022
a2f4cdf
Merge pull request #20 from shopware/fix-search-width-in-docs
seggewiss Jun 30, 2022
ef5a4b4
Add styling
seggewiss Jul 5, 2022
4140d02
Merge pull request #21 from shopware/add-styling
seggewiss Jul 5, 2022
5596e42
Update icons
Weltraumakustik Jul 11, 2022
243ad64
Update version
Weltraumakustik Jul 11, 2022
4c73c85
Merge pull request #23 from shopware/update-icons-1657546104
Weltraumakustik Jul 11, 2022
8c50d25
Update icons
Weltraumakustik Jul 28, 2022
af657f2
Update version
Weltraumakustik Jul 28, 2022
f97b7b4
Merge pull request #24 from shopware/update-icons-1659019144
Weltraumakustik Jul 28, 2022
39be9f2
Update icons
Weltraumakustik Nov 4, 2022
48b995b
Update to 4.4.0
Peter-Noorlander Nov 4, 2022
f43e5a7
Merge pull request #27 from shopware/update-icons-1667548743
Peter-Noorlander Nov 4, 2022
5b655db
Update icons
Weltraumakustik Jan 5, 2023
145be3b
Update version and copyright year
Weltraumakustik Jan 5, 2023
ecf346b
Merge pull request #30 from shopware/update-icons-1672922189
Weltraumakustik Jan 5, 2023
20a419a
Update icons
Weltraumakustik Jan 20, 2023
bfb0857
Update version
Weltraumakustik Jan 20, 2023
8ad9e27
Update CHANGELOG.md
Weltraumakustik Jan 20, 2023
e0bf867
Update icons
Weltraumakustik Jan 20, 2023
47630aa
Merge pull request #36 from shopware/update-icons-1674207051
Weltraumakustik Jan 20, 2023
b98ede7
Update icons
Weltraumakustik Jan 20, 2023
f478b31
Merge pull request #37 from shopware/update-icons-1674229592
Weltraumakustik Jan 20, 2023
abb7289
Update icons
Weltraumakustik Jan 20, 2023
7a4dccc
Merge pull request #38 from shopware/update-icons-1674230066
Weltraumakustik Jan 20, 2023
1f03bd9
Update icons
Weltraumakustik Jan 20, 2023
037fa45
Merge pull request #39 from shopware/update-icons-1674230589
Weltraumakustik Jan 20, 2023
3f63776
Merge pull request #35 from shopware/update-icons-1674205534
jleifeld Jan 23, 2023
d3008ef
Update icons
Weltraumakustik Mar 16, 2023
3fb52d0
Update package and changelog
Weltraumakustik Mar 16, 2023
59f469a
Merge pull request #41 from shopware/update-icons-1678964743
Weltraumakustik Mar 16, 2023
e4d2400
Update changelog
jleifeld Mar 17, 2023
d20ed87
Add vite example to readme
seggewiss Apr 25, 2023
dea5d03
Merge pull request #42 from shopware/add-vite-example-to-readme
jleifeld Apr 25, 2023
4fea91c
Update icons
Weltraumakustik Aug 9, 2023
76245cf
Update changelog and version
Weltraumakustik Aug 9, 2023
f660419
Update changelog
Weltraumakustik Aug 9, 2023
84cf23f
Merge pull request #44 from shopware/update-icons-1691586885
jleifeld Aug 10, 2023
513312a
DX-223 - Embed into DevHub (#28)
bojanrajh Dec 13, 2023
c2d4f74
feat: revert image version
bojanrajh Dec 13, 2023
f5a0117
feat: update lock
bojanrajh Dec 13, 2023
298ae9c
NEXT-33446 - move icon kit into sub-folder
Haberkamp Feb 6, 2024
4a23cf4
Merge remote-tracking branch 'icon-kit/main'
Haberkamp Feb 6, 2024
4fb0c4a
NEXT-33446 - update pnpm-lock.yaml to include icon kit
Haberkamp Feb 6, 2024
2e5a238
NEXT-33446 - replace vars.TUBO_TEAM with secrets.TURBO_TEAM
Haberkamp Feb 7, 2024
5040057
NEXT-33446 - run linting script of icon-kit in CI pipeline
Haberkamp Feb 7, 2024
29ae4c1
NEXT-33446 - move healthcheck workflow to root
Haberkamp Feb 7, 2024
a99b7de
NEXT-33446 - move developer portal healthcheck to root
Haberkamp Feb 7, 2024
4712d37
NEXT-33446 - move update icons worflow to root
Haberkamp Feb 7, 2024
03be122
NEXT-33446 - move docs workflow to root
Haberkamp Feb 7, 2024
8508471
NEXT-33446 - move publish to npm worflow of icon kit to root
Haberkamp Feb 7, 2024
5b491cb
NEXT-33446 - move deploy developer portal workflow to root
Haberkamp Feb 7, 2024
25404eb
NEXT-33446 - bump up version of actions/checkout to v4
Haberkamp Feb 7, 2024
734befd
NEXT-33446 - fix indentation in icon kit
Haberkamp Feb 7, 2024
a362d4d
NEXT-33446 - remove unused code
Haberkamp Feb 7, 2024
d6b3306
NEXT-33446 - disable DevHub workflow
Haberkamp Feb 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .github/scripts/docs-after-clone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /usr/bin/env bash
set -e

[[ -z "$1" ]] && echo "Missing working directory argument" && exit 1

echo "Installing root npm"
npm --prefix $1 install

echo "Running root build"
npm run --prefix $1 build

echo "Building figma"
npm run --prefix $1 start

echo "Copying icons"
cp -R "$1/icons" "$1/docs/public"
4 changes: 4 additions & 0 deletions .github/scripts/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build-end:
copy-additional-assets:
- public/icons/regular
- public/icons/solid
26 changes: 26 additions & 0 deletions .github/workflows/deploy-developer-portal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow is triggered whenever the main branch is updated
name: Deploy to DevHub

# on:
# push:
# branches:
# - main

on: workflow_dispatch

jobs:
trigger-deployment:
name: Trigger deployment
runs-on: ubuntu-latest
steps:

- uses: octokit/[email protected]
name: Trigger deployment
with:
route: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
owner: shopware
repo: developer-portal
ref: main
workflow_id: checkout-test-build-deploy.yml
env:
GITHUB_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/developer-portal-healthckeck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Healthcheck

on:
pull_request:
branches:
- main

jobs:

create-healthcheck:
uses: shopware/developer-portal/.github/workflows/healthcheck.yml@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
branch: ${{ github.event.pull_request.head.ref }}
sha: ${{ github.event.pull_request.head.sha }}
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docs

on: push

jobs:
create_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Deploy redirect
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: redirect
clean: true
24 changes: 23 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -31,3 +30,26 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
access: 'public'

publish-tokens:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: lint
run: pnpm run lint:all --filter @shopware-ag/meteor-icon-kit

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/update-healthcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow is triggered from developer-portal
name: Update healthcheck

on:
workflow_dispatch:
inputs:
owner:
description: "Owner to checkout"
required: true
type: string
repo:
description: "Repo to checkout"
required: true
type: string
check:
description: "Check ID"
required: true
type: string
conclusion:
description: "Healthcheck conclusion"
required: true
type: string
run_id:
description: "Workflow run ID"
required: true
type: string

jobs:
update-healthcheck:
uses: shopware/developer-portal/.github/workflows/update-healthcheck.yml@main
with:
owner: ${{ inputs.owner }}
repo: ${{ inputs.repo }}
check: ${{ inputs.check }}
conclusion: ${{ inputs.conclusion }}
run_id: ${{ inputs.run_id }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/update-icons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update icons

# Manual trigger
on: workflow_dispatch

env:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
FIGMA_FILE: ${{ secrets.FIGMA_FILE }}

jobs:
update:
name: Update icons
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm --prefix ./packages/icon-kit run build

- name: Update icons
run: pnpm --prefix ./packages/icon-kit run start

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update icons
comitter: ${{ secrets.COMITTER }}
author: Dennis Mader <${{ secrets.COMITTER }}>
branch: update-icons
delete-branch: true
branch-suffix: timestamp
title: Update icons
assignees: Weltraumakustik
2 changes: 1 addition & 1 deletion .github/workflows/visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions packages/icon-kit/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
71 changes: 71 additions & 0 deletions packages/icon-kit/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: [
'@typescript-eslint',
'import',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
'no-prototype-builtins': 'off',
'comma-dangle': 'off',
'no-irregular-whitespace': 'error',
'no-multiple-empty-lines': ['error', { max: 1}],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/consistent-type-imports': ['error'],
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'comma',
requireLast: true,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
}],
'capitalized-comments': [
'error',
'always',
{
'ignorePattern': 'pragma|ignored',
'ignoreInlineComments': true,
},
],
semi: [
'error',
'always',
],
'indent': [
'error',
2,
],
'no-debugger': 'error',
'no-unreachable': 'error',
'consistent-return': 'error',
camelcase: 'error',
curly: 'error',
eqeqeq: 'error',
'multiline-comment-style': [
'error',
'starred-block',
],
'no-iterator': 'error',
'import/no-cycle': [
2,
{
maxDepth: 1,
},
],
quotes: ['error', 'single'],
'eol-last': ['error', 'always'],
},
};
4 changes: 4 additions & 0 deletions packages/icon-kit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea/
dist/
node_modules/
.DS_Store
Loading
Loading