@shopify/manifests
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@shopify/manifests

License: MIT npm version

Utilities for manipulating manifests generated by @shopify/webpack-asset-metadata-plugin, and @shopify/sewing-kit.

Installation

$ yarn add @shopify/manifests

Commands

consolidate command

Finds assets.json / sewing-kit-manifest.json files inside a build directory, and combines them into a single JSON file.

Options

--root (required)

Directory to scan for manifest files (e.g., public/bundles / build/client).

--destination (required)

Path of the combined manifest file (e.g., public/bundles/sewing-kit-manifest.json)

--manifestGlob

Glob pattern to search for within 'root'.

--removeLegacyData

If enabled, removes the assets array from consolidated manifests. This reduces unused bulk in @shopify/sewing-kit-koa deployments.

--zip

If enabled, gzips the consolidated output. A '.gz' extension will be automatically applied to destination.

Usage

For full details of each option and its defaults, use:

yarn run manifests consolidate --help

An example command:

yarn run manifests consolidate --root public/bundles --destination public/bundles/sewing-kit-manifest.json --removeLegacyData

Readme

Keywords

none

Package Sidebar

Install

npm i @shopify/manifests

Weekly Downloads

14,163

Version

1.1.1

License

MIT

Unpacked Size

61.5 kB

Total Files

19

Last publish

Collaborators

  • jaimie.rockburn
  • blittle
  • shopify-admin
  • maryharte
  • crisfmb
  • pmoloney89
  • netlohan
  • st999999
  • justin-irl
  • megswim
  • wcandillon
  • nathanpjf
  • shopify-dep
  • goodforonefare
  • lemonmade
  • vsumner
  • wizardlyhel
  • antoine.grant
  • tsov
  • andyw8-shopify
  • henrytao
  • hannachen
  • vividviolet
  • bpscott