Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Aug 9, 2023
1 parent 7d18dae commit c14d0f1
Show file tree
Hide file tree
Showing 34 changed files with 2,101 additions and 1,758 deletions.
9 changes: 7 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80

[*.ts]
[*.{js,cjs,ts,tsx}]
quote_type = single

[*.md]
[*.{md, mdx}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 4

[*.{yml,yaml,toml}]
indent_style = space
8 changes: 1 addition & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
require("@ayuhito/eslint-config/patch");

module.exports = {
extends: ["@ayuhito/eslint-config/profile/node"],
parserOptions: { tsconfigRootDir: __dirname },
rules: {
"@typescript-eslint/no-throw-literal": "off",
}
extends: ['@ayuhito/eslint-config'],
};
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ The project exports the following data:

```ts
import {
APIv1,
APIv2,
APIVariable,
APIIconStatic,
APIIconVariable,
APILicense,
APIRegistry,
APIv1,
APIv2,
APIVariable,
APIIconStatic,
APIIconVariable,
APILicense,
APIRegistry,
} from "google-font-metadata";
const {
APIv1,
APIv2,
APIVariable,
APIIconStatic,
APIIconVariable,
APILicense,
APIRegistry,
APIv1,
APIv2,
APIVariable,
APIIconStatic,
APIIconVariable,
APILicense,
APIRegistry,
} = require("google-font-metadata");

console.dir(APIv2);
Expand Down Expand Up @@ -159,9 +159,9 @@ Scrapes the Google Fonts directory and uses the Google Fonts API to generate all

There are 3 default variants:

- `wght` - Only links to font files that only have the `wght` axis.
- `standard` - A default set of fonts that includes `wght, wdth, slnt, opsz` axis' if available.
- `full` - Links to font files that have all the axis' included within them.
- `wght` - Only links to font files that only have the `wght` axis.
- `standard` - A default set of fonts that includes `wght, wdth, slnt, opsz` axis' if available.
- `full` - Links to font files that have all the axis' included within them.

Furthermore, a variant is generated for each unique axis in the font, e.g. if `wdth` exists, `variants.wdth.normal.latin` will exist. Note that the `wght` axis is also included in each unique custom variant.

Expand Down Expand Up @@ -274,8 +274,8 @@ You can use the `gfm` CLI tool to update the metadata with fresh results from th

Flags:

- `-n, --normal` - Only fetch the normal Google Developer API for APIv1 and APIv2.
- `-v, --variable` - Only scrape the variable axis page for APIVariable. Note `key` does not need to be given if this option is passed.
- `-n, --normal` - Only fetch the normal Google Developer API for APIv1 and APIv2.
- `-v, --variable` - Only scrape the variable axis page for APIVariable. Note `key` does not need to be given if this option is passed.

You are able to get a Google Fonts API `key` value from [here](https://console.developers.google.com/apis/credentials). Alternatively, you can use a `.env` file with `API_KEY=keyvalue` instead of providing a key argument in the command.

Expand All @@ -285,19 +285,19 @@ You are able to get a Google Fonts API `key` value from [here](https://console.d

Flags:

- `-1, --v1` - Only parse and update APIv1.
- `-2, --v2` - Only parse and update APIv2.
- `-v, --variable` - Only parse and update APIVariable.
- `-l, --license` - Only parse and update APILicense.
- `-f, --force` - This skips the cache and force parses every font.
- `--no-validate` - This skips invoking `npx gfm validate` after finishing parsing.
- `-1, --v1` - Only parse and update APIv1.
- `-2, --v2` - Only parse and update APIv2.
- `-v, --variable` - Only parse and update APIVariable.
- `-l, --license` - Only parse and update APILicense.
- `-f, --force` - This skips the cache and force parses every font.
- `--no-validate` - This skips invoking `npx gfm validate` after finishing parsing.

##

`npx gfm validate` - Helper command to validate your existing metadata with a schema. This is automatically invoked with `npx gfm parse`.

Flags:

- `-1, --v1` - Only validate APIv1.
- `-2, --v2` - Only validate APIv2.
- `-v, --variable` - Only validate APIVariable.
- `-1, --v1` - Only validate APIv1.
- `-2, --v2` - Only validate APIv2.
- `-v, --variable` - Only validate APIVariable.
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,35 @@
"unicode range"
],
"dependencies": {
"@types/stylis": "^4.0.2",
"@octokit/core": "^4.2.0",
"@octokit/core": "^5.0.0",
"@types/stylis": "^4.2.0",
"cac": "^6.7.14",
"consola": "^3.1.0",
"consola": "^3.2.3",
"deepmerge": "^4.3.1",
"dotenv": "^16.0.3",
"execa": "^7.1.1",
"got": "^12.6.0",
"dotenv": "^16.3.1",
"execa": "^7.2.0",
"got": "^12.6.1",
"json-stringify-pretty-compact": "^4.0.0",
"linkedom": "^0.14.25",
"linkedom": "^0.15.1",
"p-queue": "^7.3.4",
"pathe": "^1.1.0",
"pathe": "^1.1.1",
"picocolors": "^1.0.0",
"puppeteer": "^19.11.1",
"stylis": "^4.1.3",
"puppeteer": "^21.0.2",
"stylis": "^4.3.0",
"zod": "^3.21.4"
},
"devDependencies": {
"@ayuhito/eslint-config": "^0.2.4",
"@types/node": "^18.16.1",
"c8": "^7.13.0",
"eslint": "^8.39.0",
"magic-string": "^0.30.0",
"msw": "^1.2.1",
"pkgroll": "^1.9.0",
"prettier": "^2.8.8",
"tsx": "^3.12.6",
"typescript": "^5.0.4",
"vitest": "^0.30.1"
"@ayuhito/eslint-config": "^0.4.1",
"@types/node": "^20.4.9",
"c8": "^8.0.1",
"eslint": "^8.46.0",
"magic-string": "^0.30.2",
"msw": "^1.2.3",
"pkgroll": "^1.11.0",
"prettier": "^3.0.1",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"vitest": "^0.34.1"
},
"scripts": {
"build": "pkgroll --target=node14 && tsx ./scripts/add-hashbang.ts",
Expand Down
Loading

0 comments on commit c14d0f1

Please sign in to comment.