@100tal-seg/seg-cli
seg 物料开发者工具
Last updated a year ago by uv-w .
MIT · Original npm · Tarball · package.json
$ cnpm install @100tal-seg/seg-cli 
SYNC missed versions from official npm registry.

seg-devtools

Creates a materials application using the command line, is the Standard Tooling for SEG material Development.

Installation

Prerequisites: Node.js (>=10.x), npm version 6+.

$ npm i @100tal-seg/seg-cli -g

Quick Start

$ mkdir my-materials && cd my-materials
$ seg 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: seg generate && seg 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:

$ seg 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

Current Tags

  • 0.0.2                                ...           latest (a year ago)

1 Versions

  • 0.0.2                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (49)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |