diff --git a/package.json b/package.json index 9f07322..112346a 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/packages/llqqntv0/manifest.json b/packages/llqqntv0/manifest.json new file mode 100644 index 0000000..4ce815a --- /dev/null +++ b/packages/llqqntv0/manifest.json @@ -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" + } +} diff --git a/packages/llqqntv0/pack.cts b/packages/llqqntv0/pack.cts new file mode 100644 index 0000000..3361fc5 --- /dev/null +++ b/packages/llqqntv0/pack.cts @@ -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')) +})() diff --git a/packages/llqqntv0/package.json b/packages/llqqntv0/package.json new file mode 100644 index 0000000..ba1c730 --- /dev/null +++ b/packages/llqqntv0/package.json @@ -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" + } +} diff --git a/packages/llqqntv0/src/index.ts b/packages/llqqntv0/src/index.ts new file mode 100644 index 0000000..f603751 --- /dev/null +++ b/packages/llqqntv0/src/index.ts @@ -0,0 +1,3 @@ +import { chronocat } from '@chronocat/shell' + +void chronocat() diff --git a/packages/llqqntv0/tsconfig.json b/packages/llqqntv0/tsconfig.json new file mode 100644 index 0000000..42cbe59 --- /dev/null +++ b/packages/llqqntv0/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base", + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + }, + "include": [ + "src", + ], +} diff --git a/packages/llqqntv1/manifest.json b/packages/llqqntv1/manifest.json new file mode 100644 index 0000000..227357b --- /dev/null +++ b/packages/llqqntv1/manifest.json @@ -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" + } +} diff --git a/packages/llqqntv1/pack.cts b/packages/llqqntv1/pack.cts new file mode 100644 index 0000000..defc7ff --- /dev/null +++ b/packages/llqqntv1/pack.cts @@ -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'), + ) +})() diff --git a/packages/llqqntv1/package.json b/packages/llqqntv1/package.json new file mode 100644 index 0000000..8753b7a --- /dev/null +++ b/packages/llqqntv1/package.json @@ -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" + } +} diff --git a/packages/llqqntv1/src/index.ts b/packages/llqqntv1/src/index.ts new file mode 100644 index 0000000..f603751 --- /dev/null +++ b/packages/llqqntv1/src/index.ts @@ -0,0 +1,3 @@ +import { chronocat } from '@chronocat/shell' + +void chronocat() diff --git a/packages/llqqntv1/tsconfig.json b/packages/llqqntv1/tsconfig.json new file mode 100644 index 0000000..42cbe59 --- /dev/null +++ b/packages/llqqntv1/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base", + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + }, + "include": [ + "src", + ], +} diff --git a/yarn.lock b/yarn.lock index 86ccc1f..3db2cec 100644 --- a/yarn.lock +++ b/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"