Skip to content

Commit

Permalink
feat: add tii icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 28, 2023
1 parent 1764447 commit b6b325c
Show file tree
Hide file tree
Showing 11 changed files with 184 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
workflow_run:
workflows:
- CCI Workflow
- TII Workflow
types:
- completed

Expand All @@ -29,6 +30,9 @@ jobs:
- name: build icons cci
working-directory: icons/cci
run: npm run build
- name: build icons tii
working-directory: icons/tii
run: npm run build



Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/tii.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: TII Workflow
on:
push:
branches:
- main

jobs:
build-npm:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=8192
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm run build
- run: npm install

- name: build icons tii
working-directory: icons/tii
run: npm run build

- run: npm publish --access public
name: 📦 @icongo/tii publish to NPM
working-directory: icons/tii
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: tii-artifact
path: |
icons/tii/esm/**/*
icons/tii/lib/**/*
icons/tii/src/**/*
icons/tii/svg/**/*
github-package:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=8192
needs: build-npm
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@jaywcjlove'

- uses: actions/download-artifact@v3
with:
name: tii-artifact
path: icons/tii/

- name: Display structure of downloaded files
run: ls -R
working-directory: icons/tii/

- name: "Modify @icongo/tii => @jaywcjlove/icongo-tii"
uses: jaywcjlove/github-action-package@main
continue-on-error: true
with:
path: icons/tii/package.json
rename: '@jaywcjlove/icongo-tii'

- run: npm publish
working-directory: icons/tii
name: 📦 @jaywcjlove/icongo-tii publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Easily include popular icons in your React projects and provide an easy tool to
| `@icongo/sti` | [![npm version](https://img.shields.io/npm/v/@icongo/sti.svg)](https://www.npmjs.com/package/@icongo/sti) | [`#preview`](https://icongo.github.io/#/icons/sti/) |
| `@icongo/tb` | [![npm version](https://img.shields.io/npm/v/@icongo/tb.svg)](https://www.npmjs.com/package/@icongo/tb) | [`#preview`](https://icongo.github.io/#/icons/tb/) |
| `@icongo/ti` | [![npm version](https://img.shields.io/npm/v/@icongo/ti.svg)](https://www.npmjs.com/package/@icongo/ti) | [`#preview`](https://icongo.github.io/#/icons/ti/) |
| `@icongo/tii` | [![npm version](https://img.shields.io/npm/v/@icongo/tii.svg)](https://www.npmjs.com/package/@icongo/tii) | [`#preview`](https://icongo.github.io/#/icons/tii/) |
| `@icongo/tn` | [![npm version](https://img.shields.io/npm/v/@icongo/tn.svg)](https://www.npmjs.com/package/@icongo/tn) | [`#preview`](https://icongo.github.io/#/icons/tn/) |
| `@icongo/uiw` | [![npm version](https://img.shields.io/npm/v/@icongo/uiw.svg)](https://www.npmjs.com/package/@icongo/uiw) | [`#preview`](https://icongo.github.io/#/icons/uiw/) |
| `@icongo/vl` | [![npm version](https://img.shields.io/npm/v/@icongo/vl.svg)](https://www.npmjs.com/package/@icongo/vl) | [`#preview`](https://icongo.github.io/#/icons/vl/) |
Expand Down
10 changes: 10 additions & 0 deletions icons/tii/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.*~
~*.*
*
!.gitignore
!.npmignore
!tsconfig.json
!package.json
!svgo.config.js
!data
!README.md
3 changes: 3 additions & 0 deletions icons/tii/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!lib/*
!esm/*
23 changes: 23 additions & 0 deletions icons/tii/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Themify Icons
===

[![npm version](https://img.shields.io/npm/v/@icongo/tii.svg)](https://www.npmjs.com/package/@icongo/tii)
![SVG Icons](https://shields.io/badge/SVG-icons-green?logo=svg&style=flat)
![SVG Icons](https://shields.io/badge/TypeScript-Support-green?logo=TypeScript&style=flat)
![React Components](https://shields.io/badge/React-components-green?logo=react&style=flat)

[Preview Icons](http://icongo.github.io/#/icons/tii)

```bash
npm i @icongo/tii
```

```jsx
import { IconName } from '@icongo/tii';
import data from '@icongo/tii/data.json';
import names from '@icongo/tii/names.json';
```

## License

Licensed under the MIT License.
29 changes: 29 additions & 0 deletions icons/tii/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "@icongo/tii",
"description": "Themify Icons",
"version": "1.1.2",
"main": "./lib/index.js",
"module": "./esm/index.js",
"types": "./lib/index.d.ts",
"sideEffects": false,
"homepage": "http://icongo.github.io/#/icons/tii",
"repository": {
"type": "git",
"url": "https://github.com/jaywcjlove/icongo.git"
},
"scripts": {
"cpy": "cpy '../../www/public/icons/tii/*.svg' svg --flat",
"icongo": "icongo --prefix TII --source svg -o ./src",
"build": "npm run cpy && npm run icongo && tsbb build --no-source-maps",
"start": "npm run build"
},
"keywords": [
"icongo",
"Themify",
"react-icons",
"icons",
"icon"
],
"author": "jaywcjlove",
"license": "MIT"
}
22 changes: 22 additions & 0 deletions icons/tii/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"baseUrl": ".",
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
}
1 change: 1 addition & 0 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"@icongo/sti": "1.1.2",
"@icongo/tb": "1.1.2",
"@icongo/ti": "1.1.2",
"@icongo/tii": "1.1.2",
"@icongo/tn": "1.1.2",
"@icongo/uiw": "1.1.2",
"@icongo/vl": "1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion www/public/icons
Submodule icons updated 352 files
8 changes: 8 additions & 0 deletions www/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import riNames from '@icongo/ri/lib/data.json';
import eiNames from '@icongo/ei/lib/data.json';
import faNames from '@icongo/fa/lib/data.json';
import tiNames from '@icongo/ti/lib/data.json';
import tiiNames from '@icongo/tii/lib/data.json';
import ccpNames from '@icongo/ccp/lib/data.json';
import cciNames from '@icongo/cci/lib/data.json';
import iiNames from '@icongo/ii/lib/data.json';
Expand Down Expand Up @@ -528,6 +529,13 @@ export const info: Info = {
npm: '@icongo/ti',
names: tiNames,
},
tii: {
title: 'Themify Icons',
license: 'MIT',
gh: 'https://github.com/lykmapipo/themify-icons',
npm: '@icongo/tii',
names: tiiNames,
},
tn: {
title: 'Teenyicons Icons',
license: 'CC BY-SA 4.0',
Expand Down

0 comments on commit b6b325c

Please sign in to comment.