Webpack the addons

This commit is contained in:
Daniel Imms
2019-06-10 14:28:07 -07:00
parent 566f5944dd
commit 989610e8c3
14 changed files with 168 additions and 12 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
const cp = require('child_process');
const path = require('path');
const fs = require('fs');
const addons = fs.readdirSync(path.resolve(__dirname, '../addons'));
addons.forEach(addon => {
cp.spawnSync(
'npm', ['run', 'package'],
{
cwd: path.resolve(__dirname, `../addons/${addon}`),
stdio: 'inherit'
}
);
});