Skip to content

chrisdothtml/shopify-themekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopify-themekit

StandardJS travis-ci build status appveyor build status

node wrapper for Shopify ThemeKit

This is based on node-themekit. I didn't agree with a lot of the ways that package was handling it, so I made my own.

Install

yarn add shopify-themekit

# or npm
npm install --save shopify-themekit

Use

See ThemeKit Docs for full list of commands and options

API

const themekit = require('shopify-themekit')
const options = {
  files: ['assets/file.js', 'assets/file.css'],
  ignore: false,
  store: '...'
}

// equivalent to:
// theme upload assets/file.js assets/file.css --no-ignore --store=...
themekit('upload', options)
  .then(...)
  .catch(...)

CLI

# arguments passed directly to themekit
theme upload --allenvs

License

MIT