aurelia / aurelia/cli

Add ability to add a baseUrl per environment to aurelia.json

Open
#677 4 comments 1 reaction 1 assignee Claimed by @JeroenVinke View on GitHub
enhancement
Dominant language
JavaScript
Stars
402
Forks
134
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a feature request**

* **Operating System:**
Windows 10

* **Node Version:**
6.10.0

* **NPM Version:**
3.10.10

* **Aurelia CLI Version**
CLI 0.27.0

* **Language:**
TypeScript 2.3.2

**Current behavior:**
Currently, there is no way to change the baseUrl per deployment environment.

Our current work around is to bruteforce the line using powershell to modify, during the release process to each server.

**Expected/desired behavior:**
Ability to provide baseUrl per environment in aurelia.json file, or in environment.js file. Failing that, then ability to pass in a value via CLI parameter, so that the value can more easily be substituted on deployment

* **What is the motivation / use case for changing the behavior?**
Make it easier and more versatile to be able to deploy the same build definition to different environments such as in a CI/CD pipeline.

**Example:**
See below for the workaround we are currently having to do in our store multiple value in aurelia.json and then use Powershell to change the value.

![baseissue](https://user-images.githubusercontent.com/783486/28171309-e3e4b0f6-67df-11e7-9e8e-fe6f3ac78508.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.