serverless/docs/dashboard/cicd/custom-scripts.md
2019-12-20 08:59:50 +01:00

815 B

Read this on the main serverless docs site

Custom scripts

Custom scripts in the pipeline are supported using the standard scripts in the package.json file.

For example, you can run scripts before/after install, and before/after a test.

{
  'name': 'demo-serverless',
  'version': '1.0.0',
  'scripts': { 'preinstall': '', 'postinstall': '', 'pretest': '', 'posttest': '' },
}

Additional lifecycle hooks can be found in the npm documentation:

https://docs.npmjs.com/misc/scripts