NativeScript / NativeScript/nativescript-cli

Request: Support environments other than release and debug

Open
#3,156 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build feature publish run
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Currently, there are two supported environments, release and debug. The default is debug and "--release" can be used to build a release version of the app. It would be useful to have other environments, so I was wondering if it would be possible to add an "--environment" flag be allowed to specify these.

For example, "tns run android --environment=test" would use the file app.component.test.ts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI handling for tns run android and the existing --release and debug environment selection. Trace how app.component.ts is chosen, then define what --environment=test must select, with completion shown by the example command using app.component.test.ts.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript, typescript
Domain
cli, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.