mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
16 lines
640 B
JavaScript
16 lines
640 B
JavaScript
await Promise.all([
|
|
['unit-global/index', 'unit-global'],
|
|
['unit-pure/index', 'unit-pure'],
|
|
].map(([entry, output]) => $`webpack \
|
|
--entry ../../tests/${ entry }.js \
|
|
--output-filename ${ output }.js \
|
|
`));
|
|
|
|
await Promise.all([
|
|
fs.copyFile('../../packages/core-js-bundle/index.js', '../../tests/bundles/core-js-bundle.js'),
|
|
fs.copyFile('./node_modules/@slowcheetah/qunitjs-1/qunit/qunit.js', '../../tests/bundles/qunit.js'),
|
|
fs.copyFile('./node_modules/@slowcheetah/qunitjs-1/qunit/qunit.css', '../../tests/bundles/qunit.css'),
|
|
]);
|
|
|
|
echo(chalk.green('\ntests bundled, qunit and core-js bundles copied into /tests/bundles/'));
|