Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 9f18cf0

Browse files
feat(providers): add new jsdelivr links (#14)
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
1 parent 78b8617 commit 9f18cf0

7 files changed

Lines changed: 1182 additions & 258 deletions

File tree

.commitlintrc.cjs

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// .commitlintrc.js
2+
/** @type {import('cz-git').UserConfig} */
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional'],
5+
rules: {
6+
// @see: https://commitlint.js.org/#/reference-rules
7+
},
8+
prompt: {
9+
alias: { fd: 'docs: fix typos' },
10+
messages: {
11+
type: "Select the type of change that you're committing:",
12+
scope: 'Denote the SCOPE of this change (optional):',
13+
customScope: 'Denote the SCOPE of this change:',
14+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
15+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
16+
breaking:
17+
'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
18+
footerPrefixesSelect:
19+
'Select the ISSUES type of changeList by this change (optional):',
20+
customFooterPrefix: 'Input ISSUES prefix:',
21+
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
22+
generatingByAI: 'Generating your AI commit subject...',
23+
generatedSelectByAI: 'Select suitable subject by AI generated:',
24+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
25+
},
26+
types: [
27+
{
28+
value: 'feat',
29+
name: 'feat: ✨ A new feature',
30+
emoji: ':sparkles:',
31+
},
32+
{ value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },
33+
{
34+
value: 'docs',
35+
name: 'docs: 📝 Documentation only changes',
36+
emoji: ':memo:',
37+
},
38+
{
39+
value: 'style',
40+
name: 'style: 💄 Changes that do not affect the meaning of the code',
41+
emoji: ':lipstick:',
42+
},
43+
{
44+
value: 'refactor',
45+
name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',
46+
emoji: ':recycle:',
47+
},
48+
{
49+
value: 'perf',
50+
name: 'perf: ⚡️ A code change that improves performance',
51+
emoji: ':zap:',
52+
},
53+
{
54+
value: 'test',
55+
name: 'test: ✅ Adding missing tests or correcting existing tests',
56+
emoji: ':white_check_mark:',
57+
},
58+
{
59+
value: 'build',
60+
name: 'build: 📦️ Changes that affect the build system or external dependencies',
61+
emoji: ':package:',
62+
},
63+
{
64+
value: 'ci',
65+
name: 'ci: 🎡 Changes to our CI configuration files and scripts',
66+
emoji: ':ferris_wheel:',
67+
},
68+
{
69+
value: 'chore',
70+
name: "chore: 🔨 Other changes that don't modify src or test files",
71+
emoji: ':hammer:',
72+
},
73+
{
74+
value: 'revert',
75+
name: 'revert: ⏪️ Reverts a previous commit',
76+
emoji: ':rewind:',
77+
},
78+
],
79+
useEmoji: false,
80+
emojiAlign: 'center',
81+
useAI: false,
82+
aiNumber: 1,
83+
themeColorCode: '',
84+
scopes: [
85+
'rules',
86+
'providers',
87+
'commit',
88+
'release',
89+
'deps',
90+
'package',
91+
'lint',
92+
'config',
93+
],
94+
enableMultipleScopes: true,
95+
scopeEnumSeparator: "," ,
96+
allowCustomScopes: true,
97+
allowEmptyScopes: true,
98+
customScopesAlign: 'bottom',
99+
customScopesAlias: 'custom',
100+
emptyScopesAlias: 'empty',
101+
upperCaseSubject: false,
102+
markBreakingChangeMode: false,
103+
allowBreakingChanges: ['feat', 'fix'],
104+
breaklineNumber: 100,
105+
breaklineChar: '|',
106+
skipQuestions: [],
107+
issuePrefixes: [
108+
{ value: 'closed', name: 'closed: ISSUES has been processed' },
109+
],
110+
customIssuePrefixAlign: 'top',
111+
emptyIssuePrefixAlias: 'skip',
112+
customIssuePrefixAlias: 'custom',
113+
allowCustomIssuePrefix: true,
114+
allowEmptyIssuePrefix: true,
115+
confirmColorize: true,
116+
maxHeaderLength: Infinity,
117+
maxSubjectLength: Infinity,
118+
minSubjectLength: 0,
119+
scopeOverrides: undefined,
120+
defaultBody: '',
121+
defaultIssues: '',
122+
defaultScope: '',
123+
defaultSubject: '',
124+
},
125+
};

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1} --verbose

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,49 @@
11
# Rule sets
22

