Socket
Socket
Sign inDemoInstall

parcel-plugin-shell

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parcel-plugin-shell

Plugin to run shell commands before/after bundling process.


Version published
Weekly downloads
1
Maintainers
1
Install size
5.38 kB
Created
Weekly downloads
 

Readme

Source

parcel-plugin-shell npm version

Plugin to run shell commands before/after bundling process.


【What is Parcel】

Installation

Parcel will automatically start using the plugin once its added to your package.json file.

To add the plugin to your existing project, run the below command.

npm i parcel-plugin-shell -D

or

yarn add parcel-plugin-shell -D

Configuration

The plugin allows to configure the scripts that need to be executed. The supported parameters are as follows:

// package.json
{
    ...
    "shell": {
        "onBuildStart": [ "echo Starting Build" ],
        "onBuildEnd": [ "node copy.js" ],
        "onBuildExit": [ "npm run serve" ],
        "dev": false,
        "safe": false,
    }
}
ParameterDescriptionDefault value
onBuildStartArray of scripts to be executed before starting the bundling[]
onBuildEndArray of scripts to be executed after bundling completes[]
onBuildExitArray of scripts to be executed once the entire build process finishes[]
devTo disable execution of scripts in development modefalse
safeTo switch script execution process from spawn to execfalse

License

This project is licensed under the MIT License - see the LICENSE file for details

FAQs

Last updated on 15 Jul 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc