-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to support an ES6 version as well as ES5
- Loading branch information
Showing
89 changed files
with
673 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
node_modules | ||
components/src/**/lib | ||
js | ||
js6 | ||
es5 | ||
es6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /usr/bin/env node | ||
|
||
/************************************************************* | ||
* | ||
* Copyright (c) 2023 The MathJax Consortium | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @fileoverview Changes js to js6 in compiled js files | ||
* | ||
* @author dpvc@mathjax.org (Davide Cervone) | ||
*/ | ||
|
||
|
||
const fs = require("fs"); | ||
|
||
const file = process.argv[2]; | ||
|
||
const code = String(fs.readFileSync(file)).replace(/\/js\//, '/js6/'); | ||
fs.writeFileSync(file, code); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'a11y/assistive-mml', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
[ // packages to link to | ||
module.exports = PACKAGE({ | ||
name: 'a11y/assistive-mml', | ||
libs: [ | ||
'components/src/input/mml/lib', | ||
'components/src/core/lib' | ||
], | ||
__dirname // our directory | ||
); | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'a11y/complexity', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
[ // packages to link to | ||
module.exports = PACKAGE({ | ||
name: 'a11y/complexity', | ||
libs: [ | ||
'components/src/a11y/semantic-enrich/lib', | ||
'components/src/input/mml/lib', | ||
'components/src/core/lib' | ||
], | ||
__dirname // our directory | ||
); | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'a11y/explorer', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
[ // packages to link to | ||
module.exports = PACKAGE({ | ||
name: 'a11y/explorer', | ||
libs: [ | ||
'components/src/ui/menu/lib', | ||
'components/src/a11y/semantic-enrich/lib', | ||
'components/src/a11y/sre/lib', | ||
'components/src/input/mml/lib', | ||
'components/src/core/lib' | ||
], | ||
__dirname // our directory | ||
); | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'a11y/semantic-enrich', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
[ // packages to link to | ||
module.exports = PACKAGE({ | ||
name: 'a11y/semantic-enrich', | ||
libs: [ | ||
'components/src/input/mml/lib', | ||
'components/src/core/lib', | ||
'components/src/a11y/sre/lib' | ||
], | ||
__dirname // our directory | ||
); | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'a11y/sre', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
[ // packages to link to | ||
module.exports = PACKAGE({ | ||
name: 'a11y/sre', | ||
libs: [ | ||
'components/src/input/mml/lib', | ||
'components/src/core/lib', | ||
'components/src/startup/lib' | ||
], | ||
__dirname // our directory | ||
); | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
const PACKAGE = require('../../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'adaptors/liteDOM', // the package to build | ||
'../../../../js', // location of the MathJax js library | ||
['components/src/core/lib'], // packages to link to | ||
__dirname // our directory | ||
); | ||
module.exports = PACKAGE({ | ||
name: 'adaptors/liteDOM', | ||
libs: ['components/src/core/lib'], | ||
dir: __dirname | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const PACKAGE = require('../../webpack.common.js'); | ||
|
||
module.exports = PACKAGE( | ||
'core', // the package to build | ||
'../../../js', // location of the MathJax js library | ||
[], // packages to link to | ||
__dirname // our directory | ||
); | ||
module.exports = PACKAGE({ | ||
name: 'core', | ||
dir: __dirname | ||
}); |
Oops, something went wrong.