Skip to content

Commit 31e711d

Browse files
committed
Adjust components (mml to not incluide mml3, tex to not include entities no longer neeeded). Adjust build to report [components] better, and make-components to be line buffered so that its output in travis is better.
1 parent ba128ee commit 31e711d

6 files changed

Lines changed: 10 additions & 18 deletions

File tree

components/bin/pack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function fileSize(file) {
4848
/**
4949
* Regular expressions for the components directory and the MathJax .js location
5050
*/
51-
const compRE = fileRegExp(path.dirname(__dirname));
51+
const compRE = fileRegExp(path.join(path.dirname(__dirname), 'src'));
5252
const rootRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'js'));
5353
const nodeRE = fileRegExp(path.join(path.dirname(path.dirname(__dirname)), 'node_modules'));
5454

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"component": "inpu/mml",
3-
"targets": ["input/mathml.ts", "input/mathml"]
3+
"targets": [
4+
"input/mathml.ts",
5+
"input/mathml"
6+
],
7+
"excludeSubdirs": "true"
48
}

components/src/input/tex-base/build.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"targets": [
44
"input/tex.ts",
55
"input/tex",
6-
"input/tex/base",
7-
"util/entities/n.ts",
8-
"util/entities/p.ts",
9-
"util/entities/r.ts"
6+
"input/tex/base"
107
],
118
"exclude": ["input/tex/AllPackages.ts"],
129
"excludeSubdirs": "true"

components/src/input/tex-full/build.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
"component": "input/tex-full",
33
"targets": [
44
"input/tex.ts",
5-
"input/tex",
6-
"util/entities/n.ts",
7-
"util/entities/p.ts",
8-
"util/entities/r.ts"
9-
],
10-
"exclude": [
11-
"input/tex/mhchem/mhchem_parser.d.ts"
5+
"input/tex"
126
]
137
}
148

components/src/input/tex/build.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
"input/tex/noundefined",
1010
"input/tex/require",
1111
"input/tex/autoload",
12-
"input/tex/configmacros",
13-
"util/entities/n.ts",
14-
"util/entities/p.ts",
15-
"util/entities/r.ts"
12+
"input/tex/configmacros"
1613
],
1714
"exclude": ["input/tex/AllPackages.ts"],
1815
"excludeSubdirs": "true"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"compile": "npx tsc",
4040
"postcompile": "npm run --silent copy:mj2 && npm run --silent copy:mml3",
4141
"premake-components": "npm run --silent clean:es5 && npm run --silent clean:lib",
42-
"make-components": "cd components && node bin/makeAll src | grep 'Building\\|Webpacking\\|Copying\\|npx'",
42+
"make-components": "cd components && node bin/makeAll src | grep --line-buffered 'Building\\|Webpacking\\|Copying\\|npx'",
4343
"premake-mml3-xslt": "cd ts/input/mathml/mml3 && grep '^\\s*\\(<\\|or\\|xmlns\\|excl\\|\">\\)' mml3.ts > mml3.xsl",
4444
"make-mml3-xslt": "cd ts/input/mathml/mml3 && npx xslt3 -t -xsl:mml3.xsl -export:mml3.sef.json -nogo",
4545
"postmake-mml3-xslt": "rpx rimraf ts/input/mathml/mml3/mml3.xsl"

0 commit comments

Comments
 (0)