Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
gulp-jscad-files
Advanced tools
This gulp plugin reads jscad.json library files, and their NPM dependencies.
To find jscad.json
files and place those and their NPM files into a directory called dist
:
gulp.task("lib", function() {
return gulp
.src("node_modules/**/jscad.json")
.pipe(plugins.plumber())
.pipe(plugins.jscadFiles())
.pipe(plugins.flatten())
.pipe(gulp.dest("dist"));
});
To watch only the files that are injected, reducing the total number of files watched, you can use the getImported
function.
var { getInjected } = require("gulp-jscad-files/getPackage");
gulp.task(
"default",
gulp.series(["clean", "inject"], function() {
gulp.watch(
["**/*.jscad", ...getInjected(pkg)],
{
followSymlinks: true,
delay: 500,
queue: false,
ignoreInitial: false,
ignored: ["**/*.*~", "dist/*", ".vuepress/*", "public", "node_modules"]
},
gulp.series(["inject"])
);
})
);
You can create a jscad module by creating a NPM module with your jscad files and a jscad.json
file that contains a files array.
{
"files": ["jscad-utils.jscad"]
}
gulp-jscad-files
will read the jscad.json
project file and the package.json
file in that directory to determine the required files for that module. You can use a gulp task to place those files into a directory being monitored by a openjscad.org page.
FAQs
Gulp plugin to process jscad files, similar to bower.
We found that gulp-jscad-files 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.