Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
: parallel('ts:commonjs', 'ts:esm', condition('ts:amd', () => argv().production && !argv().min));
});
series('clean', 'copy', parallel('ts', condition('jest', () => !argv().min)))
).cached();
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'));
});
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();
};
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();
};
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'));