1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-03 12:49:22 +01:00

Add support for compiling plugins from TS to JS

This commit is contained in:
Lennard Fonteijn 2023-04-16 14:39:48 +02:00 committed by Lennard Fonteijn
parent de98595db1
commit 8bba93ba72
4 changed files with 22 additions and 1 deletions

View File

@ -35,6 +35,8 @@ module.exports = {
project: [
// server full
"./tsconfig.json",
// plugins
"./plugins/tsconfig.json",
// web UI
"./webui/tsconfig.json",
// tests

View File

@ -10,6 +10,7 @@
"prettier": "pprettier --write \"**/*.{js,json,ts,md,tsx,css,mjs,html}\"",
"prettier:check": "pprettier --check \"**/*.{js,json,ts,md,tsx,css,mjs,html}\"",
"build": "yarn webui:build && node packaging/build.mjs",
"build-plugin": "tsc --project ./plugins/tsconfig.json",
"typecheck-ws": "tsc",
"typecheck": "yarn workspaces foreach -A run typecheck-ws",
"lint": "eslint --format=pretty .",

17
plugins/tsconfig.json Normal file
View File

@ -0,0 +1,17 @@
{
"extends": ["../tsconfig.json"],
"compilerOptions": {
"declaration": false,
"emitDeclarationOnly": false,
"rootDir": ".",
"outDir": "./build",
"composite": false
},
"references": [
{
"path": ".."
}
],
"include": ["*.ts"],
"exclude": []
}

View File

@ -21,7 +21,8 @@
"rootDir": "components",
"outDir": "./build",
"isolatedModules": true,
"stripInternal": true
"stripInternal": true,
"composite": true
},
"include": ["components"],
"exclude": ["packaging", "chunk0.js", "webui", "tests"]