mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-22 07:07:53 +00:00
feat: add llqqnt packages
This commit is contained in:
parent
6f848f3f0a
commit
4eeef19083
@ -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"
|
||||
|
20
packages/llqqntv0/manifest.json
Normal file
20
packages/llqqntv0/manifest.json
Normal 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"
|
||||
}
|
||||
}
|
14
packages/llqqntv0/pack.cts
Normal file
14
packages/llqqntv0/pack.cts
Normal 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'))
|
||||
})()
|
26
packages/llqqntv0/package.json
Normal file
26
packages/llqqntv0/package.json
Normal 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"
|
||||
}
|
||||
}
|
3
packages/llqqntv0/src/index.ts
Normal file
3
packages/llqqntv0/src/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import { chronocat } from '@chronocat/shell'
|
||||
|
||||
void chronocat()
|
10
packages/llqqntv0/tsconfig.json
Normal file
10
packages/llqqntv0/tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "lib",
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
],
|
||||
}
|
24
packages/llqqntv1/manifest.json
Normal file
24
packages/llqqntv1/manifest.json
Normal 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"
|
||||
}
|
||||
}
|
18
packages/llqqntv1/pack.cts
Normal file
18
packages/llqqntv1/pack.cts
Normal 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'),
|
||||
)
|
||||
})()
|
26
packages/llqqntv1/package.json
Normal file
26
packages/llqqntv1/package.json
Normal 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"
|
||||
}
|
||||
}
|
3
packages/llqqntv1/src/index.ts
Normal file
3
packages/llqqntv1/src/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import { chronocat } from '@chronocat/shell'
|
||||
|
||||
void chronocat()
|
10
packages/llqqntv1/tsconfig.json
Normal file
10
packages/llqqntv1/tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "lib",
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
],
|
||||
}
|
24
yarn.lock
24
yarn.lock
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user