Skip to content

Fix compilation #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2018
Merged

Fix compilation #15

merged 3 commits into from
Apr 1, 2018

Conversation

skovhus
Copy link
Collaborator

@skovhus skovhus commented Apr 1, 2018

When introducing the integration tests (#14) I broke the build.

The TypeScript compilers output path depends magically on the files in the source directory. So when introducing new test setup files, the compilation path was suddenly server/out/server/server.js instead of server/out/server.js.

The main problem here is that we don't clean the compilation directories... As I tested that it worked after introducing integration tests, but the old files were still in my local copy of out.

This PR:

  • fixes the build
  • introduces cleaning before building
  • adds a convenience method for working on the server (compile and reinstall)

@@ -14,6 +14,9 @@
"sourceMap": true
},
"exclude": [
"node_modules"
"node_modules",
"**/__tests__/*",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By adding these the compilation path is as before server/out/server.js

@skovhus
Copy link
Collaborator Author

skovhus commented Apr 1, 2018

FYI @mads-hartmann

@skovhus skovhus mentioned this pull request Apr 1, 2018
@mads-hartmann
Copy link
Collaborator

@skovhus Awesome, I love the reinstall-server improvement to the workflow 👍

@mads-hartmann mads-hartmann merged commit 650ceef into bash-lsp:master Apr 1, 2018
@skovhus skovhus deleted the fix-build branch April 1, 2018 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants