Skip to content

Commit

Permalink
package.json: remove the compile-withserver target (#1398)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 30f9c59 commit 393bc22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 2 additions & 7 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ configuration or just **Launch Extension**.

### Debug with local language server source code

For this mode to work, you'll first need to clone the repository containing the
language server code into the `ansible-language-server` directory _next to_ the
root directory of this repository. Remember to `yarn install` in that directory.

Once the language server directory is prepared, you may compile both client and
server using the `yarn run compile-withserver` command. Then you may launch the
**Client + Server (source)** configuration.
You may compile both client and server using the `task build` command. Then you
may launch the **Client + Server (source)** configuration.

### Debug a web-packed application

Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,6 @@
},
"scripts": {
"compile": "tsc -b && tsc -p ./packages/ansible-language-server/tsconfig.json --outDir ./out/server --sourceMap",
"compile-withserver": "tsc -b && tsc -p ../ansible-language-server --outDir out/server && ln -f -s ${PWD}/../ansible-language-server/node_modules out/server/node_modules",
"package": "./tools/helper --package",
"preinstall": "",
"pretest": "yarn run compile",
Expand All @@ -1040,11 +1039,8 @@
"webpack:watch": "webpack --mode development --config ./webpack.config.ts --watch",
"clean": "rimraf out/client out/server out/tsconfig.tsbuildinfo out/syntaxHighlighter coverage .nyc_output",
"test-compile": "yarn run clean && yarn run compile && tsc -p ./ --sourceMap",
"test-compile-withserver": "yarn run clean && yarn run compile-withserver && tsc -p ./",
"test-e2e": "yarn run test-compile && node ./out/client/test/testRunner",
"coverage-e2e": "COVERAGE=1 yarn run test-e2e",
"test-e2e-withserver": "yarn run test-compile-withserver && node ./out/client/test/testRunner",
"coverage-e2e-withserver": "COVERAGE=1 yarn run test-e2e-withserver",
"mock-lightspeed-server": "DEBUG='express:*' node ./out/client/test/mockLightspeedServer/server.js >>out/log/express.log 2>&1",
"kill-mock-lightspeed-server": "pkill -f mockLightspeedServer/server.js",
"_coverage-all": "./tools/coverage-all.sh",
Expand Down

0 comments on commit 393bc22

Please sign in to comment.