package
Easily enable/disable scripts in package.json
npm install @vates/toggle-scriptsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.9 kB
Includes dependencies.
Easily enable/disable scripts in package.json
Installation of the npm package:
> npm install --save @vates/toggle-scriptsUsage: toggle-scripts options...
Easily enable/disable scripts in package.json
Options
+<script> Enable the script <script>, ie remove the prefix `_`
-<script> Disable the script <script>, ie prefix it with `_`
Examples
toggle-scripts +postinstall +preuninstall
toggle-scripts -postinstall -preuninstallFor example, if you want postinstall hook only in dev:
// package.json
{
"scripts": {
"postinstall": "<some dev only command>",
"prepublishOnly": "toggle-scripts -postinstall",
"postpublish": "toggle-scripts +postinstall"
}
}Contributions are very welcomed, either on the documentation or on the code.
You may:
Registry package owners.
julien-f
julien.fontanet@isonoe.net
pdonias
pierre.donias@gmail.com
tgoettelmann
thierry@byscripts.info
enishowk
npmjs.5hcin@simplelogin.com
b-nollet
bastien.nollet@vates.tech
mlssfrncjrg
melissa.franca@vates.tech
arnogues
arnaudgs+arnogues@gmail.com
joris-k
joris.kosacki@vates.tech
elise-f
elise.franzini@vates.tech
nathanael-h
nathanael.hannebert@vates.tech
olivier.f
olivier.floch@vates.tech
pierre.brunet289
pierre.brunet@vates.tech