<commit_before>import { Sparky } from 'fuse-box';
import { taskName, isProdBuild, BUILD_CONFIG, isAot } from '../../config/build.config';

Sparky.task(taskName(__filename), () => {
  return Sparky.start('clean')
    .then(() => Sparky.start('mk-dist'))
    .then(() => Sparky.start('changelog'))
    .then(() => Sparky.start('ngsw'))
    .then(() => isAot ? Sparky.start('ngc') : Promise.resolve())
    .then(() => Sparky.start('web'))
    .then(() => Sparky.start('index.copy'))
    .then(() => Sparky.start('assets'))
    .then(() => isProdBuild || !BUILD_CONFIG.skipFaviconGenerationOnDev ? Sparky.start('favicons') : Promise.resolve())
    .then(() => Sparky.start('build.app'))
    .then(() => Sparky.start('build.server'))
    .then(() => Sparky.start('sass'))
    .then(() => Sparky.start('index.minify'))
    .then(() => Sparky.start('banner'));
});<commit_msg>fix: build ngsw.json after app is built (#226)<commit_after>import { Sparky } from 'fuse-box';
import { taskName, isProdBuild, BUILD_CONFIG, isAot } from '../../config/build.config';

Sparky.task(taskName(__filename), () => {
  return Sparky.start('clean')
    .then(() => Sparky.start('mk-dist'))
    .then(() => Sparky.start('changelog'))
    .then(() => isAot ? Sparky.start('ngc') : Promise.resolve())
    .then(() => Sparky.start('web'))
    .then(() => Sparky.start('index.copy'))
    .then(() => Sparky.start('assets'))
    .then(() => isProdBuild || !BUILD_CONFIG.skipFaviconGenerationOnDev ? Sparky.start('favicons') : Promise.resolve())
    .then(() => Sparky.start('build.app'))
    .then(() => Sparky.start('build.server'))
    .then(() => Sparky.start('sass'))
    .then(() => Sparky.start('ngsw'))
    .then(() => Sparky.start('index.minify'))
    .then(() => Sparky.start('banner'));
});
{'fraction_non_alphanumeric': 0.25014116318464147, 'fraction_numerical': 0.0016939582156973462, 'mean_word_length': 4.077363896848137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3594994', 'n_tokens_mistral': 639, 'n_tokens_neox': 604, 'n_words': 97}