NativeScript / NativeScript/nativescript-cli

Application is rebuilt when passing --env.uglify for a first time

Open
#4,362 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.0
  • Android Runtime: 5.2.0
  • iOS Runtime: 5.2.0

Describe the bug
when you run project with: tns run ios --bundle and then with: tns run ios --bundle --env.uglify, you will see that the project will pass through building process.

To Reproduce

  1. tns create appNG --ng
  2. tns run ios --bundle
  3. stop the process
  4. tns run ios --bundle --env.uglify
    you will see : Building project..., Project successfully built. in console logs

Expected behavior
not sure this behavior is correct

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 by reproducing the two commands in the issue: tns run ios --bundle, followed by tns run ios --bundle --env.uglify, and compare the build logs. Read the NativeScript CLI build and bundling entry points to determine whether changing --env.uglify should invalidate the existing build; done means the behavior and expected outcome are documented and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
build-system, cli, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.