Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function build() {
reporter.log('Cleaning build dirs...');
try {
await clean();
await Promise.all([fs.mkdir(paths.STORIES), fs.mkdir(paths.TS)]);
} catch (err) {
reporter.error(err);
}
reporter.log('Generating source components...');
await generateComponents();
reporter.log('Compiling and generating modules...');
// run the angular compiler over everything
ngc.main(['-p', './config/tsconfig-aot.json']);
reporter.log('Bundling...');
await buildUMD();
// build the storybook examples
reporter.log('Generating storybook examples...');
buildExamples();
}
try {
await clean();
await Promise.all([fs.mkdir(paths.STORIES), fs.mkdir(paths.TS)]);
} catch (err) {
reporter.error(err);
}
reporter.log('Generating source components...');
await generateComponents();
reporter.log('Compiling and generating modules...');
// run the angular compiler over everything
ngc.main(['-p', './config/tsconfig-aot.json']);
reporter.log('Bundling...');
await buildUMD();
// build the storybook examples
reporter.log('Generating storybook examples...');
buildExamples();
}
async function build() {
reporter.log('Cleaning build dirs...');
try {
await clean();
await Promise.all([fs.mkdir(paths.STORIES), fs.mkdir(paths.TS)]);
} catch (err) {
reporter.error(err);
}
reporter.log('Generating source components...');
await generateComponents();
reporter.log('Compiling and generating modules...');
// run the angular compiler over everything
ngc.main(['-p', './config/tsconfig-aot.json']);
reporter.log('Bundling...');
await buildUMD();
// build the storybook examples
reporter.log('Generating storybook examples...');
buildExamples();
}
async function build() {
reporter.log('Cleaning build dirs...');
try {
await clean();
await Promise.all([fs.mkdir(paths.STORIES), fs.mkdir(paths.TS)]);
} catch (err) {
reporter.error(err);
}
reporter.log('Generating source components...');
await generateComponents();
reporter.log('Compiling and generating modules...');
// run the angular compiler over everything
ngc.main(['-p', './config/tsconfig-aot.json']);
reporter.log('Bundling...');
await buildUMD();
// build the storybook examples
reporter.log('Generating storybook examples...');
buildExamples();
}
async function build() {
reporter.log('Cleaning build dirs...');
try {
await clean();
await Promise.all([fs.mkdir(paths.STORIES), fs.mkdir(paths.TS)]);
} catch (err) {
reporter.error(err);
}
reporter.log('Generating source components...');
await generateComponents();
reporter.log('Compiling and generating modules...');
// run the angular compiler over everything
ngc.main(['-p', './config/tsconfig-aot.json']);
reporter.log('Bundling...');
await buildUMD();
// build the storybook examples
reporter.log('Generating storybook examples...');