piral-cli-parcel

Provides debug and build capabilities for pilets and Piral instances using Parcel Bundler.

Usage no npm install needed!

<script type="module">
  import piralCliParcel from 'https://cdn.skypack.dev/piral-cli-parcel';
</script>

README

Piral Logo

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

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

Installation

Use your favorite NPM client for the installation:

npm i piral-cli-parcel --save-dev

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

Using

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

This plugin comes with batteries included. You don't need to install or specify your Parcel version.

What's Inside

Right now it includes:

  • parcel-plugin-at-alias
  • parcel-plugin-codegen
  • parcel-plugin-externals
  • parcel-plugin-import-maps

Customizing

As with standard Parcel customizations are either done by using the package.json or special config files (e.g., .babelrc).

Installed Parcel plugins are detected via the package.json.

License

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