-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: @watermark-design/shared first major version
- Loading branch information
1 parent
a181f1d
commit 76c7336
Showing
52 changed files
with
18,804 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,19 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "watermark-design/watermark" | ||
} | ||
], | ||
"commit": false, | ||
"fixed": [["@watermark-design/*"]], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true | ||
} | ||
} |
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,5 @@ | ||
--- | ||
'@watermark-design/shared': major | ||
--- | ||
|
||
first major version |
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,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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,11 @@ | ||
*/build/*.js | ||
*/public | ||
dist | ||
lib | ||
es | ||
playground | ||
cache | ||
.husky/ | ||
lib | ||
*/node_modules | ||
package-lock.json |
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,84 @@ | ||
module.exports = { | ||
// parser: '@typescript-eslint/parser', // 解析器,默认使用Espree | ||
parser: 'vue-eslint-parser', | ||
env: { | ||
// 指定脚本的运行环境。每种环境都有一组特定的预定义全局变量。 | ||
browser: true, // 运行在浏览器 | ||
es2021: true, // 支持es2021 | ||
es6: true, | ||
}, | ||
extends: [ | ||
// 使用的外部代码格式化配置文件 | ||
'semistandard', | ||
'plugin:import/recommended', | ||
'prettier', | ||
'plugin:prettier/recommended', | ||
'plugin:vue/vue3-recommended', | ||
], | ||
plugins: ['import'], | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
ecmaVersion: 12, // ecmaVersion 用来指定支持的 ECMAScript 版本 。默认为 5,即仅支持es5 | ||
sourceType: 'module', | ||
}, | ||
globals: { | ||
// 脚本在执行期间访问的额外的全局变量 | ||
describe: true, | ||
it: true, | ||
after: true, | ||
before: true, | ||
afterEach: true, | ||
beforeEach: true, | ||
__BUILD__: true, | ||
__DEV__: true, | ||
__SIT__: true, | ||
__UAT__: true, | ||
__PROD__: true, | ||
}, | ||
rules: { | ||
// 忽略virtual module | ||
'import/no-unresolved': [ | ||
'error', | ||
{ ignore: ['^virtual:', 'unocss/vite', 'unplugin-vue-define-options/vite'] }, | ||
], | ||
// 启用的规则及其各自的错误级别。0(off) 1(warning) 2(error) | ||
'@typescript-eslint/ban-ts-ignore': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
// '@typescript-eslint/no-unused-vars': [2], | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
}, | ||
], | ||
'space-before-function-paren': 'off', | ||
'vue/attributes-order': 'off', | ||
'vue/one-component-per-file': 'off', | ||
'vue/html-closing-bracket-newline': 'off', | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/multiline-html-element-content-newline': 'off', | ||
'vue/singleline-html-element-content-newline': 'off', | ||
'vue/attribute-hyphenation': 'off', | ||
'vue/require-default-prop': 'off', | ||
'vue/html-self-closing': 'off', | ||
'vue/no-v-html': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'], | ||
}, | ||
}, | ||
}, | ||
}; |
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,32 @@ | ||
--- | ||
name: "🐛 Bug Report (缺陷反馈)" | ||
about: '报告错误以帮助我们改进' | ||
labels: '🐛 Bug' | ||
--- | ||
|
||
<!-- | ||
感谢您为开源做出贡献! | ||
感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: | ||
--> | ||
|
||
### 以前的Issues | ||
|
||
<!-- 如果已存在相关Issues和PR请列举 --> | ||
|
||
### 问题描述 | ||
|
||
<!-- 请描述您的问题 --> | ||
|
||
### 复现步骤 | ||
|
||
<!-- | ||
请提供BUG的复现步骤,如果可以的话请提供 https://codesandbox.io 或其他类似的最小演示。 | ||
--> | ||
|
||
### 环境详情 | ||
|
||
- **`@watermark-design/*` version:** | ||
- **`vue` version:** | ||
- **`react` version:** | ||
- **`react-dom` version:** |
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,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: 🤔 Ask a question(提问和讨论) | ||
url: https://github.com/watermark-design/watermark/discussions | ||
about: Ask questions and discuss with other community members |
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,13 @@ | ||
--- | ||
name: "📝 Documentation (文档相关)" | ||
about: 修复或补充文档 | ||
labels: '📝 Documentation' | ||
--- | ||
|
||
<!-- | ||
感谢您为开源做出贡献! | ||
--> | ||
|
||
## 哪些文档页面需要修复 | ||
|
||
## 需要修改什么来解决问题 |
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,15 @@ | ||
--- | ||
name: '✨ Feature request(新需求)' | ||
about: '提出新的功能需求' | ||
labels: '✨ Feature Request' | ||
--- | ||
|
||
<!-- | ||
感谢您为开源做出贡献! | ||
--> | ||
|
||
## 新功能 | ||
|
||
### 您建议的新功能或更新功能是什么? | ||
|
||
### 为什么要包含此功能? |
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,47 @@ | ||
#name: deploy | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - main | ||
# | ||
#permissions: write-all | ||
# | ||
#jobs: | ||
# deploy: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@4 | ||
# with: | ||
# fetch-depth: 0 | ||
# | ||
# - name: Install Node | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 16 | ||
# | ||
# - name: Install PNPM | ||
# run: npm i pnpm@latest -g | ||
# | ||
# - name: Setup npmrc | ||
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||
# | ||
# - name: setup pnpm config | ||
# run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||
# | ||
# - name: Install Package | ||
# run: pnpm install | ||
# | ||
# - name: Build Package | ||
# run: pnpm build | ||
# | ||
# - name: Build Docs Package | ||
# run: pnpm run docs:build | ||
# | ||
# - name: Deploy Docs | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: docs/.vitepress/dist | ||
# # cname: example.com # if wanna deploy to custom domain |
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,49 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: npm-publish | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get package name | ||
id: package | ||
run: | | ||
echo ::set-output name=name::$(echo ${{ github.event.release.name }} | sed -E 's/^@watermark-design/(.+)@.+$/\1/') | ||
- name: Checkout | ||
uses: actions/checkout@4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install PNPM | ||
run: npm i pnpm@latest -g | ||
|
||
- name: Setup npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||
|
||
- name: setup pnpm config | ||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||
|
||
- name: Install Package | ||
run: pnpm install | ||
|
||
- name: Build Package | ||
run: pnpm run build | ||
|
||
- name: Publish NPM Package | ||
run: | | ||
cd packages/${{ steps.package.outputs.name }} | ||
pnpm publish --no-git-checks | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
Oops, something went wrong.