@midiu/cli
v1.0.1
Published
midiu command line interface for Salesforce Commerce Cloud (Demandware) using Storefront Reference Architecture (SFRA) projects
Downloads
8
Maintainers
Readme
Build Tools for Midiu's SFRA Projects
This repository provide almost tools and utilities for development and deployment SFRA projects. It does not depends on Salesforce's
build-suite
andsgmf-scripts
repositories. It also not usegulp
orgrunt
for compiling tasks.For deployment, this tools use
dwdav
repository which provide almost commands that can communicate with Demandware server.This package usually install globally to make the
midiu
command lcan be used anywhere without a long path call.
Installation
npm install --global @midiu/cli
Usage
midiu {command} [option] [option-n]
mi {command} [option] [option-n]
Example:
midiu compile scss js --source-map --watch
mi update-repositories --help
Available Commands
midiu
- (aliasmi
) a wrapper command used for quickly call other commands. It also the only one command can be called globally.compile
- command used to compile client side static assets. All compile tasks usewebpack
as compiler.- Compile
SCSS
toCSS
- Compile
ES6
javascript toES5
- Copy static files such as
fonts
orimages
from source to public static directory - Generate sprite sheet using
spritesmith
library
- Compile
deploy
- used to deploy current project to remote serverextract-dependencies
- used to extract dependencies registered from Midiu's dependencies which installed viagit clone
command and not managed byNPM
install
- used to install repositories registered to Midiu's dependencies viagit clone
pack
- used to pack current project to a zip archive package which used to deploy to server..npmignore
will be affected to output result.recipe
- proceed the recipes from@midiu/recipe
packagesubmodules
- scan and register installed Midiu's dependencies as submodules of project repositorysync-repo
- used to sync contents from repository A to repository B. It usually used for sync Salesforce's repository from github to Midiu's repositories
Planned Commands
lint