Skip to content

Commit

Permalink
feat: base (#1)
Browse files Browse the repository at this point in the history
* feat: base
  • Loading branch information
linxianxi authored Aug 18, 2023
1 parent 5550bc9 commit 84e742f
Show file tree
Hide file tree
Showing 42 changed files with 17,985 additions and 685 deletions.
11 changes: 0 additions & 11 deletions .changelogrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['gitmoji'],
extends: ['@commitlint/config-conventional'],
};
3 changes: 3 additions & 0 deletions .dumi/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* {
box-sizing: border-box;
}
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { homepage } from './package.json';

export default defineConfig({
themeConfig: {
name: '@arvinxu/npm-template',
name: 'react-selectable-box',
github: homepage,
},
html2sketch: {},
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: '报告Bug 🐛'
about: 报告 @arvinxu/npm-template 的 bug
about: 报告 react-selectable-box 的 bug
title: '🐛[BUG]'
labels: '🐛 BUG'
assignees: ''
Expand Down Expand Up @@ -31,11 +31,11 @@ assignees: ''
(可在下方 codesandbox 链接中添加你的最小可复现 demo)
-->

[可复现 demo](https://codesandbox.io/s/html2ksetch-demo-m53be?file=/src/Demo.tsx)
<!-- [可复现 demo](https://codesandbox.io/s/html2ksetch-demo-m53be?file=/src/Demo.tsx) -->

### © 版本信息

- @arvinxu/npm-template 版本: [e.g. 1.0.0]
- react-selectable-fast 版本: [e.g. 1.0.0]
- 浏览器环境
- 开发环境 [e.g. mac OS]

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: '功能需求 ✨'
about: @arvinxu/npm-template 的需求或建议
about: react-selectable-box 的需求或建议
title: '👑 [需求]'
labels: '👑 Feature'
assignees: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: '疑问或需要帮助 ❓'
about: @arvinxu/npm-template 使用的疑问或需要帮助
about: react-selectable-box 使用的疑问或需要帮助
title: '🧐[问题]'
labels: '🧐 Question'
assignees: ''
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/contributor-help.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ['master']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

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

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

- name: Install deps
run: pnpm install

- name: Build Pages
run: pnpm run docs:build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: '.doc'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
20 changes: 17 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,29 @@ jobs:
steps:
- uses: actions/checkout@v3

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

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

- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
node-version: '18'
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install deps
run: pnpm install
Expand Down
3 changes: 0 additions & 3 deletions .gitpod.yml

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
lockfile=false
resolution-mode=highest
28 changes: 27 additions & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
module.exports = {
extends: ['semantic-release-config-gitmoji'],
release: {
branches: ['master', 'beta'],
},
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
],
'@semantic-release/npm',
[
'@semantic-release/github',
{
assets: [],
},
],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json'],
message: 'chore(release): ${nextRelease.gitTag} [skip ci]',
},
],
],
};
Loading

0 comments on commit 84e742f

Please sign in to comment.