I added support for more languages via npx and child process#14
Open
ji-podhead wants to merge 52 commits intoYePpHa:masterfrom
Open
I added support for more languages via npx and child process#14ji-podhead wants to merge 52 commits intoYePpHa:masterfrom
ji-podhead wants to merge 52 commits intoYePpHa:masterfrom
Conversation
Author
|
ill made a npm package. i think ill ad an option to pass your own args and make a additional typescript category. const languageFileExtensions = {
go: {
fileExtension: '.go',
command: '--go_out'
},
java: {
fileExtension: '.java',
command: '--java_out'
},
python: {
fileExtension: '.py',
command: '--python_out'
},
csharp: {
fileExtension: '.cs',
command: '--csharp_out'
},
ruby: {
fileExtension: '.rb',
command: '--ruby_out'
},
objc: {
fileExtension: '.m',
command: '--objc_out'
},
php: {
fileExtension: '.php',
command: '--php_out'
},
dart: {
fileExtension: '.dart',
command: '--dart_out'
},
rust: {
fileExtension: '.rs',
command: '--rust_out'
},
swift: {
fileExtension: '.swift',
command: '--swift_out'
},
kotlin: {
fileExtension: '.kt',
command: '--kotlin_out'
},
scala: {
fileExtension: '.scala',
command: '--scala_out'
},
js: {
fileExtension: '.js',
command: '--js_out'
}
}; |
Author
|
and ill add commandline support in addition so no need for npx. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
hey thanks for your repo, works fine for me. i added an additional protobuffgenerator that lets you generate the files generically via cp. you just need to pass the language, path and protofile.
i also added a test file and demoproto
i simply hardcoded this because i may would change some plugins and i use protogents für typescript: