1.0.10 • Published 10 months ago

@oceanbase/icons-svg v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

šŸ“¦ Install

npm install @oceanbase/icons-svg

šŸ“¢ Requirement

Directory tree should be like below:

ā”œā”€ā”€ package.json
ā”œā”€ā”€ scripts
│   ā”œā”€ā”€ generate.ts
ā”œā”€ā”€ src
ā”œā”€ā”€ svg
│   ā”œā”€ā”€ filled
│   ā”œā”€ā”€ outlined
│   ā”œā”€ā”€ twotone
│   └── colored

šŸ”Ø Usage

scripts/generate.ts:

import { resolve } from 'path';
import { appendFileSync } from 'fs';
import { reactIconsGeneratorFromSVGDir } from '@oceanbase/icons-svg';

export async function generateIcons() {
  await reactIconsGeneratorFromSVGDir({
    entry: resolve(__dirname, '../svg'),
    output: resolve(__dirname, '../src'),
    typescript: true,
  });
}
generateIcons();

package.json:

{
  "scripts": {
    "build": "npm run generate && ${YOUR_BUILD_COMMAND}",
    "generate": "rm -rf src && ts-node scripts/generate.ts"
  }
}
1.0.9

10 months ago

1.0.8

10 months ago

1.0.10

10 months ago

1.0.7

10 months ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago