Skip to content

Commit

Permalink
ci: speed up builds (redotvideo#78)
Browse files Browse the repository at this point in the history
* ci: incremental builds

* ci: add build cache
  • Loading branch information
hkonsti authored May 2, 2024
1 parent 534e089 commit 1069378
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ node_modules
/packages/*/build
/packages/*/output

.rollup.cache
tsconfig.tsbuildinfo

.idea
id.txt
11 changes: 11 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build"]
}
}
},
"targetDefaults": {}
}
3 changes: 2 additions & 1 deletion packages/2d/src/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"inlineSourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"composite": true
"composite": true,
"incremental": true
}
}
3 changes: 2 additions & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"incremental": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declarationMap": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"incremental": true,
"plugins": [
{
"transform": "@revideo/internal/transformers/markdown-literals.js"
Expand Down
3 changes: 2 additions & 1 deletion packages/ffmpeg/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"module": "CommonJS",
"target": "es2020",
"declaration": true,
"declarationMap": true
"declarationMap": true,
"incremental": true
},
"include": ["."]
}
1 change: 1 addition & 0 deletions packages/player/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"useDefineForClassFields": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"incremental": true,
"types": ["node"],
"lib": ["DOM", "DOM.Iterable", "ESNext"]
},
Expand Down
3 changes: 2 additions & 1 deletion packages/renderer/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"module": "CommonJS",
"target": "es2020",
"declaration": true,
"declarationMap": true
"declarationMap": true,
"incremental": true
},
"include": ["."]
}
3 changes: 2 additions & 1 deletion packages/telemetry/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"declaration": true,
"declarationMap": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"incremental": true
},
"include": ["src"]
}
1 change: 1 addition & 0 deletions packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"jsx": "preserve",
"incremental": true,
"jsxImportSource": "preact",
"types": ["node", "preact"],
"lib": ["DOM", "DOM.Iterable", "ESNext"]
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"declaration": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"incremental": true,
"plugins": [
{
"transform": "@revideo/internal/transformers/markdown-literals.js"
Expand Down

0 comments on commit 1069378

Please sign in to comment.