bob-the-bundler
Version:
Bob The Bundler!
77 lines (57 loc) • 1.27 kB
Markdown
is the TypeScript build, bundle and verification tool used by almost all
[ ](https://the-guild.dev) open source projects.
Scope:
- **Build**: Build ESM and CommonJS compatible npm packages
- **Verify**: Ensure all ESM and CommonJS imports within an npm package are usable
- Yarn workspace or single package project
- TypeScript
- It's so strict you shouldn't use it!
Setting up bob is currently undocumented. You can check
[ ](https://github.com/dotansimha/graphql-code-generator) repository (or any
other The Guild repository).
You can add a `bob` key to each `package.json`.
**Disable bob for a single package**
```jsonc
{
"name": "graphql-lfg",
"bob": false // exclude a single package from all things bob related
}
```
**Disable build for a single package**
```json
{
"name": "graphql-lfg",
"bob": {
"build": false
}
}
```
**Disable check for a single package**
```json
{
"name": "graphql-lfg",
"bob": {
"check": false
}
}
```
**Disable check for a single export in a package**
```json
{
"name": "graphql-lfg",
"bob": {
"check": {
"skip": ["./foo"]
}
}
}
```
```bash
$ bob build
$ bob check
```
Bob