Browse Source

Remove unused AI tag generation script and related package dependency from project.

pull/1569/head
codecalm 2 months ago
parent
commit
2cfcde7a01
  1. 39
      .build/generate-ai-tags.mjs
  2. 2
      package.json
  3. 147
      pnpm-lock.yaml

39
.build/generate-ai-tags.mjs

@ -1,39 +0,0 @@
import OpenAI from 'openai';
import { getAllIcons } from './helpers.mjs';
import { writeFileSync } from 'fs';
import dotenv from 'dotenv';
dotenv.config();
const client = new OpenAI();
const allIcons = getAllIcons();
let withoutTags = [];
for (const icon of allIcons.outline) {
if (icon.tags.length == 0 && withoutTags.length < 30) {
withoutTags.push(icon.name);
}
}
async function main() {
const completion = await client.chat.completions.create({
model: 'gpt-4o',
messages: [{
role: 'user',
content: `generate few tags for icon which represent for each icon: ${withoutTags.join(', ')}. Tags should be one world, lowercase and separated by comma. Generate minimum 10 tags for each icon. Write as json. Use original key. Tag should be different than original key. Tags should be array of strings.`
}],
response_format: {
type: 'json_object',
}
});
console.log(completion.choices[0].message.content);
writeFileSync('./new/tags.json', completion.choices[0].message.content);
}
if (withoutTags.length > 0) {
main();
}

2
package.json

@ -16,7 +16,6 @@
"build": "pnpm run validate && pnpm run update && pnpm run validate --hard && pnpm run optimize && pnpm run build:packages && pnpm run preview && pnpm run changelog-image && pnpm run zip && pnpm run update-readme",
"clean": "turbo run clean",
"test": "turbo run test",
"generate-ai-tags": "node ./.build/generate-ai-tags.mjs",
"changelog": "node ./.build/changelog.mjs",
"changelog-commit": "git add . && node ./.build/changelog-commit.mjs",
"changelog-image": "node ./.build/changelog-image.mjs",
@ -70,7 +69,6 @@
"jest-serializer-html": "catalog:",
"jsdom": "catalog:",
"minimist": "1.2.8",
"openai": "^4.73.1",
"parse-svg-path": "^0.1.2",
"prettier": "^3.2.5",
"release-it": "19.2.4",

147
pnpm-lock.yaml

