Skip to content

raxjs/rax-materials

Repository files navigation

Materials

Materials for Rax Appactions based on Rax Components.

Setup

Install Iceworks

$ npm i -g iceworks
$ iceworks --help

Install dependencies

$ npm install

Develop

# block
$ cd blocks/ExampleBlock
$ npm install
$ npm run start

# component
$ cd blocks/ExampleBlock
$ npm install
$ npm run start

# scaffolds (Please see ejsRender.config.ts first!)
$ npm run scaffolds:watch
$ cd scaffoldsTemps/ExampleScaffold
$ npm install
$ npm run start

PS:

  • If you want to preview scaffold project, Please see ejsRender.config.ts first!
  • Don't run npm install in scaffolds dir, it will slow down the process speed!

Add New Material

$ iceworks add  # select block|component|scaffold

Publish

Generate Materials Data

$ iceworks generate

Publish materials data

# sync to fusion material center
$ iceworks sync

Usage

Install Iceworks for VS Code:

install iceworks

Add the materials data URL to Iceworks:

add custom material

See Custom Material to learn more about how to use materials in Iceworks.