Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP [poc] get rid of ts-node #2563

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions configs/base.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"es6",
"dom"
],
"sourceMap": true
"sourceMap": true,
"plugins": [
{
"name": "tslint-language-service"
}
]
}
}
}
1 change: 0 additions & 1 deletion configs/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
--require ignore-styles
--require monaco-languageclient/lib/register-vscode
--require ts-node/register
--require reflect-metadata/Reflect
--reporter spec
--watch-extensions ts
10 changes: 0 additions & 10 deletions dev-packages/application-manager/compile.tsconfig.json

This file was deleted.

16 changes: 16 additions & 0 deletions dev-packages/application-manager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../application-package"
}
]
}
10 changes: 0 additions & 10 deletions dev-packages/application-package/compile.tsconfig.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"baseUrl": "."
"composite": true
},
"include": [
"src"
]
],
"references": []
}
10 changes: 0 additions & 10 deletions dev-packages/cli/compile.tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion dev-packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"scripts": {
"prepare": "yarn run clean && yarn build",
"clean": "rimraf lib",
"build": "tsc -p compile.tsconfig.json",
"build": "tsc -b",
"watch": "yarn build -w",
"test": "echo 'skip'",
"docs": "echo 'skip'"
Expand Down
16 changes: 16 additions & 0 deletions dev-packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../application-manager"
}
]
}
10 changes: 5 additions & 5 deletions dev-packages/ext-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"docs": "echo 'skip'",
"ext:clean": "theiaext compile:clean && theiaext docs:clean && theiaext test:clean",
"ext:build": "concurrently -n compile,lint -c blue,green \"theiaext compile\" \"theiaext lint\"",
"ext:compile": "tsc -p compile.tsconfig.json",
"ext:compile": "tsc -b",
"ext:compile:clean": "rimraf lib",
"ext:lint": "tslint -c ../../configs/build.tslint.json --project compile.tsconfig.json",
"ext:watch": "tsc -w -p compile.tsconfig.json",
"ext:docs": "typedoc --tsconfig compile.tsconfig.json --options ../../configs/typedoc.json",
"ext:lint": "tslint -c ../../configs/build.tslint.json --project tsconfig.json",
"ext:watch": "tsc -w -b",
"ext:docs": "typedoc --tsconfig tsconfig.json --options ../../configs/typedoc.json",
"ext:docs:clean": "rimraf docs/api",
"ext:test": "nyc mocha --opts ../../configs/mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test": "nyc mocha --opts ../../configs/mocha.opts \"./lib/**/*.*spec.js\"",
"ext:test:watch": "mocha -w --opts ../../configs/mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test:clean": "rimraf .nyc_output && rimraf coverage"
}
Expand Down
3 changes: 0 additions & 3 deletions examples/browser/compile.tsconfig.json

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
"tslint": "^5.10.0",
"tslint-language-service": "^0.9.9",
"typedoc": "^0.8",
"typescript": "^3.1.3",
"typescript": "next",
"uuid": "^3.1.0",
"wdio-mocha-framework": "0.5.9",
"wdio-selenium-standalone-service": "0.0.8",
"wdio-spec-reporter": "0.1.0",
"webdriverio": "4.9.2"
},
"scripts": {
"prepare": "yarn prepare:travis && yarn prepare:hoisting && yarn rebuild:clean && yarn build:clean",
"prepare": "node scripts/configure-references && yarn prepare:travis && yarn prepare:hoisting && yarn rebuild:clean && yarn build:clean",
"prepare:travis": "node scripts/prepare-travis",
"prepare:hoisting": "node scripts/check-hoisting",
"build": "run build",
Expand All @@ -61,7 +61,8 @@
"rebuild:browser": "theia rebuild:browser",
"rebuild:electron": "theia rebuild:electron",
"rebuild:electron:debug": "DEBUG=electron-rebuild && yarn rebuild:electron",
"watch": "lerna run watch --scope \"@theia/!(example-)*\" --parallel",
"compile": "tsc -b",
"watch": "tsc -b -w -v",
"publish": "yarn && yarn test && yarn publish:latest",
"publish:latest": "lerna publish --registry=https://registry.npmjs.org/ --skip-git --force-publish",
"publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary=next --npm-tag=next --force-publish --skip-git --yes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"baseUrl": "."
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../core"
}
]
}
10 changes: 0 additions & 10 deletions packages/callhierarchy/compile.tsconfig.json

This file was deleted.

25 changes: 25 additions & 0 deletions packages/callhierarchy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "../../configs/base.tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../core"
},
{
"path": "../editor"
},
{
"path": "../languages"
},
{
"path": "../monaco"
}
]
}
10 changes: 0 additions & 10 deletions packages/console/compile.tsconfig.json

This file was deleted.

16 changes: 16 additions & 0 deletions packages/console/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../monaco"
}
]
}
16 changes: 16 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../../dev-packages/application-package"
}
]
}
10 changes: 0 additions & 10 deletions packages/cpp/compile.tsconfig.json

This file was deleted.

37 changes: 37 additions & 0 deletions packages/cpp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../core"
},
{
"path": "../editor"
},
{
"path": "../filesystem"
},
{
"path": "../languages"
},
{
"path": "../monaco"
},
{
"path": "../preferences"
},
{
"path": "../process"
},
{
"path": "../task"
}
]
}
10 changes: 0 additions & 10 deletions packages/debug-nodejs/compile.tsconfig.json

This file was deleted.

16 changes: 16 additions & 0 deletions packages/debug-nodejs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
},
"include": [
"src"
],
"references": [
{
"path": "../debug"
}
]
}
10 changes: 0 additions & 10 deletions packages/debug/compile.tsconfig.json

This file was deleted.

Loading