Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
gulp-protobuf
Advanced tools
Yet another gulp task for protobufs!
This gulp task wraps the protobufjs pbjs
and pbts
tools to allow generation of JavaScript code and TypeScript definitions without the need for the protoc
binary.
Node.js > v6.12.0, which includes npm
.
$ npm install gulp-protobuf
Two tasks are exposed from this package, pbjs
and pbts
.
pbjs
is used to translate between file formats and generate static code.
pbts
is used to generate TypeScript definitions from annotated JavaScript files output from pbjs
.
First, import this package into your gulpfile:
let protobuf = require("gulp-protobuf");
Then you can use either task in your gulp tasks individually:
gulp.task("protobuf-gen", () => {
return gulp.src(protoFiles)
.pipe(protobuf.pbjs({
target: "static-module",
wrap: "commonjs"
}))
.pipe(gulp.dest(distDir));
});
gulp.task("protobuf-types", ["protobuf-gen"], () => {
return gulp.src(jsFiles)
.pipe(protobuf.pbts())
.pipe(gulp.dest(typesDir));
});
Alternatively, pipe both together to output just TypeScript definitions:
gulp.task("protobuf", () => {
return gulp.src(protoFiles)
.pipe(protobuf.pbjs({
target: "static-module",
wrap: "commonjs"
}))
.pipe(protobuf.pbts())
.pipe(gulp.dest(typesDir));
});
Refer to the protobufjs documentation to see the options available for each command:
FAQs
Gulp task for the protobufjs pbjs and pbts tools
The npm package gulp-protobuf receives a total of 0 weekly downloads. As such, gulp-protobuf popularity was classified as not popular.
We found that gulp-protobuf 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.