-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,421 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,64 @@ | ||
name: Release - CI | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
types: | ||
- manual-trigger | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
release: | ||
release: | ||
name: Job Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.13.1' | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: yarn build:lib | ||
- run: yarn test:unit | ||
- run: yarn test:package | ||
- name: Release | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.15.0 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.12 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build library | ||
run: pnpm build | ||
|
||
# Deploy Pages | ||
- uses: actions/configure-pages@v2 | ||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: docs/.vitepress/dist | ||
- name: Deploy | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,7 @@ pnpm-debug.log* | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# vitepress build output | ||
docs/.vitepress/dist | ||
docs/.vitepress/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
const path = require('path'); | ||
import { join, resolve } from "path"; | ||
|
||
const baseUrl = path.join(__dirname, '..', '..'); | ||
const baseUrl = join(__dirname, "..", ".."); | ||
|
||
exports.alias = { | ||
'@': path.resolve(baseUrl, 'src'), | ||
'@root': path.resolve(baseUrl), | ||
'@api': path.resolve(baseUrl, 'src/api'), | ||
'@assets': path.resolve(baseUrl, 'src/assets'), | ||
'@styles': path.resolve(baseUrl, 'src/styles'), | ||
'@components': path.resolve(baseUrl, 'src/components'), | ||
'@composables': path.resolve(baseUrl, 'src/composables'), | ||
'@layouts': path.resolve(baseUrl, 'src/layouts'), | ||
'@modules': path.resolve(baseUrl, 'src/modules'), | ||
'@pages': path.resolve(baseUrl, 'src/pages'), | ||
'@plugins': path.resolve(baseUrl, 'src/plugins'), | ||
'@router': path.resolve(baseUrl, 'src/router'), | ||
'@services': path.resolve(baseUrl, 'src/services'), | ||
'@settings': path.resolve(baseUrl, 'configs', 'settings'), | ||
'@utils': path.resolve(baseUrl, 'src/utils'), | ||
export const alias = { | ||
"@": resolve(baseUrl, "src"), | ||
"@root": resolve(baseUrl), | ||
"@api": resolve(baseUrl, "src/api"), | ||
"@assets": resolve(baseUrl, "src/assets"), | ||
"@styles": resolve(baseUrl, "src/styles"), | ||
"@components": resolve(baseUrl, "src/components"), | ||
"@composables": resolve(baseUrl, "src/composables"), | ||
"@layouts": resolve(baseUrl, "src/layouts"), | ||
"@modules": resolve(baseUrl, "src/modules"), | ||
"@pages": resolve(baseUrl, "src/pages"), | ||
"@plugins": resolve(baseUrl, "src/plugins"), | ||
"@router": resolve(baseUrl, "src/router"), | ||
"@services": resolve(baseUrl, "src/services"), | ||
"@settings": resolve(baseUrl, "configs", "settings"), | ||
"@utils": resolve(baseUrl, "src/utils"), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { alias } from "../../configs/project/alias-config"; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "Experiment UI", | ||
description: "Experiment UI - UI Library write for Vue 3", | ||
base: "/experiment-ui/", | ||
head: [ | ||
[ | ||
'script', | ||
{ | ||
src: 'https://kit.fontawesome.com/1e91b4a459.js' | ||
} | ||
], | ||
], | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Components', link: '/components/index.md' } | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: 'Components', | ||
link: '/components/index.md', | ||
items: [ | ||
{ text: 'Atoms', items: [{ text: 'Button', link: '/components/atoms/button.md' }] }, | ||
{ text: 'Molecules' }, | ||
{ text: 'Organism' }, | ||
] | ||
}, | ||
], | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } | ||
] | ||
}, | ||
vite: { | ||
resolve: { | ||
alias, | ||
}, | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import DefaultTheme from 'vitepress/theme' | ||
import '@styles/index.scss' | ||
|
||
export default DefaultTheme |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.