zhimatech-materials
v1.0.16
Published
芝麻科技物料源
Downloads
9
Readme
自定义物料初始模板
简介
用于自定义物料,支持自定义区块、布局、模板
使用
安装依赖
$ npm install
区块预览
$ cd blocks/ExampleBlock
$ npm install
$ npm run start
模板预览
$ cd scaffolds/ExampleScaffold
$ npm install
$ npm run start
添加物料
# 根据提示自定义添加
# 需要到根目录下添加
$ ice-devtools add
Generate materials json.
npm run generate
You can upload the JSON file to a static web server and put the URL at Iceworks settings panel. You will see your materials in Iceworks
We suggest that you can sync the materials json to fusion or unpkg by run:
npm run sync or npm run sync-unpkg
--registry https://registry.npmjs.com/
引用
https://unpkg.com/zhimatech-materials@latest/build/materials.json
https://cdn.jsdelivr.net/npm/zhimatech-materials@latest/build/materials.json