Based on fusion components and ice scaffold. Develop material docs.
$ npm run setup
# block
$ cd blocks/ExampleBlock
$ npm install
$ npm run start
scaffolds 每一个脚手架都由对应的配置文件 .template/scaffold.json
生成,因此请不要手动修改脚手架的其他文件内容。
生成命令:
$ cd materials/
$ node scripts/generate.js fusion-design-pro
$ cd materials/
$ node scripts/publish-blocks.js
$ iceworks add # select block|component|scaffold
$ iceworks generate
# sync to fusion material center
$ iceworks sync
# sync to oss, will work in iceworks
$ ACCESS_KEY_ID=xxx ACCESS_KEY_SECRET=yyy node scripts/oss/upload.js
Add the materials data url to iceworks