@100tal-seg/seg-materials 中文文档教程
ice-devtools
使用命令行创建材料应用程序,是 ICE 材料开发的标准工具。
Installation
先决条件:Node.js (>=10.x),npm 版本 6+。
$ npm i seg-materials -g
Quick Start
$ mkdir my-materials && cd my-materials
$ sm init
它将在当前文件夹中创建一个名为 my-materials 的目录。
在该目录中,它将生成初始项目结构:
my-materials/
│
├── blocks
│ └── Greeting
│
├── scaffolds
│ └── lite
│
├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierignore
├── .prettierrc
├── LICENSE
├── README.md
└── package.json
没有配置或复杂的文件夹结构,只有构建材料应用程序所需的文件。
在新建的项目中,可以运行一些内置命令:
$ npm run deploy // equal to: ice-devtools generate && ice-devtools sync
会在build文件夹中自动生成materials JSON数据,build文件夹准备好部署,返回一个material source接口。
Add Materilas
您可以添加材料,包括块和模板:
$ sm add
Documentation
文档可在 intro-materials - 我们是仍在努力改进它,欢迎贡献!
FAQ
Install puppeteer: cnpm i puppeteer
License
麻省理工学院
ice-devtools
Creates a materials application using the command line, is the Standard Tooling for ICE material Development.
Installation
Prerequisites: Node.js (>=10.x), npm version 6+.
$ npm i seg-materials -g
Quick Start
$ mkdir my-materials && cd my-materials
$ sm init
It will create a directory called my-materials inside the current folder.
Inside that directory, it will generate the initial project structure:
my-materials/
│
├── blocks
│ └── Greeting
│
├── scaffolds
│ └── lite
│
├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierignore
├── .prettierrc
├── LICENSE
├── README.md
└── package.json
No configuration or complicated folder structures, just the files you need to build your materials app.
Inside the newly created project, you can run some built-in commands:
$ npm run deploy // equal to: ice-devtools generate && ice-devtools sync
It will be automatically generate materials JSON data in build folder,The build folder is ready to be deployed,return a material source interface.
Add Materilas
You can add materials, including blocks and templates:
$ sm add
Documentation
Docs are available at intro-materials - we are still working on refining it and contributions are welcome!
FAQ
Install puppeteer: cnpm i puppeteer
License
MIT