Add sites:init script

This commit is contained in:
freearhey 2025-01-12 21:37:20 +03:00
parent dd3844f6dd
commit e68a5b5f7f
3 changed files with 14 additions and 13 deletions

14
package-lock.json generated
View file

@ -11,7 +11,7 @@
"@alex_neo/jest-expect-message": "^1.0.5",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@freearhey/core": "^0.3.1",
"@freearhey/core": "^0.4.0",
"@freearhey/search-js": "^0.1.1",
"@ntlab/sfetch": "^1.0.0",
"@octokit/plugin-paginate-rest": "^11.3.6",
@ -1202,9 +1202,9 @@
}
},
"node_modules/@freearhey/core": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@freearhey/core/-/core-0.3.1.tgz",
"integrity": "sha512-9n4p4DcRKWz4zU6XluDEGKxiFRwlr+Nhn6DJg5tCG6Cov/yvN/TfGACRGCmJKXkVvf4TSKxIE3hZSKEOMRZI2w==",
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@freearhey/core/-/core-0.4.0.tgz",
"integrity": "sha512-7gATMRqJSCIsdpbaQ4HJKSkMhWe1dxzRhDZiQ/SgOhchrs/A1jRpDJiFSOQg7xyhYCd1j+m4YzRSVKfYJmT1GA==",
"dependencies": {
"@types/fs-extra": "^11.0.2",
"@types/lodash": "^4.14.198",
@ -10027,9 +10027,9 @@
}
},
"@freearhey/core": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/@freearhey/core/-/core-0.3.1.tgz",
"integrity": "sha512-9n4p4DcRKWz4zU6XluDEGKxiFRwlr+Nhn6DJg5tCG6Cov/yvN/TfGACRGCmJKXkVvf4TSKxIE3hZSKEOMRZI2w==",
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@freearhey/core/-/core-0.4.0.tgz",
"integrity": "sha512-7gATMRqJSCIsdpbaQ4HJKSkMhWe1dxzRhDZiQ/SgOhchrs/A1jRpDJiFSOQg7xyhYCd1j+m4YzRSVKfYJmT1GA==",
"requires": {
"@types/fs-extra": "^11.0.2",
"@types/lodash": "^4.14.198",

View file

@ -9,6 +9,7 @@
"channels:parse": "npx tsx scripts/commands/channels/parse.ts",
"channels:editor": "npx tsx scripts/commands/channels/editor.ts",
"channels:validate": "npx tsx scripts/commands/channels/validate.ts",
"sites:init": "npx tsx scripts/commands/sites/init.ts",
"sites:update": "npx tsx scripts/commands/sites/update.ts",
"grab": "npx tsx scripts/commands/epg/grab.ts",
"serve": "npx serve",
@ -29,14 +30,14 @@
"transform": {
"^.+\\.(ts|js)$": "@swc/jest"
},
"testRegex": "(tests|sites)/(.*?/)?.*test.(js|ts)$",
"testMatch": ["<rootDir>/sites/**/*.test.(js|ts)", "<rootDir>/tests/commands/**/*.test.(js|ts)"],
"testTimeout": 10000
},
"dependencies": {
"@alex_neo/jest-expect-message": "^1.0.5",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@freearhey/core": "^0.3.1",
"@freearhey/core": "^0.4.0",
"@freearhey/search-js": "^0.1.1",
"@ntlab/sfetch": "^1.0.0",
"@octokit/plugin-paginate-rest": "^11.3.6",

View file

@ -396,10 +396,10 @@
dependencies:
levn "^0.4.1"
"@freearhey/core@^0.3.1":
version "0.3.1"
resolved "https://registry.npmjs.org/@freearhey/core/-/core-0.3.1.tgz"
integrity sha512-9n4p4DcRKWz4zU6XluDEGKxiFRwlr+Nhn6DJg5tCG6Cov/yvN/TfGACRGCmJKXkVvf4TSKxIE3hZSKEOMRZI2w==
"@freearhey/core@^0.4.0":
version "0.4.0"
resolved "https://registry.npmjs.org/@freearhey/core/-/core-0.4.0.tgz"
integrity sha512-7gATMRqJSCIsdpbaQ4HJKSkMhWe1dxzRhDZiQ/SgOhchrs/A1jRpDJiFSOQg7xyhYCd1j+m4YzRSVKfYJmT1GA==
dependencies:
"@types/fs-extra" "^11.0.2"
"@types/lodash" "^4.14.198"