1.0.1 • Published 2 years ago

shopify-section-generator v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Shopify Section Generator

Usage

npx github:mikemooredev/shopify-section-generator --fn='section-product-carousel' --ns='sec' --schema=true --css=true --js=true

Options

Namespace, --ns, --namespace

Default Value: sec

This is the namespace we wish to use for the section. For a section with a name starting with 'section-' the namespace should be 'sec'

Section filename, --fn, --filename

Default Value: section-component

This is the name of the section liquid file we wish to generate. For a product carousel section use section-product-carousel

Include section schema, --schema

Default Value: true

Whether or not the section file should include a schema block

Generate CSS, --css

Default Value: true

Whether or not a CSS file should be generated for this section

Generate JS, --js

Default Value: false

Whether or not a CSS file should be generated for this section