poly-theme-cli
v2.1.0
Published
This module contains cli tools for theme developers.
Downloads
23
Readme
Poly Theme Cli
A set of common cli tools used for poly theme development
Installation
npm install poly-theme-cli --save-dev
Update "scripts" in package.json to access the hstheme in the repo.
"scripts": {
"hstheme: "hstheme",
...
}
Setup local.config.js
npm run hstheme setup:local
User would be prompted to provide organization id and hearsay api token.
Fetch Slug
npm run hstheme fetch:slug <slug>
If the slugs exists in the organization then data for the slug will be fetched and stored in <slug>.json
file and
value sampleData in the local.config.js
would be set to <slug>.json
Other Commands
To switch between sample data: npm run hstheme use:sample <filename>
To set the default: npm run hstheme use:default