Skip to content

llamadeus/parcel-reporter-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  }
  // ...
}

About

Execute a command after a successful Parcel build.

Resources

License

Stars

Watchers

Forks

Packages

No packages published