- Install the packages that are needed to build the widgets.
npm install
- Adjust the
interact.config.json
file to adjust the build folder.
-
Add new component
npm run add-component
-
Every change will trigger a rebuild of the components, this is not a production build.
npm run watch-components
-
Build widgets to build folder
npm run build-components
-
Copy the widgets from the build folder to
public/components
of the interact server.
npm install @vintecc/interact-tools -g
Options:
init Initialise repository.
add-component Adds a Interact component template to your project.
build-components Builds the components into a standalone JS file.
watch-components Watches your source files and auto compiles Interact Components.
help Show argument list
-
Initialise repository
interact-tools init
-
Add widget to project
interact-tools add-component
-
Build widget
interact-tools build-components
-
Copy the widget from the build folder to
public/components
of the interact server.