Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@ardatan/bob-the-bundler
Advanced tools
There's no documentation yet but you can check GraphQL Code Generator repository to see how to use Bob.
Bob only accepts bob.config.js
in root directory:
module.exports = {
scope: "@graphql-codegen", // Scope of organization
ignore: ["@graphql-codegen/website", "@graphql-codegen/live-demo"], // ignored packages
track: [
// files in root that mark the entire workspace as dirty
"bob.config.js", // we could include it in Bob itself but we decided to turn your life into hell :)
"jest.config.js",
"jest-project.js",
"package.json",
"tsconfig.json",
// files in packages that mark the package as dirty
"<project>/src/**",
"<project>/jest.config.js",
"<project>/package.json",
"<project>/tsconfig.json",
],
base: "origin/master", // we need to compare against something
commands: {
test: {
track: ["<project>/tests/**"],
run(affected) {
// {
// paths: string[] <- ['packages/core', 'packages/cli']
// names: string[] <- ['@foo/core', '@foo/cli']
// }
// why such a weird syntax? We use spawn, so you have too
return [`yarn`, ["test", ...affected.paths]];
},
},
build: {
run() {
return [`yarn`, ["build"]];
},
},
},
};
In your <project>/package.json
:
{
"buildOptions": {
"external": ["simple-git/promise"], // Marks nested imports as external
"bin": {
"cli": {
"input": "src/cli.ts" // Entry point for `cli` command
}
}
}
}
In your <project>/package.json
, just add "exports"
like this:
{
"main": "dist/index.cjs.js",
"exports": {
"require": "dist/index.cjs.js", // should match "main"
"default": "dist/index.mjs" // should ends with ".mjs" extension
}
}
$ bob affected test
$ bob affected build
$ bob build
$ bob prepack
FAQs
Bob The Bundler!
The npm package @ardatan/bob-the-bundler receives a total of 2 weekly downloads. As such, @ardatan/bob-the-bundler popularity was classified as not popular.
We found that @ardatan/bob-the-bundler 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.