0.7.4 • Published 7 months ago

bebbi-scripts v0.7.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

  1. git init (optional, bebbi-scripts will install pre-commit hooks)

  2. 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

kcd-scripts react-scripts

💡 Bugs and Features

Help us by adding pull requests to issues!

Contributors

amaster507 verneleem bebbi

License

MIT

0.7.4

7 months ago

0.7.3

7 months ago

0.7.2

8 months ago

0.7.1

8 months ago

0.6.2

8 months ago

0.7.0

8 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.5.8

10 months ago

0.5.7

10 months ago

0.5.4

10 months ago

0.5.3

10 months ago

0.5.6

10 months ago

0.5.5

10 months ago

0.5.0

10 months ago

0.5.2

10 months ago

0.5.1

10 months ago

0.4.7

1 year ago

0.4.6

1 year ago

0.4.5

1 year ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago