Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/daangn/icona
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Mar 22, 2024
2 parents 7d5cc94 + 6fadc80 commit 74f785d
Show file tree
Hide file tree
Showing 176 changed files with 7,570 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@icona/figma-plugin"]
"ignore": ["@icona/figma-plugin", "@icona/generator-test"]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions packages/generator/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
dist

# for test
svg
pdf
react
png
drawable
.icona
icona.js
14 changes: 14 additions & 0 deletions packages/generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @icona/generator

## 0.5.0

### Minor Changes

- af4efe8: - (generator) Added `svgtofont` package to generate `font` (eot, ttf, woff, woff2, svg) files from `SVG` files.
- (generator) Added `config.font` method in `generate` function to generate `font` files.
- (generator) Added `generateFont` method

### Patch Changes

- Updated dependencies [af4efe8]
- @icona/types@0.5.0
- @icona/utils@0.5.0

## 0.4.1

### Patch Changes
Expand Down
9 changes: 5 additions & 4 deletions packages/generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icona/generator",
"version": "0.4.1",
"version": "0.5.0",
"repository": {
"type": "git",
"url": "git+https://github.com/daangn/icona.git",
Expand All @@ -25,16 +25,17 @@
"prepack": "yarn build"
},
"dependencies": {
"@icona/types": "^0.4.1",
"@icona/utils": "^0.4.1",
"@icona/types": "^0.5.0",
"@icona/utils": "^0.5.0",
"@svgr/core": "^8.0.0",
"@types/cli-progress": "^3.11.5",
"cli-progress": "^3.12.0",
"opentype.js": "^1.3.4",
"pdfkit": "^0.13.0",
"svg-to-pdfkit": "^0.1.8",
"svg2vectordrawable": "^2.9.1",
"svgo": "^3.0.2"
"svgo": "^3.0.2",
"svgtofont": "^4.2.0"
},
"devDependencies": {
"@types/opentype.js": "^1.3.8",
Expand Down
1 change: 1 addition & 0 deletions packages/generator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export {
generate,
generateDart,
generateDrawable,
generateFont,
generatePDF,
generatePNG,
generateReact,
Expand Down
8 changes: 8 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @icona/types

## 0.5.0

### Minor Changes

- af4efe8: - (generator) Added `svgtofont` package to generate `font` (eot, ttf, woff, woff2, svg) files from `SVG` files.
- (generator) Added `config.font` method in `generate` function to generate `font` files.
- (generator) Added `generateFont` method

## 0.4.1

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icona/types",
"version": "0.4.1",
"version": "0.5.0",
"repository": {
"type": "git",
"url": "git+https://github.com/daangn/icona.git",
Expand All @@ -19,6 +19,7 @@
"@types/prettier": "^2.7.3",
"@types/svg-to-pdfkit": "^0.1.0",
"svgo": "^3.0.2",
"svgtofont": "^4.2.0",
"typescript": "^5.1.3"
},
"packageManager": "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/lib.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Config as SvgrConfig } from "@svgr/core";
import type { SVGtoPDFOptions as LibSVGtoPDFOptions } from "svg-to-pdfkit";
import type { Config as SvgoConfig } from "svgo";
import type { SvgToFontOptions } from "svgtofont";

type PDFKitConfig = PDFKit.PDFDocumentOptions & {
/**
Expand Down Expand Up @@ -167,7 +168,7 @@ export interface GeneratePNGConfig {
genMode?: GenerateMode;

/**
* generate drawable xml files
* generate drawable PNG files
* @default false
*/
active: boolean;
Expand Down
13 changes: 13 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @icona/utils

## 0.5.0

### Minor Changes

- af4efe8: - (generator) Added `svgtofont` package to generate `font` (eot, ttf, woff, woff2, svg) files from `SVG` files.
- (generator) Added `config.font` method in `generate` function to generate `font` files.
- (generator) Added `generateFont` method

### Patch Changes

- Updated dependencies [af4efe8]
- @icona/types@0.5.0

## 0.4.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icona/utils",
"version": "0.4.1",
"version": "0.5.0",
"repository": {
"type": "git",
"url": "git+https://github.com/daangn/icona.git",
Expand All @@ -25,7 +25,7 @@
"prepack": "yarn build"
},
"dependencies": {
"@icona/types": "^0.4.1",
"@icona/types": "^0.5.0",
"findup-sync": "^5.0.0"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
drawable
font
pdf
png
react
svg
5,822 changes: 5,822 additions & 0 deletions test/.icona/icons.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# test

test `@icona/generator` package.

```bash
yarn generate
```
3 changes: 2 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"include": [
"packages",
"figma-plugin/**/*",
".eslintrc.js"
".eslintrc.js",
"test"
],
"exclude": [
"packages/legacy",
Expand Down
Loading

0 comments on commit 74f785d

Please sign in to comment.