Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/acro package #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
vchart-theme:
- packages/vchart-theme/**

# Add 'vchart-theme-utils' label to any change within the 'vchart-theme-utils' package
vchart-theme-utils:
- packages/vchart-theme-utils/**

# Add 'vchart-semi-theme' label to any change within the 'vchart-semi-theme' package
vchart-semi-theme:
- packages/vchart-semi-theme/**

# Add 'vchart-arco-theme' label to any change within the 'vchart-arco-theme' package
vchart-arco-theme:
- packages/vchart-arco-theme/**

# Add 'test' label to any change to packages/*/__tests__/* files within the source dir
test:
- packages/*/__tests__/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
pull-requests: write

steps:
- uses: actions/labeler@master
- uses: actions/labeler@v4
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ Extended themes for VChart

[![npm Version](https://img.shields.io/npm/v/@visactor/vchart-semi-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-semi-theme)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vchart-semi-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-semi-theme)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-theme/blob/main/LICENSE)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-semi-theme/blob/main/LICENSE)

[@visactor/vchart-arco-theme](https://github.com/VisActor/vchart-arco-theme/tree/main/packages/vchart-arco-theme)

[![npm Version](https://img.shields.io/npm/v/@visactor/vchart-arco-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-arco-theme)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vchart-arco-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-arco-theme)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-arco-theme/blob/main/LICENSE)

</div>

Expand Down
12 changes: 9 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ VChart 的扩展主题。

[![npm Version](https://img.shields.io/npm/v/@visactor/vchart-semi-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-semi-theme)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vchart-semi-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-semi-theme)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-theme/blob/main/LICENSE)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-semi-theme/blob/main/LICENSE)

[@visactor/vchart-arco-theme](https://github.com/VisActor/vchart-arco-theme/tree/main/packages/vchart-arco-theme)

[![npm Version](https://img.shields.io/npm/v/@visactor/vchart-arco-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-arco-theme)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vchart-arco-theme.svg)](https://www.npmjs.com/package/@visactor/vchart-arco-theme)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vchart-arco-theme/blob/main/LICENSE)

</div>

Expand Down Expand Up @@ -53,10 +59,10 @@ VChart 的扩展主题。
[npm package](https://www.npmjs.com/package/@visactor/vchart-theme)

```bash
// npm
# npm
npm install @visactor/vchart-theme

// yarn
# yarn
yarn add @visactor/vchart-theme
```

Expand Down
9 changes: 9 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@

"shellCommand": "rush run -p @visactor/vchart-semi-theme -s start"
},
{
"commandKind": "global",

"name": "arco",
"summary": "Start the development server",
"description": "Run this command to start vchart-arco-theme development server",

"shellCommand": "rush run -p @visactor/vchart-arco-theme -s start"
},
{
"name": "change-all",
"commandKind": "global",
Expand Down
167 changes: 157 additions & 10 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion common/scripts/version-policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const writeNextBump = (
const readNextBumpFromChanges = () => {
const changeRoots = [
path.join(__dirname, '../changes/@visactor/vchart-theme'),
path.join(__dirname, '../changes/@visactor/vchart-semi-theme')
path.join(__dirname, '../changes/@visactor/vchart-theme-utils'),
path.join(__dirname, '../changes/@visactor/vchart-semi-theme'),
path.join(__dirname, '../changes/@visactor/vchart-arco-theme')
];

const changeType = [];
Expand Down
9 changes: 9 additions & 0 deletions packages/vchart-arco-theme/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist
build
esm
cjs
node_modules
coverage

# ignore big data files
__tests__/data/*
26 changes: 26 additions & 0 deletions packages/vchart-arco-theme/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
extends: ['@internal/eslint-config/profile/lib'],
overrides: [
{
files: ['**/__tests__/**', '**/*.test.ts'],
// 测试文件允许以下规则
rules: {
'@typescript-eslint/no-empty-function': 'off',
'no-console': 'off',
'dot-notation': 'off',
'promise/catch-or-return': 'off'
}
}
],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.eslint.json',
sourceType: 'module',
ecmaFeatures: {
jsx: true // 让eslint支持jsx语法
}
},
ignorePatterns: ['scripts/**', 'bundler.config.js']
};
Loading
Loading