0.2.7 • Published 4 years ago
@ardatan/bob v0.2.7
Bob (The Bundler)
There's no documentation yet but you can check GraphQL Code Generator repository to see how to use Bob.
Requirements
- Supports only scoped packages (same scope)
- Yarn Workspaces
- TypeScript with Paths
- It's so strict you shouldn't use it!
Configuration
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"
],
against: "origin/master", // we need to compare against something
run: {
test(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() {
return [`yarn`, ["build"]];
}
}
};
Usage
$ bob affected test
$ bob affected build
$ bob build
$ bob prepack
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago