How to use the just-scripts.parallel function in just-scripts

To help you get started, we’ve selected a few just-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / scripts / just.config.js View on Github external
      : parallel('ts:commonjs', 'ts:esm', condition('ts:amd', () => argv().production && !argv().min));
  });
github OfficeDev / office-ui-fabric-react / packages / codepen-loader / just.config.js View on Github external
  series('clean', 'copy', parallel('ts', condition('jest', () => !argv().min)))
).cached();
github microsoft / just / packages / example-lib / just-task.js View on Github external
const { tscTask, task, parallel } = require('just-scripts');

task('typescript', tscTask({}));
task('typescript:watch', tscTask({ watch: true }));

task('build', parallel('typescript'));
task('watch', parallel('typescript:watch'));
github OfficeDev / office-ui-fabric-react / scripts / just.config.js View on Github external
});

  task('validate', fs.existsSync(path.join(process.cwd(), 'jest.config.js')) ? series('tslint', 'jest') : 'tslint');
  task('code-style', series('prettier', 'tslint'));
  task('update-api', series('clean', 'copy', 'sass', 'ts', 'update-api-extractor'));
  task('dev', series('clean', 'copy', 'sass', 'webpack-dev-server'));

  task('build:node-lib', series('clean', 'copy', series(condition('validate', () => !argv().min), 'ts:commonjs-only'))).cached();

  task(
    'build',
    series(
      'clean',
      'copy',
      'sass',
      parallel(
        condition('validate', () => !argv().min),
        series(
          'ts',
          parallel(
            condition('webpack', () => !argv().min && !!resolveCwd('webpack.config.js')),
            condition('lint-imports', () => !argv().min)
          )
        )
      )
    )
  ).cached();

  task('no-op', () => {}).cached();
};
github OfficeDev / office-ui-fabric-react / scripts / just.config.js View on Github external
task('update-api', series('clean', 'copy', 'sass', 'ts', 'update-api-extractor'));
  task('dev', series('clean', 'copy', 'sass', 'webpack-dev-server'));

  task('build:node-lib', series('clean', 'copy', series(condition('validate', () => !argv().min), 'ts:commonjs-only'))).cached();

  task(
    'build',
    series(
      'clean',
      'copy',
      'sass',
      parallel(
        condition('validate', () => !argv().min),
        series(
          'ts',
          parallel(
            condition('webpack', () => !argv().min && !!resolveCwd('webpack.config.js')),
            condition('lint-imports', () => !argv().min)
          )
        )
      )
    )
  ).cached();

  task('no-op', () => {}).cached();
};
github microsoft / just / packages / example-lib / just-task.js View on Github external
const { tscTask, task, parallel } = require('just-scripts');

task('typescript', tscTask({}));
task('typescript:watch', tscTask({ watch: true }));

task('build', parallel('typescript'));
task('watch', parallel('typescript:watch'));