-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.package-list.js
53 lines (48 loc) · 1.54 KB
/
.package-list.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// @ts-check
/*
* This file is used by `./scripts/update-package-list`
*/
/** @type {import("./scripts/update-package-list/index.mjs").GetVersionLinkFn} */
function createNpmBadge(data) {
const npmBadge = `![npm](https://img.shields.io/npm/v/${data.name}.svg)`;
return `[${npmBadge}](https://www.npmjs.com/package/${data.name})`;
}
/** @type {import("./scripts/update-package-list/index.mjs").GetDependenciesLinkFn} */
function createLibrariesioBadge(data) {
return `![Dependencies Status](https://img.shields.io/librariesio/release/npm/${data.name})`;
}
/** @type {import("./scripts/update-package-list/index.mjs").HeaderTable} */
const list = {
'packages': {
header: 'Packages',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'packages/cli': {
header: 'CLI',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'packages/cli-utils': {
header: 'CLI Utilities',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'packages/ts-utils': {
header: 'TypeScript Utilities',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'packages/ts-type-utils': {
header: 'TypeScript Type Utilities',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'packages/jest-matchers': {
header: 'Jest Matchers',
getVersionLink: createNpmBadge,
getDependenciesLink: createLibrariesioBadge,
},
'actions': 'GitHub Actions',
};
module.exports = list;