@dukaan/cli

1.0.4 • Public • Published

A CLI client to deploy #DukaanTech frontend applications. Deploying frontend apps is super easy with this tool.

$ push - with this single cli command, the app is literally pushed to production environment.

The push cli command does the following -

  1. Checks if the current directory is a valid dukaanTech project.
  2. Checks if the current branch is the actual production branch for the project.
  3. Checks if the user has access to deploy projects to production
  4. Runs npm run build to build the project into a static production build.
  5. verifies if the build was successful.
  6. Creates a new release docker image tag.
  7. Pushes the new image to image registry
  8. Notify the production servers to pull this new image
  9. Create a new service with this image tag.
  10. Gracefully switches traffic from old release to new release.

Install

@dukaan/cli is available as a global npm package and as such, can be installed through npm with ease.

To install dukaan/cli use the following command:

npm install -g @dukaan/cli yarn add global @dukaan/cli

Usage

Once installed you can run this tool from any of the frontend projects.

  • Go to Project root directory
  • Git Checkout to production branch
  • type push and hit enter.
  • thats it!

Dependencies (19)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @dukaan/cli

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    25.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • nikamanish
    • dukaantech