Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'));
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)))