Skip to content

Commit

Permalink
tachyon integration wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Jan 9, 2024
1 parent 6b9d370 commit 38cea43
Show file tree
Hide file tree
Showing 19 changed files with 1,343 additions and 1,016 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module.exports = {
node: true,
browser: true,
},
globals: {
"NodeJS": true
},
ignorePatterns: ["typed-router.d.ts"],
rules: {
// Rules should only be added here for testing temporarily and should eventually be moved into jaz-ts-utils to ensure consistency across projects
Expand Down
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"recommendations": [
"vue.volar",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"dbaeumer.vscode-eslint",
"drknoxy.eslint-disable-snippets",
"esbenp.prettier-vscode",
"mrmlnc.vscode-scss"
],
"unwantedRecommendations": [
"octref.vetur",
"vscode.typescript-language-features" // https://github.com/johnsoncodehk/volar/discussions/471
]
}
13 changes: 6 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"typescript",
"vue"
],
"eslint.validate": ["typescript", "vue"],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand All @@ -15,5 +12,7 @@
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "non-relative"
}
29 changes: 13 additions & 16 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,19 @@ export default defineConfig({
}),
vue(),
renderer({
nodeIntegration: true,
optimizeDeps: {
include: [
{ name: "path", type: "commonjs" },
{ name: "fs", type: "commonjs" },
{ name: "child_process", type: "commonjs" },
{ name: "stream", type: "commonjs" },
{ name: "os", type: "commonjs" },
{ name: "node-fetch", type: "module" },
{ name: "spring-map-parser", type: "commonjs" },
{ name: "better-sqlite3", type: "commonjs" },
{ name: "tachyon-client", type: "commonjs" },
{ name: "octokit", type: "commonjs" },
{ name: "axios", type: "commonjs" },
{ name: "glob-promise", type: "commonjs" },
],
resolve: {
"better-sqlite3": {
type: "esm",
},
"tachyon-client": {
type: "cjs",
},
"tachyon-protocol": {
type: "cjs",
},
ws: {
type: "esm",
},
},
}),
],
Expand Down
Loading

0 comments on commit 38cea43

Please sign in to comment.