mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 16:52:12 +08:00
24 lines
581 B
JavaScript
24 lines
581 B
JavaScript
const concurrently = require('concurrently');
|
|
|
|
const startTask = async () => {
|
|
try {
|
|
const res = await concurrently([
|
|
{
|
|
command: 'nodemon -e ts -w ./packages/grafana-ui/src/themes -x yarn run themes:generate',
|
|
name: 'SASS variables generator',
|
|
},
|
|
{
|
|
command: 'webpack-dev-server --progress --colors --mode development --config scripts/webpack/webpack.hot.js',
|
|
name: 'Dev server',
|
|
},
|
|
], {
|
|
killOthers: ['failure', 'failure'],
|
|
});
|
|
} catch (e) {
|
|
console.error(e);
|
|
process.exit(1);
|
|
}
|
|
};
|
|
|
|
startTask();
|