LvJianKai / materials

官方精品物料仓库

Home Page:https://fusion.design/template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Materials

Based on fusion components and ice scaffold. Develop material docs.

Install Deps

$ npm run setup

Develop materials

# 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

Add new material

$ iceworks add  # select block|component|scaffold

Generate materials data

$ iceworks generate

Publish materials data

# 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

Use materials in iceworks

Add the materials data url to iceworks

About

官方精品物料仓库

https://fusion.design/template


Languages

Language:TypeScript 48.9%Language:JavaScript 40.5%Language:CSS 10.4%Language:HTML 0.3%