How to use @sitecore-jss/sitecore-pipelines - 1 common examples

To help you get started, we’ve selected a few @sitecore-jss/sitecore-pipelines 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 Sitecore / jss / packages / sitecore-jss-manifest / src / generator / manifest.ts View on Github external
dictionary: new Array(),
        media: new Array(),
        appName: manifestSourceData.appName,
        language: manifestSourceData.language,
        renderings: new Array(),
        wipeExisting: manifestSourceData.wipe,
        rootPlaceholders: manifestSourceData.rootPlaceholders,
      },
    };

    const pipeline = { ...pipelines.generateManifest };
    pipeline.args = {
      ...pipeline.args,
      ...pipelineArgs,
    };
    const result = await runPipeline(pipeline);

    const { items, dictionary, ...output } = result.pipelineResult;

    // exclude items and media here as opposed to preventing them from being generated in
    // the manifest because some processors/pipelines may rely on generated manifest data
    if (!excludeItems) {
      output.items = items;
    }

    if (!excludeDictionary) {
      output.dictionary = dictionary;
    }

    return output as ManifestInstance;
  };

@sitecore-jss/sitecore-pipelines

Sitecore Pipelines in JavaScript.

Apache-2.0
Latest version published 2 years ago

Package Health Score

40 / 100
Full package analysis

Popular @sitecore-jss/sitecore-pipelines functions

Similar packages