Skip to content

Commit c171553

Browse files
FNDmoonglum
authored andcommitted
Release 1.2.0
upgraded dependencies: switching to new plugin API, though that's not strictly necessary thanks to backwards compatibility (i.e. there shouldn't be any user-facing issues)
1 parent eb83da2 commit c171553

File tree

18 files changed

+38
-93
lines changed

18 files changed

+38
-93
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
node-version:
10-
- 8.x
10+
- 10.x
1111
- 12.x
1212
steps:
1313
- uses: actions/checkout@v1

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
faucet-pipeline-core version history
2-
====================================
1+
faucet-pipeline-static version history
2+
======================================
3+
4+
5+
v1.2.0
6+
------
7+
8+
_2020-03-17_
9+
10+
maintenance release to update dependencies; no significant changes
311

412

513
v1.1.0
@@ -16,6 +24,7 @@ improvements for developers:
1624
* updated dev dependencies
1725
* Add license and CoC file
1826

27+
1928
v1.0.0
2029
------
2130

index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ let FileFinder = require("faucet-pipeline-core/lib/util/files/finder");
55
let readFile = promisify(require("fs").readFile);
66
let stat = promisify(require("fs").stat);
77

8-
module.exports = (config, assetManager, { compact } = {}) => {
8+
module.exports = {
9+
key: "static",
10+
bucket: "static",
11+
plugin: faucetStatic
12+
};
13+
14+
function faucetStatic(config, assetManager, { compact } = {}) {
915
let copiers = config.map(copyConfig =>
1016
makeCopier(copyConfig, assetManager, { compact }));
1117

1218
return filepaths => Promise.all(copiers.map(copy => copy(filepaths)));
13-
};
19+
}
1420

1521
function makeCopier(copyConfig, assetManager, { compact } = {}) {
1622
let source = assetManager.resolvePath(copyConfig.source);

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-static",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "static files for faucet-pipeline",
55
"main": "index.js",
66
"scripts": {
@@ -20,15 +20,15 @@
2020
},
2121
"homepage": "https://www.faucet-pipeline.org",
2222
"dependencies": {
23-
"faucet-pipeline-core": "^1.2.1"
23+
"faucet-pipeline-core": "^1.4.0"
2424
},
2525
"devDependencies": {
2626
"eslint-config-fnd": "^1.8.0",
2727
"imagemin-mozjpeg": "^8.0.0",
2828
"imagemin-pngquant": "^8.0.0",
29-
"imagemin-svgo": "^7.0.0",
29+
"imagemin-svgo": "^7.1.0",
3030
"json-diff": "^0.5.4",
3131
"npm-run-all": "^4.1.5",
32-
"release-util-fnd": "^1.1.1"
32+
"release-util-fnd": "^2.0.0"
3333
}
3434
}

test/test_basic/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,5 @@ module.exports = {
66
source: "./src",
77
target: "./dist"
88
}],
9-
plugins: {
10-
static: {
11-
plugin: path.resolve("../.."),
12-
bucket: "static"
13-
}
14-
}
9+
plugins: [path.resolve(__dirname, "../..")]
1510
};

test/test_compact_custom/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ module.exports = {
99
svg: require("imagemin-svgo")()
1010
}
1111
}],
12-
plugins: {
13-
static: {
14-
plugin: path.resolve("../.."),
15-
bucket: "static"
16-
}
17-
}
12+
plugins: [path.resolve(__dirname, "../..")]
1813
};

test/test_compact_images/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@ module.exports = {
77
target: "./dist",
88
compact: "images"
99
}],
10-
plugins: {
11-
static: {
12-
plugin: path.resolve("../.."),
13-
bucket: "static"
14-
}
15-
}
10+
plugins: [path.resolve(__dirname, "../..")]
1611
};

test/test_compact_undefined/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,5 @@ module.exports = {
66
source: "./src",
77
target: "./dist"
88
}],
9-
plugins: {
10-
static: {
11-
plugin: path.resolve("../.."),
12-
bucket: "static"
13-
}
14-
}
9+
plugins: [path.resolve(__dirname, "../..")]
1510
};

test/test_fingerprint/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ module.exports = {
99
manifest: {
1010
target: "./dist/manifest.json"
1111
},
12-
plugins: {
13-
static: {
14-
plugin: path.resolve("../.."),
15-
bucket: "static"
16-
}
17-
}
12+
plugins: [path.resolve(__dirname, "../..")]
1813
};

test/test_key_config/faucet.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,5 @@ module.exports = {
1010
target: "./dist/manifest.json",
1111
key: (f, targetDir) => path.relative(targetDir, f)
1212
},
13-
plugins: {
14-
static: {
15-
plugin: path.resolve("../.."),
16-
bucket: "static"
17-
}
18-
}
13+
plugins: [path.resolve(__dirname, "../..")]
1914
};

0 commit comments

Comments
 (0)