StrongLoop Arc and slc are no longer under active development, and will soon be deprecated. Arc's features are being included in the IBM API Connect Developer Toolkit: Please use it instead.
Skip to end of metadata
Go to start of metadata

Use the slc build command to build and package a Node application.   It creates Git branches or .tgz packages that you can deploy to Process Manager with slc deploy.

Building and packaging an application involves three basic steps:

  1. Install: install dependencies, run custom build steps, and prune development dependencies.  See Installing dependencies.
  2. Bundle: modify the package.json and .npmignore configuration files so dependencies will be packed.  See Bundling dependencies.
  3. Create deployable package, either: 
    1. Create a deployable .tgz package file.  See Creating a build archive.
    2. Commit the build onto a Git branch.  See Committing a build to Git.

Using slc build, you can perform all these steps in a single command, or if you prefer, multiple commands.  The documentation describes each step separately, but you can use command options to perform them altogether with a single command.

When using Git, it may be useful to have several different package repositories, for example to manage public and internal releases.  See Using multiple package registries for more information.

Shortcut commands

The slc build command provides shortcut options for the two basic workflows: building an npm archive (.tgz file) and committing a build to Git.

To create an npm archive (.tgz) file, use this shortcut in your app root directory:

To commit a build to a Git archive, use this shortcut in your app root directory:

By default, this command commits to the "deploy" branch.  Use the --onto option to specify a different branch.

  • No labels