3-
## jsdelivr link of Rule sets
3+
A private collection of `clash` rule providers. :key::unlock:
44

5-
### Classical
5+
## jsdelivr link of rule providers
6+
7+
### classical
68

79
```md
10+
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.classical.yaml
11+
812
https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.classical.yaml
913
```
1014

11-
### Domain
15+
### domain
1216

1317
```md
18+
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.domain.yaml
19+
1420
https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.domain.yaml
1521
```
1622

1723
## Software
1824

19-
* [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg)
25+
- [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg)
2026

21-
## Configuration and Wiki
27+
## How to
2228

23-
* [Clash wiki](https://github.com/Dreamacro/clash/wiki)
29+
1. Open `Clash for Windows` software.
30+
2. Select `Settings` from the left sidebar.
31+
3. Scroll to `Profiles` and click the `Edit` button to open the parsers file, and then edit it [ [Config wiki](https://docs.cfw.lbyczf.com/contents/parser.html#%E8%BF%9B%E9%98%B6%E6%96%B9%E6%B3%95-javascript) ]
2432

25-
* [Clash for Windows Doc](https://docs.cfw.lbyczf.com/)
33+
## Configuration and Wiki
2634

27-
* [Clash for Windows 配置文件预处理](https://docs.cfw.lbyczf.com/contents/parser.html#%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82)
35+
- [Clash wiki](https://github.com/Dreamacro/clash/wiki)
2836

29-
* [什么是 rule-provider、proxy-provider?怎么用?clash 分流规则终极使用方法,还支持 clash、openclash、clash for window, Stash, ClashX Pro 客户端](https://www.jamesdailylife.com/rule-proxy-provider)
37+
- [Clash for Windows Doc](https://docs.cfw.lbyczf.com/)
3038

31-
* [jsdelivr Github](https://www.jsdelivr.com/documentation#id-github)
39+
- [Clash for Windows 配置文件预处理](https://docs.cfw.lbyczf.com/contents/parser.html#%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82)
3240

33-
* [parsers config](https://docs.cfw.lbyczf.com/contents/parser.html#%E8%BF%9B%E9%98%B6%E6%96%B9%E6%B3%95-javascript)
41+
- [什么是 rule-provider、proxy-provider?怎么用?clash 分流规则终极使用方法,还支持 clash、openclash、clash for window, Stash, ClashX Pro 客户端](https://www.jamesdailylife.com/rule-proxy-provider)
3442

35-
## How to
43+
- [jsdelivr Github](https://www.jsdelivr.com/documentation#id-github)
3644

37-
1. Open `Clash for Windows` software.
38-
2. Select `Settings` from the left sidebar.
39-
3. Scroll to `Profiles` and click the `Edit` button to open the parsers file, and then edit it [ [Config wiki](https://docs.cfw.lbyczf.com/contents/parser.html#%E8%BF%9B%E9%98%B6%E6%96%B9%E6%B3%95-javascript) ]
45+
- [parsers config](https://docs.cfw.lbyczf.com/contents/parser.html#%E8%BF%9B%E9%98%B6%E6%96%B9%E6%B3%95-javascript)
4046

41-
### - Doc Help
47+
### Doc Help
4248

43-
[Markdown guide](https://www.markdownguide.org/)
49+
[Markdown guide](https://www.markdownguide.org/)

cz.config.cjs

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

0 commit comments

Comments
 (0)