@ -122,9 +122,6 @@ importers:
minimist:
specifier: 1.2.8
version: 1.2.8
openai:
specifier: ^4.73.1
version: 4.104.0(encoding@0.1.13)(ws@8.18.3)
parse-svg-path:
specifier: ^0.1.2
version: 0.1.2
@ -4880,15 +4877,9 @@ packages:
'@types/nlcst@2.0.3':
resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==}
'@types/node-fetch@2.6.13':
resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==}
'@types/node@16.9.1':
resolution: {integrity: sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==}
'@types/node@18.19.130':
resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==}
'@types/node@20.19.37':
resolution: {integrity: sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw==}
@ -7035,21 +7026,10 @@ packages:
resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
engines: {node: '>=14'}
form-data-encoder@1.7.2:
resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==}
form-data@3.0.4:
resolution: {integrity: sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==}
engines: {node: '>= 6'}
form-data@4.0.5:
resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}
engines: {node: '>= 6'}
formdata-node@4.4.1:
resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==}
engines: {node: '>= 12.20'}
formdata-polyfill@4.0.10:
resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
engines: {node: '>=12.20.0'}
@ -9088,18 +9068,6 @@ packages:
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
engines: {node: '>=12'}
openai@4.104.0:
resolution: {integrity: sha512-p99EFNsA/yX6UhVO93f5kJsDRLAg+CTA2RBqdHK4RtK8u5IJw32Hyb2dTGKbnnFmnuoBv5r7Z2CURI9sGZpSuA==}
hasBin: true
peerDependencies:
ws: ^8.18.0
zod: ^3.23.8
peerDependenciesMeta:
ws:
optional: true
zod:
optional: true
ora@5.4.1:
resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==}
engines: {node: '>=10'}
@ -10984,9 +10952,6 @@ packages:
uncrypto@0.1.3:
resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
@ -11483,10 +11448,6 @@ packages:
resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
engines: {node: '>= 8'}
web-streams-polyfill@4.0.0-beta.3:
resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==}
engines: {node: '>= 14'}
webidl-conversions@3.0.1:
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
@ -12067,35 +12028,35 @@ snapshots:
'@babel/preset-env': 7.29.0(@babel/core@7.29.0)
'@babel/runtime': 7.28.6
'@discoveryjs/json-ext': 0.6.3
'@ngtools/webpack': 21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3))
'@ngtools/webpack': 21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2))
ansi-colors: 4.1.3
autoprefixer: 10.4.27(postcss@8.5.6)
babel-loader: 10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.27.3))
babel-loader: 10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.20.2))
browserslist: 4.28.1
copy-webpack-plugin: 14.0.0(webpack@5.105.2(esbuild@0.27.3))
css-loader: 7.1.3(webpack@5.105.2(esbuild@0.27.3))
copy-webpack-plugin: 14.0.0(webpack@5.105.2(esbuild@0.20.2))
css-loader: 7.1.3(webpack@5.105.2(esbuild@0.20.2))
esbuild-wasm: 0.27.3
http-proxy-middleware: 3.0.5
istanbul-lib-instrument: 6.0.3
jsonc-parser: 3.3.1
karma-source-map-support: 1.4.0
less: 4.4.2
less-loader: 12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.27.3))
license-webpack-plugin: 4.0.2(webpack@5.105.2(esbuild@0.27.3))
less-loader: 12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.20.2))
license-webpack-plugin: 4.0.2(webpack@5.105.2(esbuild@0.20.2))
loader-utils: 3.3.1
mini-css-extract-plugin: 2.10.0(webpack@5.105.2(esbuild@0.27.3))
mini-css-extract-plugin: 2.10.0(webpack@5.105.2(esbuild@0.20.2))
open: 11.0.0
ora: 9.3.0
picomatch: 4.0.3
piscina: 5.1.4
postcss: 8.5.6
postcss-loader: 8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3))
postcss-loader: 8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2))
resolve-url-loader: 5.0.0
rxjs: 7.8.2
sass: 1.97.3
sass-loader: 16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.27.3))
sass-loader: 16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.20.2))
semver: 7.7.4
source-map-loader: 5.0.0(webpack@5.105.2(esbuild@0.27.3))
source-map-loader: 5.0.0(webpack@5.105.2(esbuild@0.20.2))
source-map-support: 0.5.21
terser: 5.46.0
tinyglobby: 0.2.15
@ -12106,7 +12067,7 @@ snapshots:
webpack-dev-middleware: 7.4.5(tslib@2.8.1)(webpack@5.105.2(esbuild@0.27.3))
webpack-dev-server: 5.2.3(tslib@2.8.1)(webpack@5.105.2(esbuild@0.27.3))
webpack-merge: 6.0.1
webpack-subresource-integrity: 5.1.0(webpack@5.105.2(esbuild@0.27.3))
webpack-subresource-integrity: 5.1.0(webpack@5.105.2(esbuild@0.20.2))
optionalDependencies:
'@angular/core': 21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10)
'@angular/platform-browser': 21.2.5(@angular/animations@21.2.5(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10)))(@angular/common@21.2.5(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10))(rxjs@7.8.2))(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10))
@ -12154,35 +12115,35 @@ snapshots:
'@babel/preset-env': 7.29.0(@babel/core@7.29.0)
'@babel/runtime': 7.28.6
'@discoveryjs/json-ext': 0.6.3
'@ngtools/webpack': 21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3))
'@ngtools/webpack': 21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2))
ansi-colors: 4.1.3
autoprefixer: 10.4.27(postcss@8.5.6)
babel-loader: 10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.27.3))
babel-loader: 10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.20.2))
browserslist: 4.28.1
copy-webpack-plugin: 14.0.0(webpack@5.105.2(esbuild@0.27.3))
css-loader: 7.1.3(webpack@5.105.2(esbuild@0.27.3))
copy-webpack-plugin: 14.0.0(webpack@5.105.2(esbuild@0.20.2))
css-loader: 7.1.3(webpack@5.105.2(esbuild@0.20.2))
esbuild-wasm: 0.27.3
http-proxy-middleware: 3.0.5
istanbul-lib-instrument: 6.0.3
jsonc-parser: 3.3.1
karma-source-map-support: 1.4.0
less: 4.4.2
less-loader: 12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.27.3))
license-webpack-plugin: 4.0.2(webpack@5.105.2(esbuild@0.27.3))
less-loader: 12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.20.2))
license-webpack-plugin: 4.0.2(webpack@5.105.2(esbuild@0.20.2))
loader-utils: 3.3.1
mini-css-extract-plugin: 2.10.0(webpack@5.105.2(esbuild@0.27.3))
mini-css-extract-plugin: 2.10.0(webpack@5.105.2(esbuild@0.20.2))
open: 11.0.0
ora: 9.3.0
picomatch: 4.0.3
piscina: 5.1.4
postcss: 8.5.6
postcss-loader: 8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3))
postcss-loader: 8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2))
resolve-url-loader: 5.0.0
rxjs: 7.8.2
sass: 1.97.3
sass-loader: 16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.27.3))
sass-loader: 16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.20.2))
semver: 7.7.4
source-map-loader: 5.0.0(webpack@5.105.2(esbuild@0.27.3))
source-map-loader: 5.0.0(webpack@5.105.2(esbuild@0.20.2))
source-map-support: 0.5.21
terser: 5.46.0
tinyglobby: 0.2.15
@ -12193,7 +12154,7 @@ snapshots:
webpack-dev-middleware: 7.4.5(tslib@2.8.1)(webpack@5.105.2(esbuild@0.27.3))
webpack-dev-server: 5.2.3(tslib@2.8.1)(webpack@5.105.2(esbuild@0.27.3))
webpack-merge: 6.0.1
webpack-subresource-integrity: 5.1.0(webpack@5.105.2(esbuild@0.27.3))
webpack-subresource-integrity: 5.1.0(webpack@5.105.2(esbuild@0.20.2))
optionalDependencies:
'@angular/core': 21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10)
'@angular/platform-browser': 21.2.5(@angular/animations@21.2.5(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10)))(@angular/common@21.2.5(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10))(rxjs@7.8.2))(@angular/core@21.2.5(@angular/compiler@21.2.5)(rxjs@7.8.2)(zone.js@0.14.10))
@ -15742,7 +15703,7 @@ snapshots:
'@tybys/wasm-util': 0.10.3
optional: true
'@ngtools/webpack@21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3))':
'@ngtools/webpack@21.2.3(@angular/compiler-cli@21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3))(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2))':
dependencies:
'@angular/compiler-cli': 21.2.5(@angular/compiler@21.2.5)(typescript@5.9.3)
typescript: 5.9.3
@ -17125,17 +17086,8 @@ snapshots:
dependencies:
'@types/unist': 3.0.3
'@types/node-fetch@2.6.13':
dependencies:
'@types/node': 20.19.37
form-data: 4.0.5
'@types/node@16.9.1': {}
'@types/node@18.19.130':
dependencies:
undici-types: 5.26.5
'@types/node@20.19.37':
dependencies:
undici-types: 6.21.0
@ -17864,7 +17816,7 @@ snapshots:
dependencies:
'@babel/core': 7.28.5
babel-loader@10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.27.3)):
babel-loader@10.0.0(@babel/core@7.29.0)(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
'@babel/core': 7.29.0
find-up: 5.0.0
@ -18608,7 +18560,7 @@ snapshots:
dependencies:
is-what: 4.1.16
copy-webpack-plugin@14.0.0(webpack@5.105.2(esbuild@0.27.3)):
copy-webpack-plugin@14.0.0(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
glob-parent: 6.0.2
normalize-path: 3.0.0
@ -18658,7 +18610,7 @@ snapshots:
dependencies:
uncrypto: 0.1.3
css-loader@7.1.3(webpack@5.105.2(esbuild@0.27.3)):
css-loader@7.1.3(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
icss-utils: 5.1.0(postcss@8.5.6)
postcss: 8.5.6
@ -19677,8 +19629,6 @@ snapshots:
cross-spawn: 7.0.6
signal-exit: 4.1.0
form-data-encoder@1.7.2: {}
form-data@3.0.4:
dependencies:
asynckit: 0.4.0
@ -19687,19 +19637,6 @@ snapshots:
hasown: 2.0.2
mime-types: 2.1.35
form-data@4.0.5:
dependencies:
asynckit: 0.4.0
combined-stream: 1.0.8
es-set-tostringtag: 2.1.0
hasown: 2.0.2
mime-types: 2.1.35
formdata-node@4.4.1:
dependencies:
node-domexception: 1.0.0
web-streams-polyfill: 4.0.0-beta.3
formdata-polyfill@4.0.10:
dependencies:
fetch-blob: 3.2.0
@ -20920,7 +20857,7 @@ snapshots:
picocolors: 1.1.1
shell-quote: 1.8.3
less-loader@12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.27.3)):
less-loader@12.3.1(less@4.4.2)(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
less: 4.4.2
optionalDependencies:
@ -20955,7 +20892,7 @@ snapshots:
leven@3.1.0: {}
license-webpack-plugin@4.0.2(webpack@5.105.2(esbuild@0.27.3)):
license-webpack-plugin@4.0.2(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
webpack-sources: 3.3.4
optionalDependencies:
@ -21597,7 +21534,7 @@ snapshots:
min-indent@1.0.1: {}
mini-css-extract-plugin@2.10.0(webpack@5.105.2(esbuild@0.27.3)):
mini-css-extract-plugin@2.10.0(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
schema-utils: 4.3.3
tapable: 2.3.0
@ -22184,20 +22121,6 @@ snapshots:
is-docker: 2.2.1
is-wsl: 2.2.0
openai@4.104.0(encoding@0.1.13)(ws@8.18.3):
dependencies:
'@types/node': 18.19.130
'@types/node-fetch': 2.6.13
abort-controller: 3.0.0
agentkeepalive: 4.6.0
form-data-encoder: 1.7.2
formdata-node: 4.4.1
node-fetch: 2.7.0(encoding@0.1.13)
optionalDependencies:
ws: 8.18.3
transitivePeerDependencies:
- encoding
ora@5.4.1:
dependencies:
bl: 4.1.0
@ -22555,7 +22478,7 @@ snapshots:
possible-typed-array-names@1.1.0: {}
postcss-loader@8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.27.3)):
postcss-loader@8.2.0(postcss@8.5.6)(typescript@5.9.3)(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
cosmiconfig: 9.0.1(typescript@5.9.3)
jiti: 2.6.1
@ -23405,7 +23328,7 @@ snapshots:
mkdirp: 0.5.6
rimraf: 2.7.1
sass-loader@16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.27.3)):
sass-loader@16.0.7(sass@1.97.3)(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
neo-async: 2.6.2
optionalDependencies:
@ -23847,7 +23770,7 @@ snapshots:
source-map-js@1.2.1: {}
source-map-loader@5.0.0(webpack@5.105.2(esbuild@0.27.3)):
source-map-loader@5.0.0(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
iconv-lite: 0.6.3
source-map-js: 1.2.1
@ -24557,8 +24480,6 @@ snapshots:
uncrypto@0.1.3: {}
undici-types@5.26.5: {}
undici-types@6.21.0: {}
undici-types@7.16.0:
@ -25132,8 +25053,6 @@ snapshots:
web-streams-polyfill@3.3.3: {}
web-streams-polyfill@4.0.0-beta.3: {}
webidl-conversions@3.0.1: {}
webidl-conversions@5.0.0: {}
@ -25202,7 +25121,7 @@ snapshots:
webpack-sources@3.3.4: {}
webpack-subresource-integrity@5.1.0(webpack@5.105.2(esbuild@0.27.3)):
webpack-subresource-integrity@5.1.0(webpack@5.105.2(esbuild@0.20.2)):
dependencies:
typed-assert: 1.0.9
webpack: 5.105.2(esbuild@0.27.3)

Loading…
Cancel
Save