start.js 581 B

1234567891011121314151617181920212223
  1. const concurrently = require('concurrently');
  2. const startTask = async () => {
  3. try {
  4. const res = await concurrently([
  5. {
  6. command: 'nodemon -e ts -w ./packages/grafana-ui/src/themes -x yarn run themes:generate',
  7. name: 'SASS variables generator',
  8. },
  9. {
  10. command: 'webpack-dev-server --progress --colors --mode development --config scripts/webpack/webpack.hot.js',
  11. name: 'Dev server',
  12. },
  13. ], {
  14. killOthers: ['failure', 'failure'],
  15. });
  16. } catch (e) {
  17. console.error(e);
  18. process.exit(1);
  19. }
  20. };
  21. startTask();