Uploaded image for project: 'stripes-cli'
  1. stripes-cli
  2. STCLI-109

Dynamically include CLI as devDependency of app and workspace

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      stripes-force Sprint 51, stripes-force Sprint 52
    • Story Points:
      3
    • Development Team:
      Stripes Force
    • Epic Link:

      Description

      When creating an app or workspace, dynamically include the CLI as a devDependency of the app and workspace's package.json.

      "devDependencies": {
          "@folio/stripes-cli": "^1.5.0"
        }
      

      Dynamically apply the current CLI version to the template, rather than hard-coding it these areas:

      App package.json

      Workspace package.json

      The current CLI version can be obtained by the CLI's own package.json (see example of use in the status command). However, only use the major and minor version when applying to the app and workspace templates. Set the patch version to zero. This is to guard against inflated patch/build numbers like 1.6.1000132 present in the npm-folioci registry.

      Examples:
      Given package.json has version 1.6.0, use 1.6.0 in the template
      Given package.json has version 1.6.1000132, use 1.6.0 in the template

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                MaksymDryha Maksym Dryha
                Reporter:
                mattj Matt Jones
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases