+67
-14
lines changedFilter options
+67
-14
lines changed Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1
+
src/
2
+
test/
3
+
.gitignore
4
+
.nycrc
5
+
.travis.yml
6
+
babel.config.js
7
+
esdoc.json
8
+
index.html
9
+
Makefile.js
10
+
rollup.config.js
11
+
stats.html
12
+
yarn.lock
Original file line number Diff line number Diff line change
@@ -6,6 +6,10 @@ require('shelljs/make');
6
6
config.fatal = true;
7
7
config.verbose = true;
8
8
9
+
const { execFileSync } = require('child_process');
10
+
11
+
const packageJson = require('./package.json');
12
+
9
13
target.all = () => {
10
14
target.clean();
11
15
target.generateTrieJson();
@@ -61,3 +65,29 @@ target.clean = () => {
61
65
'src/opentype/shapers/use.json',
62
66
);
63
67
};
68
+
69
+
/* =============================== Release ================================== */
70
+
71
+
target.releaseNext = () => {
72
+
const version = `${packageJson.version}@next`;
73
+
console.log('Releasing version', version);
74
+
75
+
target.all();
76
+
77
+
execFileSync('yarn', ['publish', '--tag', 'next', '--access', 'public'], { stdio: 'inherit' });
78
+
};
79
+
80
+
target.releaseLatest = async () => {
81
+
const currentBranch = exec('git rev-parse --abbrev-ref HEAD').stdout.trim();
82
+
if (currentBranch !== 'master') {
83
+
console.error('Must be on `master` branch to cut an @latest release.');
84
+
return;
85
+
}
86
+
87
+
const version = `${packageJson.version}@latest`;
88
+
console.log('Releasing version', version);
89
+
90
+
target.all();
91
+
92
+
execFileSync('yarn', ['publish', '--tag', 'latest', '--access', 'public'], { stdio: 'inherit' });
93
+
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
-
"name": "fontkit",
3
-
"version": "1.7.7",
2
+
"name": "@pdf-lib/fontkit",
3
+
"version": "0.0.0",
4
4
"description": "An advanced font engine for Node and the browser",
5
5
"main": "dist/fontkit.umd.js",
6
6
"unpkg": "dist/fontkit.umd.min.js",
@@ -12,17 +12,6 @@
12
12
"test": "mocha",
13
13
"coverage": "cross-env BABEL_ENV=cover nyc mocha"
14
14
},
15
-
"author": "Devon Govett <devongovett@gmail.com>",
16
-
"license": "MIT",
17
-
"keywords": [
18
-
"opentype",
19
-
"font",
20
-
"typography",
21
-
"subset",
22
-
"emoji",
23
-
"glyph",
24
-
"layout"
25
-
],
26
15
"dependencies": {
27
16
"@pdf-lib/brotli": "^0.0.0",
28
17
"@pdf-lib/restructure": "^0.0.0",
@@ -61,5 +50,27 @@
61
50
"rollup-plugin-terser": "^3.0.0",
62
51
"rollup-plugin-visualizer": "^0.9.2",
63
52
"shelljs": "^0.8.3"
64
-
}
53
+
},
54
+
"repository": {
55
+
"type": "git",
56
+
"url": "git://github.com/Hopding/fontkit.git"
57
+
},
58
+
"keywords": [
59
+
"opentype",
60
+
"font",
61
+
"typography",
62
+
"subset",
63
+
"emoji",
64
+
"glyph",
65
+
"layout"
66
+
],
67
+
"author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
68
+
"contributors": [
69
+
"Devon Govett <devongovett@gmail.com> (http://badassjs.com/)"
70
+
],
71
+
"bugs": {
72
+
"url": "https://github.com/Hopding/fontkit/issues"
73
+
},
74
+
"license": "MIT",
75
+
"homepage": "https://github.com/Hopding/fontkit"
65
76
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4