bms-theme-kit
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

Bold ThemeKit

To install

npm install bms-theme-kit --save-dev

Usage

From CLI Run bmstk You may also pass the additional flags

bmstk --help

Usage: bmstk [options]
 
Options:
  -V, --version                     output the version number
  -c, --cd [cd]                     Move up one Directory (default: false)
  -d, --debug [debug]               Enable debugging logs (default: false)
  -D, --delete-files [deleteFiles]  Delete files on theme (NOTE: this is only for themekit Version > 0.8.0 (default: false)
  -e, --env [env]                   The themekit [environment] to run the command (default: "development")
  -f, --file [file]                 The webpack config file to use (default: "webpack.config.js")
  -h, --help                        output usage information
 

TODOs

  • Check for Theme Version and handle command accordingly ATM two dif Major Versions V7 and V8
  • Improve README.MD Documentation for usage
  • allow flag to pass theme --env for upload/deploy

About

The goal of this tool is to improve our automated workflow while using webpack and deploying production builds. This npm package will get your current directory using cmd pwd then require the webpack configuration that is located in that directory. Once this is loaded in, it will extract the keys from within the entry object. It will then build a command for theme kit upload

Pre-requisites

  • Install npm or yarn
  • Theme kit
  • Have a webpack.config.js located at your package.json files directory level.
  • Have a config.yml present for Themekit

Getting Started

Ensure config.yml is setup accordingly, Here is an example config.yml

development: &COMMON
 password:
 theme_id:
 store:
 bucket_size: 40
 refill_rate: 2
 timeout: 30s
 ignore_files:
 - config/settings_data.json
 - snippets/locksmith-content-variables.liquid
 - snippets/locksmith-variables.liquid
 - snippets/locksmith.liquid
 - layout/*.shogun.*
 - snippets/*.shogun.*
 - assets/*.shogun.*
 - sections/*.shogun.*
 
staging:
 <<*COMMON
 theme_id:

Now Ensure you are within the src directory, from project root cd src

Install node dependencies

# Run this if you are using yarn 
$ yarn
 
# Or run this if you are using npm 
$ npm install

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.04latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.04
3.0.62
3.0.52
3.0.42
3.0.32
3.0.22
3.0.12
2.1.32
2.1.22
2.1.12
2.1.02
2.0.22
2.0.12
2.0.02
1.1.02
1.0.82
1.0.72
1.0.63
1.0.52
1.0.42
1.0.32
1.0.22
1.0.12
1.0.02

Package Sidebar

Install

npm i bms-theme-kit

Weekly Downloads

1

Version

3.1.0

License

Apache-2.0

Unpacked Size

169 kB

Total Files

50

Last publish

Collaborators

  • jrschellenberg