punchcutter 1.0.32 → 1.0.36
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/.ncurc.json +1 -1
- package/.prettierrc +3 -1
- package/README.md +6 -6
- package/lib/svgMin.js +17 -10
- package/package.json +29 -28
package/.circleci/config.yml
CHANGED
|
@@ -2,13 +2,13 @@ version: 2
|
|
|
2
2
|
jobs:
|
|
3
3
|
build:
|
|
4
4
|
docker:
|
|
5
|
-
- image:
|
|
5
|
+
- image: cimg/node:16.13.2-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 npm@8
|
|
12
12
|
sudo apt-get update -qq
|
|
13
13
|
sudo apt-get install -y -qq build-essential fontforge g++ gcc graphicsmagick python-dev ttfautohint
|
|
14
14
|
npm ci
|
package/.ncurc.json
CHANGED
package/.prettierrc
CHANGED
package/README.md
CHANGED
|
@@ -12,13 +12,13 @@ Build web fonts, glyphs and sprites.
|
|
|
12
12
|
sudo apt-get install fontforge g++ graphicsmagick pngquant ttfautohint
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
2. Install Node
|
|
15
|
+
2. Install Node v16 or higher:
|
|
16
16
|
|
|
17
17
|
```shell
|
|
18
18
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
|
19
19
|
source ~/.bashrc
|
|
20
|
-
nvm install
|
|
21
|
-
nvm alias default
|
|
20
|
+
nvm install v16.13.2
|
|
21
|
+
nvm alias default v16.13.2
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### OS X
|
|
@@ -33,13 +33,13 @@ Build web fonts, glyphs and sprites.
|
|
|
33
33
|
brew install ttfautohint --with-qt
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
2. Install Node
|
|
36
|
+
2. Install Node v16 or higher:
|
|
37
37
|
|
|
38
38
|
```shell
|
|
39
39
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
|
40
40
|
source ~/.bashrc
|
|
41
|
-
nvm install
|
|
42
|
-
nvm alias default
|
|
41
|
+
nvm install v16.13.2
|
|
42
|
+
nvm alias default v16.13.2
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Usage
|
package/lib/svgMin.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
const Promise = require('bluebird');
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const svgo = new SVGO({
|
|
5
|
-
plugins: [
|
|
6
|
-
{
|
|
7
|
-
removeViewBox: false
|
|
8
|
-
}
|
|
9
|
-
]
|
|
10
|
-
});
|
|
2
|
+
const {optimize} = require('svgo');
|
|
11
3
|
|
|
12
4
|
/**
|
|
13
5
|
*
|
|
@@ -15,4 +7,19 @@ const svgo = new SVGO({
|
|
|
15
7
|
* @returns {Promise}
|
|
16
8
|
*/
|
|
17
9
|
module.exports = (data) =>
|
|
18
|
-
|
|
10
|
+
new Promise((resolve) => {
|
|
11
|
+
const result = optimize(data, {
|
|
12
|
+
plugins: [
|
|
13
|
+
{
|
|
14
|
+
name: 'preset-default',
|
|
15
|
+
params: {
|
|
16
|
+
overrides: {
|
|
17
|
+
removeViewBox: false
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
resolve(result.data);
|
|
25
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "punchcutter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "Build fonts",
|
|
5
5
|
"main": "lib/punchcutter.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,52 +21,53 @@
|
|
|
21
21
|
"url": "https://github.com/netbek/punchcutter/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"babel-loader": "8.2.
|
|
24
|
+
"@babel/core": "7.17.2",
|
|
25
|
+
"@babel/eslint-parser": "7.17.0",
|
|
26
|
+
"autoprefixer": "10.4.2",
|
|
27
|
+
"babel-loader": "8.2.3",
|
|
28
28
|
"babel-plugin-lodash": "3.3.4",
|
|
29
29
|
"babel-plugin-transform-class-properties": "6.24.1",
|
|
30
30
|
"bluebird": "3.7.2",
|
|
31
|
-
"chalk": "4.1.
|
|
31
|
+
"chalk": "4.1.2",
|
|
32
32
|
"cheerio": "0.22.0",
|
|
33
33
|
"directory-colorfy": "https://github.com/netbek/directory-colorfy.git#netbek-jsdom-9",
|
|
34
|
-
"eslint": "
|
|
35
|
-
"eslint-config-airbnb": "
|
|
36
|
-
"eslint-config-prettier": "
|
|
34
|
+
"eslint": "8.9.0",
|
|
35
|
+
"eslint-config-airbnb": "19.0.4",
|
|
36
|
+
"eslint-config-prettier": "8.3.0",
|
|
37
37
|
"eslint-plugin-babel": "5.3.1",
|
|
38
38
|
"eslint-plugin-dollar-sign": "1.0.2",
|
|
39
|
-
"eslint-plugin-html": "6.
|
|
40
|
-
"eslint-plugin-import": "2.
|
|
41
|
-
"eslint-plugin-jsdoc": "
|
|
42
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
43
|
-
"eslint-plugin-markdown": "
|
|
44
|
-
"eslint-plugin-prettier": "
|
|
45
|
-
"eslint-plugin-react": "7.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"glob
|
|
39
|
+
"eslint-plugin-html": "6.2.0",
|
|
40
|
+
"eslint-plugin-import": "2.25.4",
|
|
41
|
+
"eslint-plugin-jsdoc": "37.9.0",
|
|
42
|
+
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
43
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
44
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
45
|
+
"eslint-plugin-react": "7.28.0",
|
|
46
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
47
|
+
"fs-extra": "10.0.0",
|
|
48
|
+
"glob": "7.2.0",
|
|
49
|
+
"glob-promise": "4.2.2",
|
|
49
50
|
"grunt": "1.4.1",
|
|
50
51
|
"grunt-webfont": "git+https://github.com/netbek/grunt-webfont.git#netbek-logger-option",
|
|
51
52
|
"lodash": "4.17.21",
|
|
52
53
|
"lodash-webpack-plugin": "0.11.6",
|
|
53
|
-
"node-sass": "
|
|
54
|
+
"node-sass": "7.0.1",
|
|
54
55
|
"nunjucks": "3.2.3",
|
|
55
|
-
"pngquant": "
|
|
56
|
-
"postcss": "
|
|
57
|
-
"prettier": "2.
|
|
56
|
+
"pngquant": "4.0.0",
|
|
57
|
+
"postcss": "8.4.6",
|
|
58
|
+
"prettier": "2.5.1",
|
|
58
59
|
"replace-ext": "2.0.0",
|
|
59
60
|
"spritesmith": "3.4.0",
|
|
60
61
|
"streamifier": "0.1.1",
|
|
61
62
|
"svg2png": "4.1.1",
|
|
62
|
-
"svgo": "
|
|
63
|
-
"svgstore": "
|
|
63
|
+
"svgo": "2.8.0",
|
|
64
|
+
"svgstore": "3.0.1",
|
|
64
65
|
"webpack": "4.46.0"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"chai": "4.3.
|
|
68
|
+
"chai": "4.3.6",
|
|
68
69
|
"chai-as-promised": "7.1.1",
|
|
69
|
-
"glob-promise": "
|
|
70
|
-
"mocha": "
|
|
70
|
+
"glob-promise": "4.2.2",
|
|
71
|
+
"mocha": "9.2.0"
|
|
71
72
|
}
|
|
72
73
|
}
|