summaryrefslogtreecommitdiffstatshomepage
path: root/core/scripts/js/jqueryui-check.js
diff options
context:
space:
mode:
authorbnjmnm <benm@umich.edu>2022-03-08 06:48:28 -0500
committerbnjmnm <benm@umich.edu>2022-03-08 06:48:28 -0500
commitb07c6d7c55934dd6ca8247d01850551225eef7cd (patch)
tree3eee3dbe1d28ddcdfe0a11c87450c9626a87846b /core/scripts/js/jqueryui-check.js
parent8777a76a3f8bffc86f1f40b2abc95ed910881a62 (diff)
downloaddrupal-b07c6d7c55934dd6ca8247d01850551225eef7cd.tar.gz
drupal-b07c6d7c55934dd6ca8247d01850551225eef7cd.zip
Issue #3265652 by nod_, xjm, lauriii, Wim Leers, Gábor Hojtsy: Unfork jQuery UI
Diffstat (limited to 'core/scripts/js/jqueryui-check.js')
-rw-r--r--core/scripts/js/jqueryui-check.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/scripts/js/jqueryui-check.js b/core/scripts/js/jqueryui-check.js
deleted file mode 100644
index 3b7c97cc5518..000000000000
--- a/core/scripts/js/jqueryui-check.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const chalk = require('chalk');
-const fs = require('fs');
-const log = require('./log');
-const Terser = require('terser');
-
-module.exports = filePath => {
- log(`'${filePath}' is being checked.`);
- // Transform the file.
- const file = fs.readFileSync(filePath, 'utf-8');
- Terser.minify(file).then((result) => {
- const fileName = filePath.slice(0, -3);
- fs.readFile(`${fileName}-min.js`, function read(err, data) {
- if (err) {
- log(chalk.red(err));
- process.exitCode = 1;
- return;
- }
- if (result.code !== data.toString()) {
- log(chalk.red(`'${filePath}' is not updated.`));
- process.exitCode = 1;
- }
- });
- });
-};