mathjax-newcm-font
Version:
MathJax-Newcm font for MathJax v4
89 lines (88 loc) • 4.87 kB
JSON
{
"name": "mathjax-newcm-font",
"version": "4.0.0-beta.7",
"description": "MathJax-Newcm font for MathJax v4",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/mathjax/MathJax-fonts/"
},
"keywords": [
"MathJax",
"fonts",
"MathJax-Newcm"
],
"files": [
"def/*.ts",
"cjs",
"mjs",
"chtml",
"chtml.js",
"svg",
"svg.js",
"tex-mml-*",
"tsconfig",
"tsconfig.json",
"examples/chtml.html",
"examples/svg.html"
],
"type": "module",
"exports": {
"./js/*": {
"import": "./mjs/*",
"require": "./cjs/*"
},
"./*": "./*"
},
"scripts": {
"=============================================================================== log": "",
"log:msg": "log() { echo \\\\033[32m\\\\xE2\\\\x96\\\\xB6 $1\\\\033[0m; }; log",
"log:header": "log() { echo \\\\033[34m=============; echo $1; echo =============\\\\033[0m; }; log",
"=============================================================================== clean": "",
"bin:rm": "node --no-warnings ../bin/rm.js",
"clear:dirs": "clear() { pnpm bin:rm ts/* def/*.js build $1 $2 $3 $4; }; clear",
"clear:tables": "clear() { pnpm -s log:msg \"Clearing $1 table directory\"; pnpm -s bin:rm tables-$1; }; clear",
"clear:mod": "clear() { pnpm -s log:msg \"Clearing $1 directories\"; pnpm -s clear:dirs $1 $2 $3 $4; }; clear",
"clean:cjs": " pnpm -s clear:mod cjs bundle-cjs",
"clean:mjs": " pnpm -s clear:mod mjs chtml svg *.js",
"======================================================================== def": "",
"def:compile": "pnpm log:msg 'Compiling font definition'; tsc -p tsconfig/def.json",
"def:run": "pnpm -s log:msg 'Processing font definition'; node def/mathjax-newcm.js",
"======================================================================== compile": "",
"compile:def": "def() { pnpm clean:$1 && pnpm def:compile && pnpm -s def:run $1; }; def",
"compile:tsc": "cmp() { pnpm log:msg \"Compiling $1 typescript files\"; tsc -p tsconfig/$1.json; }; cmp",
"compile:all": "all() { pnpm compile:def $1 && pnpm compile:tsc $1; }; all",
"mjs:compile": "pnpm -s compile:all mjs",
"cjs:compile": "pnpm -s compile:all cjs && pnpm -s cjs:package",
"cjs:package": "pnpm log:msg 'Creating package.json'; echo '{\n \"type\": \"commonjs\"\n}' > cjs/package.json",
"======================================================================== make": "",
"make:one": "one() { pnpm log:msg \"Building $1\"; echo; ../node_modules/mathjax-full/components/bin/makeAll --$2 $3 $4 build/$1; }; one",
"make:font": "font() { pnpm -- make:one chtml $1 $2 $3 && pnpm -- make:one svg $1 $2 $3; }; font",
"cjs:make-font": "pnpm -s log:msg 'Making cjs font'; pnpm -s -- make:font cjs --bundle-cjs",
"mjs:make-font": "pnpm -s log:msg 'Making mjs font'; pnpm -s -- make:font mjs",
"======================================================================== combine": "",
"combine:cmp": "cmp() { pnpm -- make:one tex-mml-$1-mathjax-newcm $2 $3; }; cmp",
"combine:one": "one() { pnpm -- make:one $1 $2 --build && pnpm -- combine:cmp $1 $2 $3; }; one",
"combine:all": "combine() { pnpm -- combine:one chtml $1 $2 $3 && pnpm -- combine:one svg $1 $2 $3; }; combine",
"cjs:combine": "pnpm -s -- combine:all cjs --bundle-cjs",
"mjs:combine": "pnpm -s -- combine:all mjs",
"======================================================================== build": "",
"build:cmp": "cmp() { pnpm $2:compile && echo && pnpm make:one $1 $2 $3 $4; }; cmp",
"build:one": "one() { pnpm make:one $1 $2 && pnpm make-one tex-mml-$1-mathjax-newcm $2; }; one",
"build:all": "build() { pnpm $1:compile && echo && pnpm build:one chtml $1 && pnpm build:one svg $1; }; build",
"cjs:build": "pnpm -s log:header 'Building cjs'; pnpm -s cjs:compile",
"mjs:build": "pnpm -s log:header 'Building mjs'; pnpm -s build:all mjs",
"======================================================================== tables": "",
"table": "table() { pnpm -s clear:tables $1 && pnpm -s log:msg \"Creating $1 tables\" && node ../bin/makeTables.js $1 mathjax-newcm; }; table",
"tables": "pnpm -s table svg && pnpm -s table chtml",
"======================================================================== aliases": "",
"clean": "pnpm -s clean:cjs; pnpm -s clean:mjs",
"compile": "cmp() { pnpm -s ${1:-mjs}:compile; }; cmp",
"make-one": "make() { pnpm -s make:one $1 ${2:-mjs}; }; make",
"make-font": "make() { pnpm -s ${1:-mjs}:make-font; }; make",
"combine": "cmb() { pnpm -s ${1:-mjs}:combine; }; cmb",
"build-one": "bld() { pnpm -- build:cmp $1 ${2:-mjs}; }; bld",
"build": "bld() { pnpm -s ${1:-mjs}:build; }; bld",
"build-all": "pnpm -s cjs:build && echo && pnpm -s mjs:build"
}
}