Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.66 KB

readme.md

File metadata and controls

53 lines (45 loc) · 1.66 KB

Usage

npm install --save @vesoft-inc/icons

Each svg-tpl.cjs file nestled within the lib subdirectories proffers an exportation of the SVG Icon Element string.

import SVGElement from '@vesoft-inc/icons/lib/NebulaGraph-Explorer/svg-tpl.cjs';

// inject `SVGElement` string into your html

Build

npm install
npm run build

After build, the dist directory will be generated, and the directory structure is as follows:

dist
├── NebulaGraph-Cloud
│   └── svg.tpl
├── NebulaGraph-Dashboard
│   └── svg.tpl
├── NebulaGraph-Explorer
│   └── svg.tpl
├── NebulaGraph-Interface-Guidelines
│   └── svg.tpl
├── NebulaGraph-Studio
│   └── svg.tpl
└── NebulaGraph-Website
    └── svg.tpl

Publish

# npm publish --tag beta
# npm publish

Auto Publish: push code to mian branch, github workflow will be triggered automatically.

  • 1.0.0-beta.x will be published as a beta package
  • 1.0.0 will be published as a normal package

Preview