punchcutter 2.0.12 → 2.0.14
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/.circleci/config.yml +2 -2
- package/lib/buildJsFont.js +7 -2
- package/package.json +9 -13
package/.circleci/config.yml
CHANGED
|
@@ -2,13 +2,13 @@ version: 2
|
|
|
2
2
|
jobs:
|
|
3
3
|
build:
|
|
4
4
|
docker:
|
|
5
|
-
- image: cimg/node:
|
|
5
|
+
- image: cimg/node:20.10.0-browsers
|
|
6
6
|
steps:
|
|
7
7
|
- checkout
|
|
8
8
|
- run:
|
|
9
9
|
name: Install dependencies
|
|
10
10
|
command: |
|
|
11
|
-
sudo npm install -g bower grunt-cli gulp-cli
|
|
11
|
+
sudo npm install -g bower grunt-cli gulp-cli
|
|
12
12
|
sudo apt-get update -qq
|
|
13
13
|
sudo apt-get install -y -qq build-essential fontforge g++ gcc graphicsmagick python3-dev ttfautohint
|
|
14
14
|
npm ci
|
package/lib/buildJsFont.js
CHANGED
|
@@ -16,6 +16,10 @@ const svgMin = require('./svgMin');
|
|
|
16
16
|
module.exports = function (config) {
|
|
17
17
|
console.log(`Building JS font: ${chalk.cyan(config.name)}`);
|
|
18
18
|
|
|
19
|
+
const {
|
|
20
|
+
build: {idTransform = (id) => id}
|
|
21
|
+
} = config;
|
|
22
|
+
|
|
19
23
|
return loadFiles(config.src)
|
|
20
24
|
.then(function (files) {
|
|
21
25
|
return Promise.mapSeries(files, function (file) {
|
|
@@ -27,8 +31,9 @@ module.exports = function (config) {
|
|
|
27
31
|
const map = {};
|
|
28
32
|
|
|
29
33
|
_.forEach(files, function (file) {
|
|
30
|
-
const
|
|
31
|
-
|
|
34
|
+
const basename = idTransform(
|
|
35
|
+
path.basename(file.path, path.extname(file.path))
|
|
36
|
+
);
|
|
32
37
|
const {data} = file;
|
|
33
38
|
|
|
34
39
|
map[basename] = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "punchcutter",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"engines": {
|
|
5
|
-
"node": "20.10.0",
|
|
6
|
-
"npm": "10.2.3"
|
|
7
|
-
},
|
|
3
|
+
"version": "2.0.14",
|
|
8
4
|
"description": "Build fonts",
|
|
9
5
|
"main": "lib/punchcutter.js",
|
|
10
6
|
"repository": {
|
|
@@ -25,16 +21,16 @@
|
|
|
25
21
|
"url": "https://github.com/netbek/punchcutter/issues"
|
|
26
22
|
},
|
|
27
23
|
"dependencies": {
|
|
28
|
-
"autoprefixer": "10.4.
|
|
24
|
+
"autoprefixer": "10.4.17",
|
|
29
25
|
"bluebird": "3.7.2",
|
|
30
26
|
"chalk": "4.1.2",
|
|
31
27
|
"cheerio": "0.22.0",
|
|
32
28
|
"directory-colorfy": "https://github.com/netbek/directory-colorfy.git#netbek-jsdom-9",
|
|
33
29
|
"eslint": "8.56.0",
|
|
34
|
-
"eslint-config-prettier": "
|
|
35
|
-
"eslint-plugin-prettier": "
|
|
36
|
-
"espree": "
|
|
37
|
-
"fs-extra": "
|
|
30
|
+
"eslint-config-prettier": "9.1.0",
|
|
31
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
32
|
+
"espree": "10.0.0",
|
|
33
|
+
"fs-extra": "11.2.0",
|
|
38
34
|
"globby": "9.2.0",
|
|
39
35
|
"grunt": "1.6.1",
|
|
40
36
|
"grunt-webfont": "git+https://github.com/netbek/grunt-webfont.git#netbek-logger-option",
|
|
@@ -42,15 +38,15 @@
|
|
|
42
38
|
"node-sass": "9.0.0",
|
|
43
39
|
"nunjucks": "3.2.4",
|
|
44
40
|
"postcss": "8.4.33",
|
|
45
|
-
"prettier": "2.
|
|
41
|
+
"prettier": "3.2.4",
|
|
46
42
|
"replace-ext": "2.0.0",
|
|
47
|
-
"sharp": "0.33.
|
|
43
|
+
"sharp": "0.33.2",
|
|
48
44
|
"spritesmith": "3.4.1",
|
|
49
45
|
"svgo": "2.8.0",
|
|
50
46
|
"svgstore": "3.0.1"
|
|
51
47
|
},
|
|
52
48
|
"devDependencies": {
|
|
53
|
-
"chai": "4.4.
|
|
49
|
+
"chai": "4.4.1",
|
|
54
50
|
"chai-as-promised": "7.1.1",
|
|
55
51
|
"mocha": "9.2.2"
|
|
56
52
|
}
|