Skip to content

[Feature Request] Interactive tns create #3829

@radeva

Description

@radeva

Current Behavior

The current behavior of tns create command used to create a NativeScript project is described in details in our documentation. Here is how it works in short:

  • tns create MyApp creates MyApp project using pure JavaScript
  • additional options --ng, --tsc are available to create the project in TypeScript or Angular flavor (tns create MyApp --ng, tns create MyApp --tsc)
  • project can be created from a predefined template (Tabs, Master-Detail, SideDrawer, etc)

Proposed Behavior

Provide an interactive tns create command as follows:

tns create MyApp

? Choose a framework
> Angular
> Vue.js
> None

? Choose a template
> Hello World
> Blank
> SideDrawer
> Tabs

If Angular framework is chosen, the Blank option should be split in two:

> Blank (Mobile)
> Blank (Web + Mobile)

Choosing None will create the project in TypeScript flavor.

All existing options will continue to work as is. In addition,

  • a new option --js should be added to allow the creation of a JavaScript project directly
  • a new option --vue should be added to allow the creation of a Vue.js project directly

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions