https://github.com/alibaba-fusion/materials
基于 icejs+fusion 的官方精品物料
https://github.com/alibaba-fusion/materials
blocks codesnippets react react-components scaffold
Last synced: about 1 year ago
JSON representation
基于 icejs+fusion 的官方精品物料
- Host: GitHub
- URL: https://github.com/alibaba-fusion/materials
- Owner: alibaba-fusion
- Created: 2018-06-29T06:24:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T05:10:27.000Z (over 2 years ago)
- Last Synced: 2025-04-12T06:19:05.243Z (about 1 year ago)
- Topics: blocks, codesnippets, react, react-components, scaffold
- Language: TypeScript
- Homepage: https://fusion.design/template
- Size: 7.69 MB
- Stars: 238
- Watchers: 8
- Forks: 176
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Materials
Based on [Fusion Components](https://github.com/alibaba-fusion/next) and [ice.js Framework](https://github.com/alibaba/ice).
## Setup
```bash
$ npm run setup
```
## Develop
> See [Material Development Guide](https://ice.work/docs/materials/about) to learn more.
```bash
# block
$ cd blocks/ExampleBlock
$ npm install
$ npm run start
```
### Scaffolds
Each scaffold in the scaffolds folder is generated by a configuration file `.template/scaffold.json`, please do not manually modify the contents of the scaffold.
Generate scaffold command:
```bash
$ cd materials/
$ node scripts/generate.js fusion-design-pro
```
### Batch Publish Blocks
```bash
$ cd materials/
$ node scripts/publish-blocks.js
```
### Batch Publish Scaffolds
```bash
$ cd materials/
$ TYPE=scaffolds node scripts/publish-blocks.js
```
### Add New Material
```bash
$ iceworks add # select block|component|scaffold|page
```
## Publish
### Generate Materials Data
```bash
$ iceworks generate
```
### Publish Materials Data
```bash
# sync to fusion material center
$ iceworks sync
```