npm install
npm install
npm run lowcode:dev
npm install
npm run build
npm run lowcode:build
npm login
npm publish
- Copy the package and component json to the demo site Flower/demo-workspace/src/service/sassets.json
Code example:
{
"package": "flowercontrols",
"version": "0.2.0",
"library": "flowercontrols",
"urls": [
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/render/default/view.js",
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/render/default/view.css"
],
"editUrls": [
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/view.js",
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/view.css"
],
"advancedUrls": {
"default": [
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/render/default/view.js",
"https://unpkg.com/flowercontrols@0.2.0/build/lowcode/render/default/view.css"
]
},
"advancedEditUrls": {}
}
```