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

feat(*): create component package #19

Merged
merged 70 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
8860869
feat: alpha branch
adamdehaven Jan 4, 2024
df0a023
chore(release): 1.0.0-alpha.1 [skip ci]
semantic-release-bot Jan 4, 2024
82d5ef1
ci: no preview package for alpha branch
adamdehaven Jan 4, 2024
f17267d
chore(release): 1.0.0-alpha.1 [skip ci]
semantic-release-bot Jan 4, 2024
8384d6b
fix: update package version
adamdehaven Jan 4, 2024
3f6c55a
chore(release): 1.0.0-alpha.1 [skip ci]
semantic-release-bot Jan 4, 2024
71fd64b
chore: trigger ci
adamdehaven Jan 4, 2024
189fdb1
chore(release): 1.0.0-alpha.1 [skip ci]
semantic-release-bot Jan 4, 2024
47cda28
chore: trigger ci
adamdehaven Jan 4, 2024
6803204
fix: remove comments
adamdehaven Jan 4, 2024
db4c4e9
chore(release): 1.0.0-alpha.25 [skip ci]
semantic-release-bot Jan 4, 2024
1527951
test: format and template tests
adamdehaven Jan 5, 2024
934651e
feat: download document
adamdehaven Jan 7, 2024
7bad075
chore(release): 1.0.0-alpha.26 [skip ci]
semantic-release-bot Jan 7, 2024
e46b74a
chore: spacing
adamdehaven Jan 7, 2024
3d32693
fix: min height
adamdehaven Jan 7, 2024
136d49d
chore(release): 1.0.0-alpha.27 [skip ci]
semantic-release-bot Jan 7, 2024
89dd163
test: click events
adamdehaven Jan 7, 2024
687f91f
feat: publish sandbox to github pages
adamdehaven Jan 8, 2024
cdbbcd6
chore(release): 1.0.0-alpha.28 [skip ci]
semantic-release-bot Jan 8, 2024
05bbd52
chore: update sandbox
adamdehaven Jan 8, 2024
e8297b2
revert: remove mermaid prop
adamdehaven Jan 8, 2024
3c2e695
chore: update markdown example
adamdehaven Jan 8, 2024
5988842
chore: update markdown example
adamdehaven Jan 8, 2024
45d6f83
chore: table example
adamdehaven Jan 8, 2024
353c1ab
chore(deps): update dependency stylelint to v16 (#16)
renovate[bot] Jan 8, 2024
6c9e3c5
chore(deps): update dependency @vue/tsconfig to ^0.5.1 (#12)
renovate[bot] Jan 8, 2024
181a305
chore: swap out download icon
adamdehaven Jan 8, 2024
ab48adc
fix: switch mermaid theme
adamdehaven Jan 8, 2024
a99e134
chore(release): 1.0.0-alpha.29 [skip ci]
semantic-release-bot Jan 8, 2024
c878507
fix: mobile button layout
adamdehaven Jan 9, 2024
546eab9
chore(release): 1.0.0-alpha.30 [skip ci]
semantic-release-bot Jan 9, 2024
cbf75e5
fix: list display
adamdehaven Jan 9, 2024
789fc45
chore(release): 1.0.0-alpha.31 [skip ci]
semantic-release-bot Jan 9, 2024
09d7b46
fix: completed tasks
adamdehaven Jan 9, 2024
55dea8e
chore(release): 1.0.0-alpha.32 [skip ci]
semantic-release-bot Jan 9, 2024
e3a9db5
feat: links
adamdehaven Jan 9, 2024
57f5d15
chore(release): 1.0.0-alpha.33 [skip ci]
semantic-release-bot Jan 9, 2024
175a9b3
feat: dark mode
adamdehaven Jan 10, 2024
b10c797
chore: remove rule
adamdehaven Jan 10, 2024
32f6222
feat: dark mode
adamdehaven Jan 10, 2024
915ea98
feat: dark mode
adamdehaven Jan 10, 2024
fbad8e8
fix: color theme
adamdehaven Jan 10, 2024
6927a94
docs: update readme
adamdehaven Jan 10, 2024
969cb95
chore(release): 1.0.0-alpha.34 [skip ci]
semantic-release-bot Jan 10, 2024
767961b
ci: wait for build before publish
adamdehaven Jan 10, 2024
5b22181
ci: rename job
adamdehaven Jan 10, 2024
3b5d931
Merge branch 'main' into alpha
adamdehaven Jan 10, 2024
c7acc4a
chore(renovate): group shikiji dependencies
adamdehaven Jan 12, 2024
9be9db0
fix(deps): update dependency @kong/icons to ^1.8.11 (#22)
renovate[bot] Jan 12, 2024
ff5633d
chore(deps): update dependency rollup-plugin-visualizer to ^5.12.0 (#21)
renovate[bot] Jan 12, 2024
2e55823
chore(release): 1.0.0-alpha.35 [skip ci]
semantic-release-bot Jan 12, 2024
32d70fb
chore(deps): update all non-major dependencies with stable version (#20)
renovate[bot] Jan 12, 2024
493ef6f
fix(deps): udpate shikiji
adamdehaven Jan 12, 2024
0d42bbb
fix: renovate config
adamdehaven Jan 12, 2024
e897f45
chore(release): 1.0.0-alpha.36 [skip ci]
semantic-release-bot Jan 12, 2024
8bb60d4
fix(deps): update dependency @kong/icons to ^1.8.12 (#23)
renovate[bot] Jan 16, 2024
4d2ee38
chore(deps): update all non-major dependencies with stable version (#25)
renovate[bot] Jan 16, 2024
38c4b22
fix(deps): update dependency markdown-it-textual-uml to ^0.17.1 (#26)
renovate[bot] Jan 16, 2024
17626a9
chore(release): 1.0.0-alpha.37 [skip ci]
semantic-release-bot Jan 16, 2024
1b50b20
chore(deps): update all non-major dependencies with stable version (#24)
renovate[bot] Jan 16, 2024
44e2605
fix: remove border color
adamdehaven Jan 16, 2024
4e84b3d
chore(release): 1.0.0-alpha.38 [skip ci]
semantic-release-bot Jan 16, 2024
78ea236
fix(deps): update dependency @kong/icons to ^1.8.13 (#30)
renovate[bot] Jan 23, 2024
4ee41f3
chore(deps): update dependency c8 to v9 (#29)
renovate[bot] Jan 23, 2024
4080a3e
chore(deps): update all non-major dependencies with stable version (#28)
renovate[bot] Jan 23, 2024
0fd7173
chore(release): 1.0.0-alpha.39 [skip ci]
semantic-release-bot Jan 23, 2024
00f46f6
chore(deps): update all non-major dependencies with stable version (#27)
renovate[bot] Jan 23, 2024
630f442
chore: prep for merge to main
adamdehaven Jan 23, 2024
568e0fe
docs: update todo in readme
adamdehaven Jan 23, 2024
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
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist

docs/.vitepress/.temp/
docs/.vitepress/.cache/
docs/.vitepress/dist/
80 changes: 80 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
},
env: {
node: true,
},
plugins: ['vue', 'import', '@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'standard',
],
rules: {
quotes: ['error', 'single', {
avoidEscape: true,
}],
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-empty': 'off',
'padded-blocks': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'max-len': [process.env.NODE_ENV === 'production' ? 'warn' : 'off', {
code: 120,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}],
'space-before-function-paren': 'off',
'vue/attributes-order': ['error', {
alphabetical: true,
}],
'@typescript-eslint/no-explicit-any': 'off',
// Avoids false errors like “'NodeListOf' is not defined”.
'no-undef': 'off',
// Turns off some non-TypeScript rules in favor of their specific TypeScript rules to avoid false negatives:
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
// Ensures ESLint understands that `defineEmits<{ ... }>()` does _not_ fail this rule.
'func-call-spacing': 'off',
'@typescript-eslint/func-call-spacing': 'error',
'@typescript-eslint/consistent-type-imports': ['error', {
prefer: 'type-imports',
fixStyle: 'separate-type-imports',
}],
'vue/no-restricted-static-attribute': ['error',
{
key: 'data-test-id',
message: 'Using "data-test-id" is not allowed. Use "data-testid" instead.',
},
{
key: 'data-tracking-id',
message: 'Using "data-tracking-id" is not allowed. Use "data-testid" instead.',
},
],
'vue/no-restricted-v-bind': ['error',
{
argument: 'data-test-id',
message: 'Using "data-test-id" is not allowed. Use "data-testid" instead.',
},
{
argument: 'data-tracking-id',
message: 'Using "data-tracking-id" is not allowed. Use "data-testid" instead.',
},
],
},
}
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Remove tsconfig
run: rm tsconfig.json

- uses: wagoid/[email protected].4
- uses: wagoid/[email protected].5
with:
configFile: commitlint.config.cjs
51 changes: 47 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
- alpha
- beta

jobs:
run-tests:
Expand All @@ -14,8 +12,7 @@ jobs:

publish:
name: Build and Publish
needs:
- run-tests
needs: [run-tests]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -49,3 +46,49 @@ jobs:
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}

deploy-github-pages:
name: Deploy GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }}
needs: [publish]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
timeout-minutes: 10
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM with Dependencies
uses: ./.github/actions/setup-pnpm-with-dependencies/
with:
force-install: true

- name: Build Sandbox
env:
# Tell the script to use the sandbox directory
USE_SANDBOX: true
run: pnpm run build:sandbox

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload sandbox/dist directory
path: './sandbox/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
- labeled
branches:
- main
- alpha
- beta

# Allow calling manually from GitHub
workflow_dispatch:
Expand Down
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
node_modules
.DS_Store
dist
bin
*.local
bundle-analyzer

# Temp files

.temp
.cache
.idea
.husky

docs/.vitepress/.temp
docs/.vitepress/.cache
docs/.vitepress/cache
docs/.vitepress/dist
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
28 changes: 28 additions & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
extends: [
'stylelint-config-html',
'stylelint-config-recommended-scss',
'stylelint-config-recommended-vue/scss'
],
plugins: [
'stylelint-order',
'@kong/design-tokens/stylelint-plugin',
],
rules: {
'order/properties-alphabetical-order': true,
'unit-disallowed-list': [
['rem', 'em'],
],
// Only allow @kong/design-tokens or `--kong-ui-*` CSS custom properties
'custom-property-pattern': [
"^(kui-).+$",
{
message: "Expected custom property \"%s\" to be sourced from @kong/design-tokens with prefix '--kui-'",
}
],
'@kong/design-tokens/use-proper-token': true,
// Disable the following rules
'custom-property-no-missing-var-function': null,
'no-descending-specificity': null,
}
}
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"yzhang.markdown-all-in-one",
"mrmlnc.vscode-scss"
]
}
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"markdown.extension.toc.levels": "2..3",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"editor.formatOnPaste": true,
"editor.trimAutoWhitespace": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"eslint.format.enable": true,
"eslint.validate": [
"typescript",
"javascript",
"javascriptreact",
"vue"
],
"scss.scannerExclude": [
"**/.git",
"**/bower_components",
]
}
Loading