🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

piral-cli-bun

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piral-cli-bun

Provides debug and build capabilities for pilets and Piral instances using Bun.

1.0.0
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Piral Logo

Piral CLI bun · GitHub License npm version tested with jest Gitter Chat

This plugin enables using bun as the bundler for Piral instances and pilets.

Installation

bun add piral-cli-bun --dev

Note: The plugin has to be installed to tell the piral-cli to use bun as the default bundler.

Using

There is nothing to do. Standard commands such as piral build or pilet debug will now work with bun as the bundler.

This plugin comes with batteries included. You don't need to install or specify your bun version - it will use what you have installed.

What's Inside

Right now it includes:

  • esbuild-sass-plugin
  • esbuild-codegen-plugin

Additionally, most known referenced assets are handled as files.

Customizing

If you want to customize the given config (e.g., to add more plugins) then create a file bun.config.js in your root directory.

In the most trivial version the file looks as follows:

module.exports = function(options) {
  return options;
};

This would just receive the original build options and return them, i.e., essentially not doing anything. If you want to add some plugin you could do:

const { somePlugin } = require('bun-some-plugin');

module.exports = function(options) {
  options.plugins.push(somePlugin());
  return options;
};

There are no overrides applied afterwards. Therefore, what you modify will remain in the options.

License

Piral is released using the MIT license. For more information see the license file.

Keywords

piral-cli

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts