0.0.7 • Published 2 years ago

parcel-reporter-exec v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

parcel-reporter-exec

Execute a command after a successful Parcel build. This is useful when you want to e.g. automatically start your application when parcel watch successfully built your application.

Installation

Install the plugin via yarn.

yarn add --dev parcel-reporter-exec

Alternatively, install it with npm.

npm install --save-dev parcel-reporter-exec

Usage

Create a .parcelrc file in your project root.

touch .parcelrc

Paste the following content.

{
  "extends": "@parcel/config-default",
  "reporters": ["...", "parcel-reporter-exec"]
}

Update your package.json.

{
  // ...
  "scripts": {
    "dev": "PARCEL_EXEC=\"yarn start\" parcel watch --no-hmr",
    "start": "node dist/index.js"
  }
  // ...
}
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago