Skip to content

Latest commit

 

History

History
219 lines (160 loc) · 37.7 KB

README.md

File metadata and controls

219 lines (160 loc) · 37.7 KB

bud.js

MIT License npm Follow Roots

bud.js

Configurable, extensible build tools for modern single and multi-page web applications


Goals

bud.js wants to be:

  • Reliable, yielding consistent and predictable behaviors regardless of specified options.
  • Fast, leveraging parallel processing, smart caching and an asyncronous events based API to keep build times minimal.
  • Extensible, with a fully featured plugin system to support an ecosystem of packaged modules.
  • Simple, to get started and straight forward to maintain.

Features

  • Zero config by default. Check out this codesandbox template with react, postcss modules and no config.
  • Modular by design. Use only what you need.
  • Multi-compiler support.
  • Heckin’ fast.
  • Lux developer tooling and semi-automated dependency management.
  • Support for configuration files authored with TypeScript, JSON, YML, CJS and ESM.
  • Support for CDNs like skypack and unpkg.
  • Customizable and extensible.

Requirements

  • Node 16+
  • yarn 1.22 or higher
  • npm 8.3 or higher
  • Windows users must run bud.js under the Windows Subsystem for Linux.

Getting started

Quickly scaffold a new project with create-bud-app:

npx create-bud-app

If you want to add bud.js to an existing project or want to further customize the scaffolded app check out the Getting Started guide.

There are many example implementations available.

Modules

Presets

ℹ Presets are a collection of extensions which are commonly used together. There are currently three presets: our general preset, a WordPress specific preset, and the preset used in the roots/sage theme.

Package name Usage Stable Release Preview Release
@roots/bud-preset-recommend 📚 Docs npm npm
@roots/bud-preset-wordpress 📚 Docs npm npm
@roots/sage 📚 Docs npm npm

Extensions

Language support & module preprocessors

ℹ These extensions provide support for languages and syntaxes which are not understood by the browser and require compilation.

Name README Stable Release Preview Release
@roots/bud-babel 📚 Docs npm npm
@roots/bud-esbuild 📚 Docs npm npm
@roots/bud-mdx 📚 README npm npm
@roots/bud-postcss 📚 Docs npm npm
@roots/bud-sass 📚 Docs npm npm
@roots/bud-swc 📚 Docs npm npm
@roots/bud-typescript 📚 Docs npm npm

Optimization

ℹ These extensions optimize compiled code and static assets to help ensure a high quality user experience in your app. They are typically only run in production mode.

Name README Stable Release Preview Release
@roots/bud-compress 📚 README npm npm
@roots/bud-criticalcss 📚 Docs npm npm
@roots/bud-imagemin 📚 Docs npm npm
@roots/bud-purgecss 📚 Docs npm npm

Features and framework support

ℹ These extensions provide support for popular application frameworks like React & Vue. Make sure to install a compatible compiler or preprocessor.

Name README Stable Release Preview Release
@roots/bud-emotion 📚 Docs npm npm
@roots/bud-react 📚 Docs npm npm
@roots/bud-solid 📚 Docs npm npm
@roots/bud-tailwindcss 📚 Docs npm npm
@roots/bud-vue 📚 Docs npm npm

Code quality

ℹ These extensions ensure source code conforms to a specified style. Linting configuration is expected to be provided by the user, but a base eslint config is available: @roots/eslint-config.

Name README Stable Release Preview Release
@roots/bud-eslint 📚 Docs npm npm
@roots/bud-prettier 📚 README npm npm
@roots/bud-stylelint 📚 Docs npm npm

WordPress specific

ℹ All of these extensions are included in @roots/bud-preset-wordpress.

Name README Stable Release Preview Release
@roots/bud-tailwindcss-theme-json 📚 README npm npm
@roots/bud-wordpress-dependencies 📚 README npm npm
@roots/bud-wordpress-externals 📚 README npm npm
@roots/bud-wordpress-theme-json 📚 README npm npm

Community extensions

ℹ The following extensions are maintained by the community. Please refrain from making issues in this repo regarding these extensions.

Name README Stable Release
bud-embedded 📚 README npm
bud-localtunnel 📚 README npm
bud-wp-editor-query 📚 README npm

Have you produced a bud.js extension and want to share it here? Please, create an issue sharing information about your project.

For more information on authoring your own extension consult the documentation and the source code of the extensions in this repository.

Core modules

@roots/bud is actually made up of a number of packages. You only need to install @roots/bud to use bud.js.

Package name Usage Stable Release Preview Release
@roots/bud 📚 Docs npm npm
@roots/bud-api 📚 README npm npm
@roots/bud-build 📚 README npm npm
@roots/bud-cache 📚 README npm npm
@roots/bud-client 📚 README npm npm
@roots/bud-compiler 📚 README npm npm
@roots/bud-dashboard 📚 README npm npm
@roots/bud-entrypoints 📚 README npm npm
@roots/bud-extensions 📚 README npm npm
@roots/bud-framework 📚 README npm npm
@roots/bud-hooks 📚 README npm npm
@roots/bud-minify 📚 README npm npm
@roots/bud-server 📚 README npm npm
@roots/bud-support 📚 README npm npm

Support modules

ℹ These packages are not specific to bud.js but are used by the framework. They could be used in other projects outside of the context of bud.js.

Name README Stable Release Preview Release
@roots/blade-loader 📚 README npm npm
@roots/browserslist-config 📚 README npm npm
@roots/container 📚 README npm npm
@roots/critical-css-webpack-plugin 📚 README npm npm
@roots/dependencies 📚 README npm npm
@roots/entrypoints-webpack-plugin 📚 README npm npm
@roots/eslint-config 📚 README npm npm
@roots/filesystem 📚 README npm npm
@roots/wordpress-dependencies-webpack-plugin 📚 README npm npm
@roots/wordpress-externals-webpack-plugin 📚 README npm npm
@roots/wordpress-hmr 📚 README npm npm
@roots/wordpress-theme-json-webpack-plugin 📚 README npm npm
@roots/wordpress-transforms 📚 README npm npm

Contributing

Contributions are welcome from everyone.

We have contribution guidelines to help you get started.

License

bud.js is licensed under MIT.

Community

Keep track of development and community news.

Sponsors

bud.js is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.

Carrot WordPress.com Worksite Safety Itineris