Skip to content

Commit f1b31d5

Browse files
authored
partial builds (#523)
* wip * .poke * finish up * fix * fixes * unpoke * fix * fix * poke * tweak * tweak * fix * unpoke * fix * poke * fix? * wip * wip * wip * wip * wip * wip * clean build * wip * fix * unpoke * fix * fix * poke * fix * fix * fix * unpoke * wip * wip * wip * poke * wip * wip * wip * poke * wip * wip * wip * wip * fixes * unpoke * poke * unpoke * summary * poke * fix * poke * fix * poke * wip * wip * fix typo * wip * wip * fix * wip * wip * wip * poke * fix * poke * unpoke * fmt
1 parent 7bd1c8c commit f1b31d5

21 files changed

+825
-298
lines changed

.github/bin/detect-executable-files/to-github-annotations.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (!fileNames || !fileNames.length) {
3333
}
3434

3535
if (!process.env.GITHUB_ACTIONS) {
36-
console.log(`Unexpected executables:`);
36+
console.log('Unexpected executables:');
3737
fileNames.forEach((f) => {
3838
console.log(`chmod a-x ${f}`);
3939
});
@@ -42,13 +42,13 @@ if (!process.env.GITHUB_ACTIONS) {
4242

4343
fileNames.forEach((f) => {
4444
const annotation = formatGitHubActionAnnotation(
45-
`This file is unexpectedly executable`,
45+
'This file is unexpectedly executable',
4646
'error',
4747
{
4848
file: f,
4949
line: 1,
5050
col: 1,
51-
}
51+
},
5252
);
5353

5454
console.log(annotation);

.github/bin/generate-docs/readme.mjs

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ readmeDoc = readmeDoc.replaceAll('<corsWarning>', corsTemplate);
3535
// Insert "Header" section
3636
readmeDoc = readmeDoc.replace('<header>', `# <humanReadableName> [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]
3737
38-
` + `[<img alt="npm version" src="https://img.shields.io/npm/v/<packageName>.svg" height="20">][npm-url] ` +
38+
` + '[<img alt="npm version" src="https://img.shields.io/npm/v/<packageName>.svg" height="20">][npm-url] ' +
3939
`${
4040
packageJSONInfo.csstools?.cssdbId ?
41-
`[<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/<cssdbId>.svg" height="20">][css-url] ` :
42-
''
41+
'[<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/<cssdbId>.svg" height="20">][css-url] ' :
42+
''
4343
}` +
44-
`[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] ` +
45-
`[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]`);
44+
'[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] ' +
45+
'[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]');
4646

4747
// Insert "Usage" section
4848
readmeDoc = readmeDoc.replace('<usage>', `## Usage
@@ -75,7 +75,7 @@ instructions for:
7575
readmeDoc = readmeDoc.replace('<linkList>', `[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
7676
${
7777
packageJSONInfo.csstools?.cssdbId ?
78-
`[css-url]: https://cssdb.org/#<cssdbId>` :
78+
'[css-url]: https://cssdb.org/#<cssdbId>' :
7979
''
8080
}
8181
[discord]: https://discord.gg/bUadyRwkJS
@@ -98,7 +98,7 @@ readmeDoc = readmeDoc.replaceAll('<specUrl>', packageJSONInfo.csstools.specUrl);
9898
for (const exampleFilePath of exampleFilePaths) {
9999
readmeDoc = readmeDoc.replaceAll(
100100
`<${exampleFilePath}>`,
101-
(await fsp.readFile(path.join('test', 'examples', exampleFilePath), 'utf8')).toString().slice(0, -1) // trim final newline
101+
(await fsp.readFile(path.join('test', 'examples', exampleFilePath), 'utf8')).toString().slice(0, -1), // trim final newline
102102
);
103103
}
104104

.github/bin/license/allowed.mjs

+143-143
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,157 @@
11
const osiApproved = [
2-
"LPPL-1.3c",
3-
"UCL-1.0",
4-
"OSL-2.0",
5-
"AAL",
6-
"AFL-1.1",
7-
"W3C",
8-
"Sleepycat",
9-
"SISSL",
10-
"GPL-3.0-only",
11-
"LiLiQ-P-1.1",
12-
"CERN-OHL-S-2.0",
13-
"BSD-2-Clause",
14-
"ISC",
15-
"LGPL-3.0-only",
16-
"SimPL-2.0",
17-
"QPL-1.0",
18-
"OLDAP-2.8",
19-
"OFL-1.1-RFN",
20-
"SPL-1.0",
21-
"OSET-PL-2.1",
22-
"RPSL-1.0",
23-
"BSD-3-Clause-LBNL",
24-
"OGTSL",
25-
"GPL-3.0",
26-
"CERN-OHL-P-2.0",
27-
"AGPL-3.0-or-later",
28-
"APSL-2.0",
29-
"BSD-1-Clause",
30-
"LGPL-2.0-or-later",
31-
"LGPL-2.0",
32-
"LGPL-2.0+",
33-
"CDDL-1.0",
34-
"Xnet",
35-
"CPL-1.0",
36-
"LGPL-3.0-or-later",
37-
"NASA-1.3",
38-
"RPL-1.1",
39-
"GPL-3.0-or-later",
40-
"Apache-1.1",
41-
"AGPL-3.0-only",
42-
"Artistic-2.0",
43-
"ZPL-2.1",
44-
"Naumen",
45-
"RPL-1.5",
46-
"EFL-1.0",
47-
"MirOS",
48-
"MPL-2.0-no-copyleft-exception",
49-
"LiLiQ-Rplus-1.1",
50-
"AFL-1.2",
51-
"OSL-1.0",
52-
"APSL-1.0",
53-
"CPAL-1.0",
54-
"Unlicense",
55-
"MPL-2.0",
56-
"Entessa",
57-
"AFL-2.1",
58-
"GPL-2.0-only",
59-
"Frameworx-1.0",
60-
"CECILL-2.1",
61-
"CNRI-Python",
62-
"NCSA",
63-
"EUPL-1.1",
64-
"LPL-1.0",
65-
"EPL-1.0",
66-
"OSL-3.0",
67-
"PHP-3.0",
68-
"APL-1.0",
69-
"EUDatagrid",
70-
"Multics",
71-
"OFL-1.1-no-RFN",
72-
"Python-2.0",
73-
"HPND",
74-
"MPL-1.1",
75-
"ECL-1.0",
76-
"LGPL-2.1-or-later",
77-
"APSL-1.1",
78-
"CERN-OHL-W-2.0",
79-
"NTP",
80-
"PHP-3.01",
81-
"OCLC-2.0",
82-
"Zlib",
83-
"CATOSL-1.1",
84-
"LGPL-3.0+",
85-
"CAL-1.0",
86-
"GPL-2.0+",
87-
"GPL-2.0-or-later",
88-
"BSD-2-Clause-Patent",
89-
"MS-RL",
90-
"CUA-OPL-1.0",
91-
"IPA",
92-
"MIT-Modern-Variant",
93-
"0BSD",
94-
"Unicode-DFS-2016",
95-
"Intel",
96-
"AFL-2.0",
97-
"Motosoto",
98-
"VSL-1.0",
99-
"LiLiQ-R-1.1",
100-
"GPL-3.0+",
101-
"MulanPSL-2.0",
102-
"APSL-1.2",
103-
"RSCPL",
104-
"EFL-2.0",
105-
"CAL-1.0-Combined-Work-Exception",
106-
"MS-PL",
107-
"EUPL-1.2",
108-
"Watcom-1.0",
109-
"Jam",
110-
"Nokia",
111-
"OSL-2.1",
112-
"GPL-3.0-with-GCC-exception",
113-
"MIT",
114-
"LGPL-2.1+",
115-
"LGPL-2.1-only",
116-
"ECL-2.0",
117-
"IPL-1.0",
118-
"NGPL",
119-
"Fair",
120-
"LPL-1.02",
121-
"UPL-1.0",
122-
"ZPL-2.0",
123-
"MIT-0",
124-
"LGPL-2.0-only",
125-
"AGPL-3.0",
126-
"EPL-2.0",
127-
"AFL-3.0",
128-
"Artistic-1.0",
129-
"MPL-1.0",
130-
"PostgreSQL",
131-
"OFL-1.1",
132-
"BSD-3-Clause",
133-
"wxWindows",
134-
"LGPL-3.0",
135-
"LGPL-2.1",
136-
"Apache-2.0",
137-
"Artistic-1.0-cl8",
138-
"GPL-2.0",
139-
"BSL-1.0",
140-
"Artistic-1.0-Perl",
141-
"NPOSL-3.0"
2+
'LPPL-1.3c',
3+
'UCL-1.0',
4+
'OSL-2.0',
5+
'AAL',
6+
'AFL-1.1',
7+
'W3C',
8+
'Sleepycat',
9+
'SISSL',
10+
'GPL-3.0-only',
11+
'LiLiQ-P-1.1',
12+
'CERN-OHL-S-2.0',
13+
'BSD-2-Clause',
14+
'ISC',
15+
'LGPL-3.0-only',
16+
'SimPL-2.0',
17+
'QPL-1.0',
18+
'OLDAP-2.8',
19+
'OFL-1.1-RFN',
20+
'SPL-1.0',
21+
'OSET-PL-2.1',
22+
'RPSL-1.0',
23+
'BSD-3-Clause-LBNL',
24+
'OGTSL',
25+
'GPL-3.0',
26+
'CERN-OHL-P-2.0',
27+
'AGPL-3.0-or-later',
28+
'APSL-2.0',
29+
'BSD-1-Clause',
30+
'LGPL-2.0-or-later',
31+
'LGPL-2.0',
32+
'LGPL-2.0+',
33+
'CDDL-1.0',
34+
'Xnet',
35+
'CPL-1.0',
36+
'LGPL-3.0-or-later',
37+
'NASA-1.3',
38+
'RPL-1.1',
39+
'GPL-3.0-or-later',
40+
'Apache-1.1',
41+
'AGPL-3.0-only',
42+
'Artistic-2.0',
43+
'ZPL-2.1',
44+
'Naumen',
45+
'RPL-1.5',
46+
'EFL-1.0',
47+
'MirOS',
48+
'MPL-2.0-no-copyleft-exception',
49+
'LiLiQ-Rplus-1.1',
50+
'AFL-1.2',
51+
'OSL-1.0',
52+
'APSL-1.0',
53+
'CPAL-1.0',
54+
'Unlicense',
55+
'MPL-2.0',
56+
'Entessa',
57+
'AFL-2.1',
58+
'GPL-2.0-only',
59+
'Frameworx-1.0',
60+
'CECILL-2.1',
61+
'CNRI-Python',
62+
'NCSA',
63+
'EUPL-1.1',
64+
'LPL-1.0',
65+
'EPL-1.0',
66+
'OSL-3.0',
67+
'PHP-3.0',
68+
'APL-1.0',
69+
'EUDatagrid',
70+
'Multics',
71+
'OFL-1.1-no-RFN',
72+
'Python-2.0',
73+
'HPND',
74+
'MPL-1.1',
75+
'ECL-1.0',
76+
'LGPL-2.1-or-later',
77+
'APSL-1.1',
78+
'CERN-OHL-W-2.0',
79+
'NTP',
80+
'PHP-3.01',
81+
'OCLC-2.0',
82+
'Zlib',
83+
'CATOSL-1.1',
84+
'LGPL-3.0+',
85+
'CAL-1.0',
86+
'GPL-2.0+',
87+
'GPL-2.0-or-later',
88+
'BSD-2-Clause-Patent',
89+
'MS-RL',
90+
'CUA-OPL-1.0',
91+
'IPA',
92+
'MIT-Modern-Variant',
93+
'0BSD',
94+
'Unicode-DFS-2016',
95+
'Intel',
96+
'AFL-2.0',
97+
'Motosoto',
98+
'VSL-1.0',
99+
'LiLiQ-R-1.1',
100+
'GPL-3.0+',
101+
'MulanPSL-2.0',
102+
'APSL-1.2',
103+
'RSCPL',
104+
'EFL-2.0',
105+
'CAL-1.0-Combined-Work-Exception',
106+
'MS-PL',
107+
'EUPL-1.2',
108+
'Watcom-1.0',
109+
'Jam',
110+
'Nokia',
111+
'OSL-2.1',
112+
'GPL-3.0-with-GCC-exception',
113+
'MIT',
114+
'LGPL-2.1+',
115+
'LGPL-2.1-only',
116+
'ECL-2.0',
117+
'IPL-1.0',
118+
'NGPL',
119+
'Fair',
120+
'LPL-1.02',
121+
'UPL-1.0',
122+
'ZPL-2.0',
123+
'MIT-0',
124+
'LGPL-2.0-only',
125+
'AGPL-3.0',
126+
'EPL-2.0',
127+
'AFL-3.0',
128+
'Artistic-1.0',
129+
'MPL-1.0',
130+
'PostgreSQL',
131+
'OFL-1.1',
132+
'BSD-3-Clause',
133+
'wxWindows',
134+
'LGPL-3.0',
135+
'LGPL-2.1',
136+
'Apache-2.0',
137+
'Artistic-1.0-cl8',
138+
'GPL-2.0',
139+
'BSL-1.0',
140+
'Artistic-1.0-Perl',
141+
'NPOSL-3.0',
142142
];
143143

144144
export const osiApprovedWithCCO = [
145-
"CC0-1.0", // because almost all code here is CC0-1.0
146-
...osiApproved
145+
'CC0-1.0', // because almost all code here is CC0-1.0
146+
...osiApproved,
147147
];
148148

149149
const licenseExceptions = [
150150
{
151151
// see : https://github.com/Fyrd/caniuse/issues/4062
152152
file: 'node_modules/caniuse-lite/package.json',
153153
license: 'CC-BY-4.0',
154-
}
154+
},
155155
];
156156

157157
export function licenseIsOkByException(file, license) {

0 commit comments

Comments
 (0)