Yeoman mediaclip-library-tools generator
Tools and typings for Mediaclip javascript themes and layouts
Installation
First, install Yeoman and @mediaclip/generator-library-tools using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g @mediaclip/generator-library-tools
Then generate your new project inside the Library folder (the one that contains the packages
folder)
yo @mediaclip/library-tools
Usage
- Install vscode
- Install the ESLint and Prettier extensions
- Make sure you have a
require("@mediaclip/themes")
line at the beginning of themes, or require("@mediaclip/layouts")
and require("@mediaclip/autofillspecifications")
for layouts and autofill specifications. - To debug a theme, open the
.js
file you want to debug, and in the Debug menu on the left, choose in the drop down the matching type you want to debug, then press the green "play" button.
License
LGPL-3.0 © Mediaclip Inc.