Skip to content

Commit

Permalink
Share configs between runtime and dev packages
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Oct 19, 2017
1 parent aa4c153 commit faf4e78
Show file tree
Hide file tree
Showing 52 changed files with 73 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"--no-timeouts",
"--colors",
"--opts",
"${workspaceRoot}/packages/mocha.opts"
"${workspaceRoot}/configs/mocha.opts"
],
"env": {
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - Mac: $HOME/Library/Application Support/Code/User/settings.json
{
"tslint.enable": true,
"tslint.configFile": "packages/strict.tslint.json",
"tslint.configFile": "configs/strict.tslint.json",
"editor.formatOnSave": true,
"search.exclude": {
"**/node_modules": true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dev-packages/application-package/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../packages/base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
19 changes: 12 additions & 7 deletions dev-packages/application-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
},
"homepage": "https://github.com/theia-ide/theia",
"files": [
"bin",
"lib",
"src"
],
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"prepare": "yarn run clean && yarn build",
"clean": "rimraf lib",
"build": "tsc -p compile.tsconfig.json",
"watch": "yarn build -w",
"test": "echo 'skip'",
"docs": "echo 'skip'"
"prepare": "yarn run clean && yarn run build",
"clean": "theiaext clean",
"build": "theiaext build",
"watch": "theiaext watch",
"test": "theiaext test",
"docs": "theiaext docs"
},
"dependencies": {
"@types/fs-extra": "^4.0.2",
Expand All @@ -52,5 +51,11 @@
"url-loader": "^0.5.8",
"webpack": "^2.2.1",
"write-json-file": "^2.2.0"
},
"devDependencies": {
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion dev-packages/cli/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../packages/base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
8 changes: 4 additions & 4 deletions dev-packages/ext-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"ext:build": "concurrently -n compile,lint -c blue,green \"theiaext compile\" \"theiaext lint\"",
"ext:compile": "tsc -p compile.tsconfig.json",
"ext:compile:clean": "rimraf lib",
"ext:lint": "tslint -c ../tslint.json --project compile.tsconfig.json",
"ext:lint": "tslint -c ../../configs/tslint.json --project compile.tsconfig.json",
"ext:watch": "tsc -w -p compile.tsconfig.json",
"ext:docs": "typedoc --tsconfig compile.tsconfig.json --options ../typedoc.json",
"ext:docs": "typedoc --tsconfig compile.tsconfig.json --options ../../configs/typedoc.json",
"ext:docs:clean": "rimraf docs/api",
"ext:test": "nyc mocha --opts ../mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test:watch": "mocha -w --opts ../mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test": "nyc mocha --opts ../../configs/mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test:watch": "mocha -w --opts ../../configs/mocha.opts \"./src/**/*.*spec.ts\"",
"ext:test:clean": "rimraf .nyc_output && rimraf coverage"
}
}
2 changes: 1 addition & 1 deletion packages/core/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/cpp/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/cpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/editor/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/extension-manager/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/extension-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/filesystem/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/git/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/go/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/go/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/java/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"src"
],
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/languages/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/languages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/markers/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/markers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/monaco/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
12 changes: 7 additions & 5 deletions packages/monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
"publishConfig": {
"access": "public"
},
"theiaExtensions": [{
"frontend": "lib/browser/monaco-browser-module",
"frontendElectron": "lib/electron-browser/monaco-electron-module"
}],
"theiaExtensions": [
{
"frontend": "lib/browser/monaco-browser-module",
"frontendElectron": "lib/electron-browser/monaco-electron-module"
}
],
"keywords": [
"theia-extension"
],
Expand Down Expand Up @@ -51,6 +53,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/navigator/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/navigator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/preferences-api/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/preferences-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
2 changes: 1 addition & 1 deletion packages/preferences/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
4 changes: 2 additions & 2 deletions packages/process/compile.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../base.tsconfig",
"extends": "../../configs/base.tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib"
},
"include": [
"src"
]
}
}
2 changes: 1 addition & 1 deletion packages/process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"@theia/ext-scripts": "^0.1.1"
},
"nyc": {
"extends": "../nyc.json"
"extends": "../../configs/nyc.json"
}
}
Loading

0 comments on commit faf4e78

Please sign in to comment.