Skip to content

Commit

Permalink
feat: setup deno
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Dec 30, 2023
1 parent 7fcba11 commit 1b64dae
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 17 deletions.
35 changes: 35 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.DS_Store
node_modules
dist
coverage
docs
storybook-static
docker/**/data
types
.turbo
*.vsix
build
.docusaurus
.cache-loader

packages-external
packages/erd-editor-vscode/public
packages/erd-editor-vscode/public-legacy

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea

.vscode/*
!.vscode/launch.json
!.vscode/tasks.json

*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,3 @@ yarn-error.log*
*.njsproj
*.sln
*.sw?

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.*
35 changes: 35 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.DS_Store
node_modules
dist
coverage
docs
storybook-static
docker/**/data
types
.turbo
*.vsix
build
.docusaurus
.cache-loader

packages-external
packages/erd-editor-vscode/public
packages/erd-editor-vscode/public-legacy

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea

.vscode/*
!.vscode/launch.json
!.vscode/tasks.json

*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 2 additions & 1 deletion erd-editor.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
},
"typescript.updateImportsOnFileMove.enabled": "always",
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.enablePromptUseWorkspaceTsdk": true,
"deno.enablePaths": ["./packages-external/erd-editor-app-websocket"]
},
"extensions": {
"recommendations": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "turbo test",
"prepare": "husky install",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ignore-path .gitignore \"**/*.{js,ts}\" --fix",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,ts}\" --write",
"lint": "eslint \"**/*.{js,ts}\""
},
Expand Down
3 changes: 3 additions & 0 deletions packages-external/erd-editor-app-websocket/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tasks": {}
}
3 changes: 3 additions & 0 deletions packages-external/erd-editor-app-websocket/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Deno.serve((_request: Request) => {
return new Response("Hello, world!");
});
2 changes: 1 addition & 1 deletion packages/erd-editor-app/src/sw.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clientsClaim } from 'workbox-core';
import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching';

declare const self: ServiceWorkerGlobalScope;
declare let self: ServiceWorkerGlobalScope;

precacheAndRoute(self.__WB_MANIFEST);
cleanupOutdatedCaches();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as Comlink from 'comlink';

import { ShikiService } from '@/services/shikiService';

declare var self: SharedWorkerGlobalScope;
declare let self: SharedWorkerGlobalScope;

const service = new ShikiService();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as Comlink from 'comlink';

import { SchemaGCService } from '@/services/schema-gc/schemaGCService';

declare var self: SharedWorkerGlobalScope;
declare let self: SharedWorkerGlobalScope;

const service = new SchemaGCService();

Expand Down

0 comments on commit 1b64dae

Please sign in to comment.