@goodforonefare/manifests
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) [![npm version](https://badge.fury.io/js/%40shopify%2Fmanifests.svg)](https://badge.fury.io/js/%40shopify%2Fmanifests.svg)
Last updated 7 months ago by goodforonefare .
MIT · Original npm · Tarball · package.json
$ cnpm install @goodforonefare/manifests 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 0.0.2                                ...           latest (7 months ago)

2 Versions

  • 0.0.2                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |