mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
Moving to node_modules folder to make easier to upgrade
trying to move from Bootstrap 3 to Bootstrap 5
This commit is contained in:
parent
047e363a16
commit
d4d042e041
8460 changed files with 1355889 additions and 547977 deletions
25
node_modules/mux.js/scripts/node-test.js
generated
vendored
Normal file
25
node_modules/mux.js/scripts/node-test.js
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* eslint-disable no-console */
|
||||
const path = require('path');
|
||||
const spawn = require('child_process').spawn;
|
||||
const major = parseInt(process.versions.node.split('.')[0], 10);
|
||||
const qunitBinary = require.resolve('qunit/bin/qunit.js');
|
||||
|
||||
if (major < 10) {
|
||||
console.error('Cannot run tests on node < 10, please update');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
let args = [qunitBinary, 'test/dist/bundle.js'];
|
||||
|
||||
if (major === 10) {
|
||||
args = ['node', '--experimental-worker'].concat(args);
|
||||
}
|
||||
|
||||
const child = spawn(args[0], args.slice(1), {
|
||||
cwd: path.join(__dirname, '..'),
|
||||
stdio: 'inherit'
|
||||
});
|
||||
|
||||
child.on('close', (code) => {
|
||||
process.exit(code);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue