Skip to content

Commit

Permalink
feat: rc v0.1.0 (#271)
Browse files Browse the repository at this point in the history
## Tool changes

- [x] new `storybook` test framework 
- [x] `eslint` config and plugin update
- [x] `vitest` config update and new `workspace` file

## New stable components

- [x] `bo-avatar` #115 
- [x] `bo-badge`  #117
- [x] `bo-button` #281 
- [x] `bo-card` #123 
- [x] `bo-divider`
- [x] `bo-icon`
- [x] `bo-input` #118 
- [x] `bo-loading-pulse` #116 
- [x] `bo-loading-spinner` #116
- [x] `bo-slot-modal` #128 
- [x] `bo-alert-modal` #128
- [x] `bo-text` #194
  • Loading branch information
mrksbnc authored Dec 31, 2024
1 parent c2ce55c commit b07abef
Show file tree
Hide file tree
Showing 170 changed files with 22,970 additions and 17,365 deletions.
21 changes: 3 additions & 18 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_size = 2
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = false
trim_trailing_whitespace = false

[*.md]
indent_style = tab
trim_trailing_whitespace = true

[*.yaml]
indent_size = 2
indent_style = tab

insert_final_newline = true
trim_trailing_whitespace = true
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHROMATIC_PROJECT_TOKEN="chpt_87e53716b149325"
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CHROMATIC_PROJECT_TOKEN="your_token"
APP_DOCUMENTATION_URL="https://your_documentation_url.com"

45 changes: 0 additions & 45 deletions .eslintrc.cjs

This file was deleted.

16 changes: 11 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
# Enable version updates for npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'

# Enable version updates for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
14 changes: 13 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,20 @@ jobs:
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22

- name: Install dependencies
run: |
npm install
- id: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
path: static
build_command: npm run build-storybook
build_command: npm run build:storybook
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22

- name: Install Dependencies
run: npm install

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22

- name: Install dependencies
run: |
npm ci
npm install
- name: Run tests
run: |
npm run test
24 changes: 17 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
npm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

Expand All @@ -16,12 +20,18 @@ coverage
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*storybook.log
*.tsbuildinfo

.env
!.env.example
*storybook.log

# Storybook build directory
!static
dist
coverage
static
test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
9 changes: 1 addition & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
repos:
- repo: local
hooks:
- id: build-check
name: Build
language: system
entry: npm run build
stages: [pre-commit]
pass_filenames: false

- id: lint
name: Lint
language: system
entry: npm run lint
entry: npm run lint:oxlint
stages: [pre-commit]
pass_filenames: false

Expand Down
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"printWidth": 80,
"singleQuote": true,
"singleAttributePerLine": true,
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"]
}
8 changes: 0 additions & 8 deletions .prettierrc.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions .storybook/bamboo_theme.ts

This file was deleted.

45 changes: 14 additions & 31 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
import type { StorybookConfig } from '@storybook/vue3-vite';
import type { StorybookConfig } from '@storybook/vue3-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-themes',
'@storybook/theming',
'@storybook/addon-coverage',
],
framework: {
name: '@storybook/vue3-vite',
options: {},
},
docs: {},
core: {
disableTelemetry: true,
enableCrashReports: false,
crossOriginIsolated: true,
},
build: {
test: {
disabledAddons: [
'@storybook/addon-docs',
'@storybook/addon-essentials/docs',
],
},
},
};
export default config;
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/vue3-vite',
options: {},
},
}
export default config
6 changes: 0 additions & 6 deletions .storybook/manager.ts

This file was deleted.

32 changes: 4 additions & 28 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
import './storybook.scss';

import '../src/index.css';

import { withThemeByClassName } from '@storybook/addon-themes';
import type { Preview } from '@storybook/vue3';
import type { Preview } from '@storybook/vue3'
import '../src/lib.css'

const preview: Preview = {
parameters: {
layout: 'padded',
docs: {
toc: true,
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
backgrounds: {
default: 'light',
values: [
{ name: 'light', value: '#f0f0f0' },
{ name: 'dark', value: '#333' },
],
},
},
decorators: [
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
}),
],
};
}

export default preview;
export default preview
34 changes: 0 additions & 34 deletions .storybook/storybook.scss

This file was deleted.

Loading

0 comments on commit b07abef

Please sign in to comment.