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:
parent
de98595db1
commit
8bba93ba72
@ -35,6 +35,8 @@ module.exports = {
|
||||
project: [
|
||||
// server full
|
||||
"./tsconfig.json",
|
||||
// plugins
|
||||
"./plugins/tsconfig.json",
|
||||
// web UI
|
||||
"./webui/tsconfig.json",
|
||||
// tests
|
||||
|
@ -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
17
plugins/tsconfig.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": ["../tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"declaration": false,
|
||||
"emitDeclarationOnly": false,
|
||||
"rootDir": ".",
|
||||
"outDir": "./build",
|
||||
"composite": false
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": ".."
|
||||
}
|
||||
],
|
||||
"include": ["*.ts"],
|
||||
"exclude": []
|
||||
}
|
@ -21,7 +21,8 @@
|
||||
"rootDir": "components",
|
||||
"outDir": "./build",
|
||||
"isolatedModules": true,
|
||||
"stripInternal": true
|
||||
"stripInternal": true,
|
||||
"composite": true
|
||||
},
|
||||
"include": ["components"],
|
||||
"exclude": ["packaging", "chunk0.js", "webui", "tests"]
|
||||
|
Loading…
Reference in New Issue
Block a user