Files
mostlymatter/webapp/scripts/build.js
Miguel de la Cruz 44a99d1736 Move playbooks to plugin (#23732)
* Remove build references

* Remove playbooks webapp and server, and add the prepackaged plugin

* Remove translations

* Add ProductSettings to the playwright type

* Restore playbooks as a prepackaged plugin for cypress e2e tests
2023-06-14 23:33:26 +02:00

46 строки
1.2 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable no-console */
const chalk = require('chalk');
const concurrently = require('concurrently');
const {getPlatformCommands} = require('./utils.js');
async function buildAll() {
console.log(chalk.inverse.bold('Building subpackages...') + '\n');
try {
const {result} = concurrently(
getPlatformCommands('build'),
{
killOthers: 'failure',
},
);
await result;
} catch (e) {
console.error(chalk.inverse.bold.red('Failed to build subpackages'), e);
return;
}
console.log('\n' + chalk.inverse.bold('Subpackages built! Building web app...') + '\n');
// It's not necessary to run these commands through concurrently, but it makes the output consistent
try {
const {result} = concurrently([
{command: 'npm:build --workspace=channels', name: 'webapp', prefixColor: 'cyan'},
]);
await result;
} catch (e) {
console.error(chalk.inverse.bold.red('Failed to build web app'), e);
return;
}
console.log('\n' + chalk.inverse.bold('Web app built! '));
}
buildAll();