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

Add CLI support for --dev and --prod options

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Stripes Force

    Description

      Currently stripes-core's build and serve logic always use the prod webpack config for build and the dev webpack config for serve. There are, however, times when it is handy to serve a prod configuration or build a dev one.

      The -dev and -prod options are already stubbed out in the CLI help. To complete this the CLI will need to:

      Default serve to -dev and default build to -prod.
      Specify NODE_ENV=development for --dev when not already set.
      Specify NODE_ENV=production for --prod when not already set.
      Pass dev and prod options along to stripes-core.
      Stripes-core then needs to be updated to pick up the appropriate webpack.config upon receiving dev or prod. This may require some work to ensure the configs are interchangeable finally closing out STCOR-29.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                rberger Ryan Berger
                mattj Matt Jones
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h

                    TestRail: Runs

                      TestRail: Cases