Prepare (since Runs BEFORE the package is packed prepare, prepublish, prepublishOnly, prepack, postpack.These scripts happen in addtion to the "pre" and "post" script. There are some special life cycle scripts that happen only in certain situations. To create "pre" or "post" scripts for any scripts defined in the "scripts" section of the package.json, simply create another script with a matching name and add "pre" or "post" to the beginning of them. Scripts from dependencies can be run with npm explore - npm run. Pre and post commands with matching names will be run for those as well (e.g. These all can be executed by running npm run-script or npm run for short. The "scripts" property of of your package.json file supports a number of built-in scripts and their preset life cycle events as well as arbitrary scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |