Skip to content
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

Development experience #25

Merged
merged 2 commits into from
Aug 6, 2018

Conversation

skovhus
Copy link
Contributor

@skovhus skovhus commented Aug 5, 2018

This PR tries to improve the development experience by:

  • adds a test:watch target which rebuilds and tests after making a change in the source files, corpus or examples (nice for TDD)
  • adds some documentation on how to develop
  • renames the prebuild target to pre-build so running npm run build is much faster*

*) #20 introduced a prebuild target, that has the consequence that local build and test cycle is really slow. The reason is that we are using the name prebuild for the target, which is always run before the build target.

Copy link
Contributor

@maxbrunsfeld maxbrunsfeld left a comment

Choose a reason for hiding this comment

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

The reason is that we are using the name prebuild for the target, which is always run before the build target

Oh wow, that's awful. Thanks for the fix! I left one minor suggestion regarding the README.

README.md Outdated

Install the dependencies:

npm install
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that for this code to render well, you have to enclose these shell script lines in triple-backtick code blocks.

Copy link
Contributor Author

@skovhus skovhus Aug 6, 2018

Choose a reason for hiding this comment

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

@maxbrunsfeld maxbrunsfeld merged commit 70d94eb into tree-sitter:master Aug 6, 2018
This was referenced Mar 3, 2020
skovhus added a commit to skovhus/tree-sitter-bash that referenced this pull request Mar 4, 2020
* Rename prebuild target clashing with build target

* Add test:watch target and documentation
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