bebbi-scripts v0.7.4
What
Maintain library projects.
Commands for init, validate, test, lint, format, build.
Like kcd-scripts, but
✅ written in TS
✅ tsc builds
✅ outputs esm, cjs, types
✅ handles ERR_UNSUPPORTED_DIR_IMPORT issues
✅ yarn berry
✅ yarn workspace
✅ customize
🚫 yarn pnp
🚫 npm
⚠️ Windows: not working on Powershell/scoop.sh, your support appreciated
How
Inside your new module folder, run
git init(optional, bebbi-scripts will install pre-commit hooks)yarn dlx bebbi-scripts init
The script assumes that your input is src, outDir is dist
Overriding Config
tsconfig.json
{
"extends": "bebbi-scripts/tsconfig.json",
"others_are_optional": "..."
}eslint
You can extend the react-scripts eslint config which ships with this package.
Example package.json section:
{
"eslintConfig": {
"extends": ["react-app"],
"other": "..."
}
}Customizing bebbi-scripts
To fully customize bebbi-scripts, make it a dependency of your own script.
Check out gig-utils for a module that extends bebbi-scripts with a config for babel and storybook.
Note that if you have a typecheck script (normally set to bebbi-scripts typecheck)
that will be run as part of the validate script (which is run as part of the pre-commit script as well).
Inspiration
💡 Bugs and Features
Help us by adding pull requests to issues!
Contributors
License
MIT
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago