Skip to content

Commit

Permalink
chore: speed up builds (open-telemetry#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Feb 18, 2021
1 parent 6ee8a0d commit d6f983a
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 20 deletions.
18 changes: 18 additions & 0 deletions api/backwards-compatability/node10/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../tsconfig.es5.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}
18 changes: 18 additions & 0 deletions api/backwards-compatability/node12/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../tsconfig.es5.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}
18 changes: 18 additions & 0 deletions api/backwards-compatability/node8/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../tsconfig.es5.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}
11 changes: 5 additions & 6 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
},
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"compile": "tsc --build",
"clean": "tsc --build --clean",
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
"test:browser": "nyc karma start --single-run",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"build": "npm run compile",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"precompile": "tsc --version",
"version:update": "node ../../scripts/version-update.js",
"compile": "npm run version:update && tsc -p .",
"version": "node ../../scripts/version-update.js",
"docs-test": "linkinator docs/out --silent --skip david-dm.org",
"docs": "typedoc --tsconfig tsconfig.json --exclude test/**/*.ts",
"prepare": "npm run compile",
"watch": "tsc -w"
"docs": "typedoc --tsconfig tsconfig.docs.json",
"watch": "tsc --build --watch"
},
"keywords": [
"opentelemetry",
Expand Down
13 changes: 6 additions & 7 deletions api/packages/opentelemetry-api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.es5",
"extends": "../../tsconfig.es5.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
Expand All @@ -8,10 +8,9 @@
"src/**/*.ts",
"test/**/*.ts"
],
"typedocOptions": {
"name": "OpenTelemetry API for JavaScript",
"out": "docs/out",
"mode": "file",
"hideGenerator": true
}
"references": [
{
"path": "../opentelemetry-context-base"
}
]
}
10 changes: 4 additions & 6 deletions api/packages/opentelemetry-context-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
"types": "build/src/index.d.ts",
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"compile": "tsc --build",
"clean": "tsc --build --clean",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"tdd": "npm run test -- --watch-extensions ts --watch",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"clean": "rimraf build/*",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"precompile": "tsc --version",
"version:update": "node ../../scripts/version-update.js",
"compile": "npm run version:update && tsc -p .",
"prepare": "npm run compile",
"watch": "tsc -w"
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch"
},
"keywords": [
"opentelemetry",
Expand Down
2 changes: 1 addition & 1 deletion api/packages/opentelemetry-context-base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.es5",
"extends": "../../tsconfig.es5.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
Expand Down
25 changes: 25 additions & 0 deletions api/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"composite": true,
"declaration": true,
"declarationMap": true,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"pretty": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "es2017",
"incremental": true,
"newLine": "LF"
},
"exclude": [
"node_modules"
]
}
15 changes: 15 additions & 0 deletions api/tsconfig.docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"src/**/*.ts"
],
"typedocOptions": {
"name": "OpenTelemetry API for JavaScript",
"out": "docs/out",
"mode": "file",
"hideGenerator": true
}
}
6 changes: 6 additions & 0 deletions api/tsconfig.es5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"target": "es5"
}
}
117 changes: 117 additions & 0 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"extends": "./tsconfig.base.json",
"files": [],
"references": [
{
"path": "backwards-compatability/node10"
},
{
"path": "backwards-compatability/node12"
},
{
"path": "backwards-compatability/node8"
},
{
"path": "packages/opentelemetry-api"
},
{
"path": "packages/opentelemetry-context-async-hooks"
},
{
"path": "packages/opentelemetry-context-base"
},
{
"path": "packages/opentelemetry-context-zone-peer-dep"
},
{
"path": "packages/opentelemetry-context-zone"
},
{
"path": "packages/opentelemetry-core"
},
{
"path": "packages/opentelemetry-exporter-collector-grpc"
},
{
"path": "packages/opentelemetry-exporter-collector-proto"
},
{
"path": "packages/opentelemetry-exporter-collector"
},
{
"path": "packages/opentelemetry-exporter-jaeger"
},
{
"path": "packages/opentelemetry-exporter-prometheus"
},
{
"path": "packages/opentelemetry-exporter-zipkin"
},
{
"path": "packages/opentelemetry-grpc-utils"
},
{
"path": "packages/opentelemetry-instrumentation-http"
},
{
"path": "packages/opentelemetry-instrumentation-xml-http-request"
},
{
"path": "packages/opentelemetry-instrumentation"
},
{
"path": "packages/opentelemetry-metrics"
},
{
"path": "packages/opentelemetry-node"
},
{
"path": "packages/opentelemetry-plugin-fetch"
},
{
"path": "packages/opentelemetry-plugin-grpc-js"
},
{
"path": "packages/opentelemetry-plugin-grpc"
},
{
"path": "packages/opentelemetry-plugin-http"
},
{
"path": "packages/opentelemetry-plugin-https"
},
{
"path": "packages/opentelemetry-propagator-b3"
},
{
"path": "packages/opentelemetry-resource-detector-aws"
},
{
"path": "packages/opentelemetry-resource-detector-gcp"
},
{
"path": "packages/opentelemetry-resources"
},
{
"path": "packages/opentelemetry-sdk-node"
},
{
"path": "packages/opentelemetry-semantic-conventions"
},
{
"path": "packages/opentelemetry-shim-opentracing"
},
{
"path": "packages/opentelemetry-tracing"
},
{
"path": "packages/opentelemetry-web"
},
{
"path": "packages/template"
},
{
"path": "integration-tests/propagation-validation-server"
}
]
}

0 comments on commit d6f983a

Please sign in to comment.