-
Notifications
You must be signed in to change notification settings - Fork 493
Adding npm-based formatters typescript-formatter (tsfmt) and prettier #283
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
nedtwigg
merged 46 commits into
diffplug:master
from
simschla:feature/typescript-formatting-using-nodejs-in-j2v8
Sep 24, 2018
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
75ce9aa
initial implementation of nodebased steps
simschla dfe881d
Move tests for into lib-extra.
nedtwigg c0bb96f
Separate the `NpmTest` tests from the rest of the test suite.
nedtwigg 991457c
renaming package nodebased -> npm
simschla 164f047
move subpackages to npm top-level package
simschla 37fff43
restrict visibility
simschla ddfc882
revert the from-file feature for JarState as it is not used right now
simschla ef4d244
adapt to package renaming
simschla 4f16998
using map as config api for npm formatter steps
simschla 74dfaee
clearing up resources after prettier/tsfmt run
simschla e706531
spotbugs cleanup
simschla b8fb907
cleanup autorelease-code
simschla 11b32f4
restrict engine versions according to the npm packages used
simschla c02b3ef
dynamically select j2v8 lib based on platform
simschla 27dc6f9
add support for closing FormatterFunc
simschla 0b7f6a9
implement behavioral tests
simschla 4b25b7c
validate working config options for tsfmt
simschla 48430c8
normalized arch name (matching arch for for ci)
simschla ff1d3d3
validate multiple formatting filetypes are working
simschla d832ccd
test prettier configuration behavior
simschla ff9a3d2
auto-resolve npm binary (at least for tests very useful)
simschla 3dfe3c9
adding gradle-integration for prettier
simschla d21f2bc
adding gradle-integration for tsfmt
simschla 8b1cf97
Fix minor warnings in eclipse.
nedtwigg 18c7748
Made as much of the npm implementation package-private as possible.
nedtwigg 5550174
Fixed the gradle typescript extension.
nedtwigg 092a488
Make the npm tests run on CI.
nedtwigg 83178d1
Moved all of npm's test files into testlib so that they can be reused…
nedtwigg ded5885
readFileFromClasspath is now compatible with the gradle classpath
nedtwigg 4ee647e
Added an integration test for TypescriptExtension, but it doesn't pas…
nedtwigg 0b604ab
A super incomplete version of the docs, to plant the seed.
nedtwigg 2197c27
first documentation draft
simschla 732e27a
unify naming
simschla e400fa5
provide default basedir
simschla 1fb5838
step 1 on supporting inline-config for typescript-formatter
simschla b5e57e7
introduce inline-config for tsfmt step
simschla 2a21254
adding more integration tests for typescript extension
simschla 3af839f
integration tests for prettier formatter
simschla c3c8ae1
unify usage of NpmTest category
simschla f817309
PR feedback: extract into sub-methods
simschla bf16cab
update documentation for tsfmt config file part
simschla 3d3f304
smaller api for tsfmt config files
simschla 6e07578
moving npm based formatters from lib-extra to lib
simschla ade884a
fixes for running on windows
simschla 807bf7b
integrating PR feedback
simschla 60f2bcd
Merge branch 'master' into feature/typescript-formatting-using-nodejs…
simschla 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
clearing up resources after prettier/tsfmt run
- Loading branch information
commit 74dfaeef836fd87de097ee578fbdfa2fc8bd1ceb
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
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
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
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.
That's some wacky formatting here
Can I suggest you put some of this logic into outer functions?
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.
agreed! just pushed a change to extract some of the cluttering object creation statements