Extension
Get Started
Install
- use node: > 14.14.0 (we use 14.18.2)
- run
npm i -g shoplazza-cli
Login
- run
shoplazza login -p
orshoplazza login --partner
- choose your partner
- choose your app
Generate
- run
shoplazza app generate extension
- you can choose your extension type, but now only one option, choose
Theme App Extension
- input your extension name
- waiting for downloading your extension template
- run
cd your-extension-path
and you can happy coding now
Build
- run
shoplazza app build
at your work space (root directory) - we will map your assets directory and minify your css files and js files and generate minified files
- then we will generate a
assets-manifest.json
file to map minified files, don't remove it or change your assets minified files name - then we will build out a zip of the whole directory
Deploy
- run
shoplazza app deploy extension
- we will do some complicated steps to deploy your zip, so please waiting for it
- this step won't publish your extension immediately, only create an new version
Publish
- run
shoplazza app publish extension
- choose the vesion to publish you wanted, option with
published
is the latest version you published before
Logout
- run
shoplazza logout -p
orshoplazza logout --partner
Updated 6 months ago