Skip to content

Commit

Permalink
dev config for vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Dec 14, 2022
1 parent 718a22f commit 2f05662
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 121 deletions.
Empty file added apps/lsp/build.js
Empty file.
10 changes: 5 additions & 5 deletions apps/lsp/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "quarto-lsp",
"name": "lsp",
"version": "0.0.0",
"private": true,
"license": "agpl-3.0",
"scripts": {
"build": "esbuild ./src/server.ts --bundle --outfile=dist/quarto-lsp.js --external:vscode --format=cjs --platform=node",
"vscode-dev": "yarn run build -- --sourcemap --watch",
"build": "esbuild ./src/server.ts --bundle --outfile=dist/lsp.js --format=cjs --platform=node",
"dev": "yarn run build --sourcemap --watch=forever",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"lint": "tsc --noEmit && TIMING=1 eslint \"src/**/*.ts*\"",
"start": "node dist/quarto-lsp.js"
"start": "node dist/lsp.js"
},
"dependencies": {
"file-url": "^4.0.0",
Expand All @@ -24,7 +24,7 @@
"@types/node": "^15.12.2",
"@types/js-yaml": "^4.0.5",
"@types/markdown-it": "^12.2.3",
"esbuild": "^0.16.5",
"esbuild": "^0.15.07",
"eslint": "^7.32.0",
"eslint-config-custom-server": "*",
"tsconfig": "*",
Expand Down
8 changes: 5 additions & 3 deletions apps/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@
},
"scripts": {
"build": "yarn run esbuild",
"dev": "yarn run esbuild-watch",
"vscode:prepublish": "yarn run esbuild-base --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn run esbuild-base --sourcemap",
"esbuild-watch": "yarn run esbuild-base --sourcemap --watch",
"esbuild-watch": "yarn run esbuild-base --sourcemap --watch=forever",
"lint": "eslint src --ext ts"
},
"dependencies": {
"core": "*"
"core": "*",
"lsp": "*"
},
"devDependencies": {
"@types/node": "16.x",
Expand All @@ -45,7 +47,7 @@
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"@vscode/vsce": "^2.15.0",
"esbuild": "^0.14.21",
"esbuild": "^0.15.07",
"eslint": "^8.28.0",
"typescript": "^4.9.3"
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"dev-writer": "turbo run dev --filter writer*",
"dev-vscode": "turbo run dev --filter quarto-v2...",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"watch": "concurrently 'tsc --watch --noEmit --project apps/writer/tsconfig.json' 'tsc --watch --noEmit --project packages/writer-server/tsconfig.json'"
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"outputs": []
},
"dev": {
"dependsOn": ["^build"]
"cache": false
}
}
}
Loading

0 comments on commit 2f05662

Please sign in to comment.