Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d4291d8
ci: try semantic-release
onemoon May 25, 2023
ca37572
ci: comment jobs condition
onemoon May 25, 2023
10a2d84
fix(release): error of branches
onemoon May 25, 2023
7820070
style: set singleQuote to true
onemoon May 25, 2023
575f96e
docs(rules): add @latest keyword in jsdelivr link
onemoon May 25, 2023
f26de1e
ci: update release
onemoon May 25, 2023
1ddafe9
fix(release): semantic-release plugin error
onemoon May 25, 2023
b75a348
ci: update release config
onemoon May 25, 2023
f637f6e
fix(deps): dependencies error
onemoon May 25, 2023
d4ca52f
fix(deps): dependencies error
onemoon May 25, 2023
590cc81
chore(release): 0.3.0-dev.3 [skip ci]
semantic-release-bot May 25, 2023
53c764f
fix(release): error of release config
onemoon May 25, 2023
c1005c9
chore(release): 0.3.0-dev.4 [skip ci]
semantic-release-bot May 25, 2023
03296e8
fix(release): assets of @semantic-release/github
onemoon May 25, 2023
2ea5d38
chore(release): 0.3.0-dev.5 [skip ci]
semantic-release-bot May 25, 2023
740bf0e
fix(release): release error caused by empty file
onemoon May 25, 2023
a93008f
chore(release): 0.3.0-dev.6 [skip ci]
semantic-release-bot May 25, 2023
359ba03
ci(release): update release config
onemoon May 25, 2023
328d403
fix(release): config of semantic-release/npm
onemoon May 25, 2023
60aa075
chore(release): 0.3.0-dev.7 [skip ci]
semantic-release-bot May 25, 2023
ad1b28e
ci(release): update release config
onemoon May 25, 2023
d309f86
Merge branch 'main' into dev
onemoon May 25, 2023
bddc73b
fix(release): release trigger error
onemoon May 25, 2023
176c133
Merge branch 'main' into dev
onemoon May 25, 2023
c6d0023
fix(release): config error
onemoon May 25, 2023
6a6122b
Merge branch 'main' into dev
onemoon May 25, 2023
2b250f0
chore: update package.json
onemoon May 25, 2023
e069093
chore(package): update the config of package.json
onemoon May 25, 2023
711a703
Merge branch 'main' into dev
onemoon May 26, 2023
34131cb
docs: update
onemoon May 26, 2023
2124570
chore(lint): add commitlint and update lint scope
onemoon May 26, 2023
b9d282d
chore(commit,config): combine the config of commitlint and cz-git
onemoon May 26, 2023
5514c20
docs(providers): add npm links and limit files of npm package
onemoon May 26, 2023
ced7799
Merge branch 'main' into dev
onemoon May 26, 2023
f08c93b
ci(release): update release config
onemoon May 26, 2023
6101817
Merge branch 'main' into dev
onemoon May 26, 2023
581c728
fix(providers): error of the link of providers
onemoon May 26, 2023
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: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ A private collection of `clash` rule providers. :key::unlock:
### classical

```md
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.classical.yaml
https://cdn.jsdelivr.net/npm/rule-sets@latest/dist/rule-providers/lp-private.classical.yaml

https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.classical.yaml
https://cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/dist/rule-providers/lp-private.classical.yaml
```

### domain

```md
https:/cdn.jsdelivr.net/npm/rule-sets@latest/src/black-list/lp-private.domain.yaml
https://cdn.jsdelivr.net/npm/rule-sets@latest/dist/rule-providers/lp-private.domain.yaml

https:/cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/src/black-list/lp-private.domain.yaml
https://cdn.jsdelivr.net/gh/onemoon/rule-sets@latest/dist/rule-providers/lp-private.domain.yaml
```

## Software
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
},
"files": [
"dist",
"src",
"docs",
"package.json",
"LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export function clean() {
}

export function build() {
return src('src/black-list/**/*.yaml').pipe(dest('dist/rule-sets'));
return src('src/black-list/**/*.yaml').pipe(dest('dist/rule-providers'));
}
9 changes: 6 additions & 3 deletions scripts/update-links.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { extname, join } from 'path';

// Paths
const directoryPath = './';
const blackListPath = './src/black-list';
const blackListPath = './src/rule-providers';
const packagePath = 'package.json';
const readme = 'README.md';

Expand All @@ -31,8 +31,11 @@ const ruleSetFile = readdirSync(blackListPath).filter(
const linkList = ruleSetFile.map((fileName) => {
return {
type: getType(fileName),
links: keys.map((key) =>
join(rootEndpoint, key, projectName, blackListPath, fileName)
links: keys.map(
(key) =>
new URL(
join(rootEndpoint, key, projectName, 'dist/rule-providers', fileName)
).href
),
};
});
Expand Down