How to use the just-scripts.tscTask 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 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 / packages / codepen-loader / just.config.js View on Github external
taskPresets,
  task,
  series,
  parallel,
  option,
  condition,
  tscTask,
  copyTask,
  argv
} = require('just-scripts');

option('min', { alias: 'npm-install-mode' });

taskPresets.lib();

task('ts', tscTask({ module: 'commonjs', outDir: './lib' }));

task(
  'copy',
  copyTask(
    [
      '../office-ui-fabric-react/src/utilities/exampleData.ts',
      '../office-ui-fabric-react/src/components/ExtendedPicker/examples/PeopleExampleData.ts',
      '../office-ui-fabric-react/src/common/TestImages.ts'
    ],
    'lib'
  )
);

task(
  'build',
  series('clean', 'copy', parallel('ts', condition('jest', () => !argv().min)))