-
Notifications
You must be signed in to change notification settings - Fork 570
compiler: automate regeneration of prelude #784
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
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7b58396
Example of regenerated minified files
myitcv 3e59050
Address feedback from shurcooL
myitcv 608b874
Fix name of prelude generator in output file
myitcv de4b2cb
Don't require user to have set PATH; derive path to uglify js from
myitcv f5861c4
No need to set PATH in circle.yml now
myitcv 854f5a7
Fix error message in genmin.go
myitcv 7a4eb53
Address feedback from hajimehoshi
myitcv 1e68e31
Recommit feedback for @hajimehoshi
myitcv 3de38f5
Use Output to exclusively read standard output from uglifyjs command
myitcv 4db25b2
Make comments option match hand-driven version
myitcv dad80cd
Address style feedback
myitcv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use Output to exclusively read standard output from uglifyjs command
- Loading branch information
commit 3de38f5a1cbc93f1aad88a5221735496df575b97
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a big deal, but it's pretty unusual to see a
[]byte
variable namedbyts
. As far as I understand, it's a shortened version of "bytes"? It comes up a total of 5 times in the Go project.In this context, just
b
orout
would be more idiomatic and clear I think.I see that
out
is already taken below, in that case, I would make this variable name more specific. For example,minified
.The reason I point this out is because I think it's a good idea to strive to write Go code that looks like Go code other Go programmers are most likely to write.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.