Skip to content

Commit 0207595

Browse files
committed
modify use vite build
1 parent bba883a commit 0207595

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2891
-6065
lines changed

.commitlintrc.cjs

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// .commitlintrc.js
2+
/** @type {import('cz-git').UserConfig} */
3+
module.exports = {
4+
rules: {
5+
// @see: https://commitlint.js.org/#/reference-rules
6+
},
7+
prompt: {
8+
alias: { fd: 'docs: fix typos' },
9+
messages: {
10+
type: 'Select the type of change that you\'re committing:',
11+
scope: 'Denote the SCOPE of this change (optional):',
12+
customScope: 'Denote the SCOPE of this change:',
13+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
14+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
15+
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
16+
footerPrefixesSelect: 'Select the ISSUES type of changeList by this change (optional):',
17+
customFooterPrefix: 'Input ISSUES prefix:',
18+
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
19+
generatingByAI: 'Generating your AI commit subject...',
20+
generatedSelectByAI: 'Select suitable subject by AI generated:',
21+
confirmCommit: 'Are you sure you want to proceed with the commit above?'
22+
},
23+
types: [
24+
{ value: 'feat', name: 'feat: A new feature', emoji: ':sparkles:' },
25+
{ value: 'fix', name: 'fix: A bug fix', emoji: ':bug:' },
26+
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' },
27+
{ value: 'docs', name: 'docs: Documentation only changes', emoji: ':memo:' },
28+
{ value: 'test', name: 'test: Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' },
29+
{ value: 'revert', name: 'revert: Reverts a previous commit', emoji: ':rewind:' }
30+
],
31+
useEmoji: false,
32+
emojiAlign: 'center',
33+
useAI: false,
34+
aiNumber: 1,
35+
themeColorCode: '',
36+
scopes: [],
37+
allowCustomScopes: true,
38+
allowEmptyScopes: true,
39+
customScopesAlign: 'bottom',
40+
customScopesAlias: 'custom',
41+
emptyScopesAlias: 'empty',
42+
upperCaseSubject: false,
43+
markBreakingChangeMode: false,
44+
allowBreakingChanges: ['feat', 'fix'],
45+
breaklineNumber: 100,
46+
breaklineChar: '|',
47+
skipQuestions: [],
48+
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
49+
customIssuePrefixAlign: 'top',
50+
emptyIssuePrefixAlias: 'skip',
51+
customIssuePrefixAlias: 'custom',
52+
allowCustomIssuePrefix: true,
53+
allowEmptyIssuePrefix: true,
54+
confirmColorize: true,
55+
maxHeaderLength: Infinity,
56+
maxSubjectLength: Infinity,
57+
minSubjectLength: 0,
58+
scopeOverrides: undefined,
59+
defaultBody: '',
60+
defaultIssues: '',
61+
defaultScope: '',
62+
defaultSubject: ''
63+
}
64+
}

.cz-config.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test on Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
push:
7+
tags:
8+
- 'v*'
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '18'
21+
cache: 'yarn'
22+
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Run tests
27+
run: yarn test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
node_modules
55

66
# builds
7-
build
87
dist
98
example/storybook-static/
109
.rpt2_cache

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: node_js
22
node_js:
3-
- 12
4-
- 10
3+
- 18

0 commit comments

Comments
 (0)