feat: add llqqnt packages

This commit is contained in:
Il Harper 2024-03-05 12:32:12 +08:00
parent 6f848f3f0a
commit 4eeef19083
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC
12 changed files with 179 additions and 1 deletions

View File

@ -14,7 +14,7 @@
],
"scripts": {
"clean": "ts-node -T scripts/clean.cts",
"build": "concurrently -n shell \"yarn workspace @chronocat/shell build\" && concurrently -n api,event \"yarn workspace @chronocat/engine-chronocat-api build\" \"yarn workspace @chronocat/engine-chronocat-event build\""
"build": "concurrently -n shell \"yarn workspace @chronocat/shell build\" && concurrently -n llqqntv0,llqqntv1,api,event \"yarn workspace @chronocat/plugin-llqqntv0 build\" \"yarn workspace @chronocat/plugin-llqqntv1 build\" \"yarn workspace @chronocat/engine-chronocat-api build\" \"yarn workspace @chronocat/engine-chronocat-event build\""
},
"resolutions": {
"ts-node": "11.0.0-beta.1"

View File

@ -0,0 +1,20 @@
{
"manifest_version": 3,
"type": "extension",
"name": "Chronocat",
"slug": "chronocat",
"description": "小巧轻便的 Red 实现",
"version": "0.2.0",
"author": {
"name": "Team Chrononeko",
"link": "https://github.com/chrononeko"
},
"repository": {
"repo": "chrononeko/LiteLoaderQQNT-Plugin-Chronocat",
"branch": "master"
},
"platform": ["win32", "linux", "darwin"],
"injects": {
"main": "./src/main.js"
}
}

View File

@ -0,0 +1,14 @@
import { cp, mkdir } from 'node:fs/promises'
import { join, resolve } from 'node:path'
void (async () => {
const distPath = resolve(
__dirname,
'../../build/dist/llqqntv0/LiteLoaderQQNT-Plugin-Chronocat',
)
const srcPath = join(distPath, 'src')
await mkdir(srcPath, { recursive: true })
await cp(join(__dirname, 'lib/index.js'), join(srcPath, 'main.js'))
await cp(join(__dirname, 'manifest.json'), join(distPath, 'manifest.json'))
})()

View File

@ -0,0 +1,26 @@
{
"name": "@chronocat/plugin-llqqntv0",
"description": "小巧轻便的 Red 实现",
"version": "0.0.0",
"private": true,
"license": "AGPL-3.0",
"author": {
"name": "Il Harper",
"email": "hi@ilharper.com",
"url": "https://ilharper.com"
},
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"build": "ts-node -T ../../scripts/build.cts build && ts-node -T pack.cts"
},
"devDependencies": {
"@chronocat/shell": "workspace:packages/shell",
"concurrently": "^8.2.1",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"typescript": "~5.1.0"
}
}

View File

@ -0,0 +1,3 @@
import { chronocat } from '@chronocat/shell'
void chronocat()

View File

@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": [
"src",
],
}

View File

@ -0,0 +1,24 @@
{
"manifest_version": 4,
"type": "extension",
"name": "Chronocat",
"slug": "chronocat",
"description": "小巧轻便的 Red 实现",
"version": "0.2.0",
"thumbnail": "./chronocat.png",
"authors": [
{
"name": "Team Chrononeko",
"link": "https://github.com/chrononeko"
}
],
"repository": {
"repo": "chrononeko/LiteLoaderQQNT-Plugin-Chronocat",
"branch": "master"
},
"platform": ["win32", "linux", "darwin"],
"dependencies": [],
"injects": {
"main": "./src/main.js"
}
}

View File

@ -0,0 +1,18 @@
import { cp, mkdir } from 'node:fs/promises'
import { join, resolve } from 'node:path'
void (async () => {
const distPath = resolve(
__dirname,
'../../build/dist/llqqntv1/LiteLoaderQQNT-Plugin-Chronocat',
)
const srcPath = join(distPath, 'src')
await mkdir(srcPath, { recursive: true })
await cp(join(__dirname, 'lib/index.js'), join(srcPath, 'main.js'))
await cp(join(__dirname, 'manifest.json'), join(distPath, 'manifest.json'))
await cp(
resolve(__dirname, '../docs/static/chronocat.png'),
join(distPath, 'chronocat.png'),
)
})()

View File

@ -0,0 +1,26 @@
{
"name": "@chronocat/plugin-llqqntv1",
"description": "小巧轻便的 Red 实现",
"version": "0.0.0",
"private": true,
"license": "AGPL-3.0",
"author": {
"name": "Il Harper",
"email": "hi@ilharper.com",
"url": "https://ilharper.com"
},
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"build": "ts-node -T ../../scripts/build.cts build && ts-node -T pack.cts"
},
"devDependencies": {
"@chronocat/shell": "workspace:packages/shell",
"concurrently": "^8.2.1",
"tosource": "^2.0.0-alpha.3",
"ts-node": "^10.9.1",
"typescript": "~5.1.0"
}
}

View File

@ -0,0 +1,3 @@
import { chronocat } from '@chronocat/shell'
void chronocat()

View File

@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
},
"include": [
"src",
],
}

View File

@ -456,6 +456,30 @@ __metadata:
languageName: unknown
linkType: soft
"@chronocat/plugin-llqqntv0@workspace:packages/llqqntv0":
version: 0.0.0-use.local
resolution: "@chronocat/plugin-llqqntv0@workspace:packages/llqqntv0"
dependencies:
"@chronocat/shell": "workspace:packages/shell"
concurrently: "npm:^8.2.1"
tosource: "npm:^2.0.0-alpha.3"
ts-node: "npm:^10.9.1"
typescript: "npm:~5.1.0"
languageName: unknown
linkType: soft
"@chronocat/plugin-llqqntv1@workspace:packages/llqqntv1":
version: 0.0.0-use.local
resolution: "@chronocat/plugin-llqqntv1@workspace:packages/llqqntv1"
dependencies:
"@chronocat/shell": "workspace:packages/shell"
concurrently: "npm:^8.2.1"
tosource: "npm:^2.0.0-alpha.3"
ts-node: "npm:^10.9.1"
typescript: "npm:~5.1.0"
languageName: unknown
linkType: soft
"@chronocat/shell@workspace:packages/shell":
version: 0.0.0-use.local
resolution: "@chronocat/shell@workspace:packages/shell"