faucet-pipeline-css 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/{nodejs.yml → tests.yml} +4 -4
- package/CHANGELOG.md +18 -2
- package/README.md +1 -1
- package/lib/index.js +20 -6
- package/lib/make-postcss.js +1 -1
- package/package.json +13 -11
- package/release +1 -1
- package/test/test_basic/faucet.config.js +1 -6
- package/test/test_compact/faucet.config.js +1 -6
- package/test/test_error/faucet.config.js +1 -6
- package/test/test_fingerprinting/faucet.config.js +1 -6
- package/test/test_sourcemap/faucet.config.js +1 -6
- package/test/test_static_integration/faucet.config.js +1 -6
|
@@ -7,12 +7,12 @@ jobs:
|
|
|
7
7
|
strategy:
|
|
8
8
|
matrix:
|
|
9
9
|
node-version:
|
|
10
|
-
- 12.x
|
|
11
10
|
- 14.x
|
|
12
|
-
-
|
|
11
|
+
- 18.x
|
|
12
|
+
- 19.x
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
15
|
-
- uses: actions/setup-node@
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: actions/setup-node@v3
|
|
16
16
|
with:
|
|
17
17
|
node-version: ${{ matrix.node-version }}
|
|
18
18
|
- run: npm install-test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
faucet-pipeline-
|
|
2
|
-
|
|
1
|
+
faucet-pipeline-css version history
|
|
2
|
+
===================================
|
|
3
|
+
|
|
4
|
+
v0.3.0
|
|
5
|
+
------
|
|
6
|
+
|
|
7
|
+
_2023-01-12_
|
|
8
|
+
|
|
9
|
+
Maintenance release to update dependencies; no significant changes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
v0.2.1
|
|
13
|
+
------
|
|
14
|
+
|
|
15
|
+
_2022-02-18_
|
|
16
|
+
|
|
17
|
+
Maintenance release to update dependencies; no significant changes
|
|
18
|
+
|
|
3
19
|
|
|
4
20
|
v0.2.0
|
|
5
21
|
------
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# faucet-pipeline-css
|
|
2
2
|
[](https://www.npmjs.com/package/faucet-pipeline-css)
|
|
3
3
|
|
|
4
|
-
You can find the documentation [here](http://www.faucet-pipeline.org).
|
|
4
|
+
You can find the documentation [here](http://www.faucet-pipeline.org/css).
|
|
5
5
|
|
|
6
6
|
## License
|
|
7
7
|
|
package/lib/index.js
CHANGED
|
@@ -2,13 +2,20 @@ let { abort } = require("faucet-pipeline-core/lib/util");
|
|
|
2
2
|
let path = require("path");
|
|
3
3
|
let makePostCSS = require("./make-postcss");
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return filepaths => Promise.all(bundlers.map(bundle => bundle(filepaths)));
|
|
5
|
+
module.exports = {
|
|
6
|
+
key: "css",
|
|
7
|
+
bucket: "styles",
|
|
8
|
+
plugin: faucetCSS
|
|
10
9
|
};
|
|
11
10
|
|
|
11
|
+
function faucetCSS(config, assetManager, { browsers, compact, sourcemaps } = {}) {
|
|
12
|
+
let bundlers = config.map(bundleConfig => makeBundler(bundleConfig,
|
|
13
|
+
assetManager, { browsers, compact, sourcemaps }));
|
|
14
|
+
|
|
15
|
+
return filepaths => Promise.all(bundlers.
|
|
16
|
+
map(bundler => bundler(filepaths)));
|
|
17
|
+
}
|
|
18
|
+
|
|
12
19
|
function makeBundler(config, assetManager, { browsers, compact, sourcemaps } = {}) {
|
|
13
20
|
let { browserslist, fingerprint } = config;
|
|
14
21
|
|
|
@@ -27,7 +34,14 @@ function makeBundler(config, assetManager, { browsers, compact, sourcemaps } = {
|
|
|
27
34
|
browsers = browsers.defaults;
|
|
28
35
|
}
|
|
29
36
|
|
|
30
|
-
let postCSS = makePostCSS(
|
|
37
|
+
let postCSS = makePostCSS(
|
|
38
|
+
source,
|
|
39
|
+
target,
|
|
40
|
+
assetManager,
|
|
41
|
+
sourcemaps,
|
|
42
|
+
browsers,
|
|
43
|
+
compact
|
|
44
|
+
);
|
|
31
45
|
|
|
32
46
|
let previouslyIncludedFiles;
|
|
33
47
|
|
package/lib/make-postcss.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "faucet-pipeline-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CSS for faucet-pipeline",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,20 +18,22 @@
|
|
|
18
18
|
"url": "https://github.com/faucet-pipeline/faucet-pipeline-css/issues"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://www.faucet-pipeline.org",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">= 14"
|
|
23
|
+
},
|
|
21
24
|
"dependencies": {
|
|
22
|
-
"faucet-pipeline-core": "^
|
|
23
|
-
"postcss": "~8.
|
|
24
|
-
"postcss-discard-comments": "~5.0
|
|
25
|
-
"postcss-import": "~
|
|
25
|
+
"faucet-pipeline-core": "^2.0.0",
|
|
26
|
+
"postcss": "~8.4.12",
|
|
27
|
+
"postcss-discard-comments": "~5.1.0",
|
|
28
|
+
"postcss-import": "~15.1.0",
|
|
26
29
|
"postcss-message-helpers": "~2.0.0",
|
|
27
|
-
"postcss-normalize-whitespace": "~5.0
|
|
30
|
+
"postcss-normalize-whitespace": "~5.1.0"
|
|
28
31
|
},
|
|
29
32
|
"devDependencies": {
|
|
30
|
-
"eslint-config-fnd": "^1.
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"json-diff": "^0.5.2",
|
|
33
|
+
"eslint-config-fnd": "^1.13.0",
|
|
34
|
+
"faucet-pipeline-static": "^2.1.0",
|
|
35
|
+
"json-diff": "^1.0.0",
|
|
34
36
|
"npm-run-all": "^4.1.5",
|
|
35
|
-
"release-util-fnd": "^
|
|
37
|
+
"release-util-fnd": "^3.0.0"
|
|
36
38
|
}
|
|
37
39
|
}
|
package/release
CHANGED