Permalink
34c3254 Jun 5, 2018
1 contributor

Users who have contributed to this file

29 lines (23 sloc) 1.45 KB

pack

Package a zip file for uploading to Lambda with all the required NPM dependencies, without deploying it anywhere. Works with any JavaScript Lambda project, not just Claudia-related deployments.

Usage

claudia pack {OPTIONS}

Options

  • --output: (optional) Output file path
    • Defaults to: File in the current directory named after the NPM package name and version
  • --force: (optional) If set, existing output files will be overwritten
    • Defaults to: not set, so trying to write over an existing output file will result in an error
  • --source: (optional) Directory with project files
    • Defaults to: current directory
  • --no-optional-dependencies: (optional) Do not pack optional dependencies.
  • --use-local-dependencies: (optional) Do not install dependencies, use the local node_modules directory instead
  • --npm-options: (optional) Any additional options to pass on to NPM when installing packages. Check https://docs.npmjs.com/cli/install for more information
    • For example: --ignore-scripts
    • Introduced in version: 5.0.0
  • --post-package-script: (optional) the name of a NPM script to execute custom processing after claudia finished packaging your files. Note that development dependencies are not available at this point, but you can use npm uninstall to remove utility tools as part of this step.
    • For example: customNpmScript
    • Introduced in version: 5.0.0