![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Simple command line for running the protoc compiler via a configuration file
Example .grpc-gen.yml
config file
# Root of all your sources
srcs_dir: ./src
# Array of sources relative to srcs_dir
srcs:
- file.proto
# Output object where the key is the plugin name and the value is
# the directory for the plugins output.
output:
plugin-name: output-directory
The output configuration can either be an array or an object. Each element must be an object with exactly one key. The one key must be the plugin/language name. The value has a long syntax and a short syntax.
output:
# Name of plugin or language
- js:
# Output directory
dir: dist/node
# Options to pass to plugin
options:
import_style: commonjs
# Specify a custom plugin
- custom-plugin:
custom: true
# Name of plugin to look for on your PATH or npm bin directories
plugin: grpc_tools_node_protoc_plugin
# Custom plugin output directory
dir: dist/node
# Options to pass to custom plugin
options:
output:
# Name of plugin or language as key. Output direcotry as value.
- php: dist/php
Install globally
npm i -g grpc-gen
OR install locally in your project as a dev dependency and add a build script to your package.json
.
npm i -D grpc-gen
// package.json
"scripts": {
"build": "grpc-gen"
},
"devDependencies": [
"grpc-gen": "^1.0.2"
]
npm run build
Running grpc-gen
in the directory containing your configuration file will build your proto files.
grpc-gen
You can also specify a different configuration file with --config
# Extension can be: .yml .yaml .json .js
grpc-gen --config=custom-config.yml
grpc-gen
may also run in watch mode. When your config file or proto files change compilation will re-run.
grpc-gen --watch
If grpc-gen is not behaving the way you expect and want to dive into the issue you can run grpc-gen
in verbose mode. Just pass --verbose
or -v
.
grpc-gen --verbose
FAQs
Simple CLI for running the protoc compiler via configuration file
The npm package grpc-gen receives a total of 0 weekly downloads. As such, grpc-gen popularity was classified as not popular.
We found that grpc-gen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.