-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
5,664 additions
and
4,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"dl-iconfont": patch | ||
--- | ||
|
||
fix: add missing package fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"dl-iconfont": minor | ||
--- | ||
|
||
feat: use top level await |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
iconfont.js | ||
lib | ||
!/.github | ||
!/.*.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{ | ||
"extends": "@1stg" | ||
"root": true, | ||
"extends": "@1stg", | ||
"overrides": [ | ||
{ | ||
"files": ".github/*.yml", | ||
"rules": { | ||
"unicorn/filename-case": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
github: [JounQin] | ||
open_collective: rxts | ||
github: | ||
- JounQin | ||
- 1stG | ||
- rxts | ||
- unts | ||
patreon: 1stG | ||
open_collective: unts | ||
custom: | ||
- https://opencollective.com/1stG | ||
- https://opencollective.com/rxts | ||
- https://afdian.net/@JounQin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Size Limit | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
size-limit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- uses: andresz1/size-limit-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
skip_step: install | ||
script: yarn size-limit --json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules | |
iconfont.js | ||
.*cache | ||
*.log | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tasks: | ||
- init: yarn && yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,24 +3,60 @@ | |
"version": "0.1.1", | ||
"type": "module", | ||
"description": "An iconfont downloader via puppeteer.", | ||
"repository": "https://github.com/rx-ts/dl-iconfont.git", | ||
"repository": "https://github.com/un-ts/dl-iconfont.git", | ||
"author": "Zhenggang Su <[email protected]>", | ||
"contributors": [ | ||
"JounQin <[email protected]>" | ||
], | ||
"donate": { | ||
"recipients": [ | ||
{ | ||
"name": "unts", | ||
"platform": "opencollective", | ||
"address": "https://opencollective.com/unts", | ||
"weight": 60 | ||
}, | ||
{ | ||
"name": "rxts", | ||
"platform": "opencollective", | ||
"address": "https://opencollective.com/rxts", | ||
"weight": 20 | ||
}, | ||
{ | ||
"name": "1stG", | ||
"email": "[email protected]", | ||
"weight": 20, | ||
"platforms": [ | ||
{ | ||
"platform": "opencollective", | ||
"address": "https://opencollective.com/1stG" | ||
}, | ||
{ | ||
"platform": "patreon", | ||
"address": "https://www.patreon.com/1stG" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"funding": "https://opencollective.com/unts", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=12" | ||
"node": "^14.18.0 || >=16.0.0" | ||
}, | ||
"bin": { | ||
"dli": "./bin/cli.js", | ||
"dl-iconfont": "./bin/cli.js", | ||
"iconfont-dl": "./bin/cli.js" | ||
}, | ||
"main": "lib/index.cjs", | ||
"module": "lib", | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs" | ||
}, | ||
"types": "lib", | ||
"files": [ | ||
"lib" | ||
], | ||
|
@@ -35,35 +71,43 @@ | |
"build": "run-p build:*", | ||
"build:r": "r -f cjs", | ||
"build:tsc": "tsc -b", | ||
"dev": "yarn ts ./src/cli.ts", | ||
"dev": "tsx ./src/cli.ts", | ||
"lint": "run-p lint:*", | ||
"lint:es": "eslint . -f friendly", | ||
"lint:tsc": "tsc --noEmit", | ||
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0", | ||
"prerelease": "yarn build", | ||
"release": "changeset publish", | ||
"ts": "node --loader ts-node/esm", | ||
"typecov": "type-coverage" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^10.0.0", | ||
"got": "^11.8.2", | ||
"puppeteer": "^10.2.0", | ||
"tslib": "^2.3.1" | ||
"dotenv": "^16.0.1", | ||
"got": "^12.3.1", | ||
"puppeteer": "^16.1.0", | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@1stg/lib-config": "^4.0.0", | ||
"@changesets/changelog-github": "^0.4.1", | ||
"@changesets/cli": "^2.17.0", | ||
"@types/puppeteer": "^5.4.4", | ||
"ts-node": "^10.2.1", | ||
"tslint": "^6.1.3", | ||
"type-coverage": "^2.18.2", | ||
"typescript": "^4.4.3" | ||
"@1stg/lib-config": "^9.0.2", | ||
"@changesets/changelog-github": "^0.4.6", | ||
"@changesets/cli": "^2.24.2", | ||
"@types/puppeteer": "^5.4.6", | ||
"@types/web": "^0.0.71", | ||
"size-limit": "^8.0.0", | ||
"size-limit-preset-node-lib": "^0.1.0", | ||
"tsx": "^3.8.1", | ||
"type-coverage": "^2.22.0", | ||
"typescript": "^4.7.4", | ||
"yarn-deduplicate": "^5.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"size-limit": [ | ||
{ | ||
"path": "lib/cli.js", | ||
"limit": "550B" | ||
} | ||
], | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"cache": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import fs from 'fs' | ||
import fs from 'node:fs' | ||
|
||
import got from 'got' | ||
import puppeteer from 'puppeteer' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.