ProgressNS / sidekick-feedback

This repository is for feedback regarding NativeScript Sidekick. Use the issues system here to submit feature requests or vote for existing ones.
45 stars 9 forks source link

Sidekick generated angular.json file missing default angular cli actions #349

Closed kingjordan closed 5 years ago

kingjordan commented 5 years ago

Please, provide the details below:

Did you verify whether this issue has already been reported here?

Yes

Tell us about the problem

When I use Sidekick to create a new app, the angular.json file does not contain the build, serve, test, lint actions for the angular cli. Thus the following error is displayed:

angular cli "No projects support the build target"

If i use the nativescript cli and run the following:

ng new -c=@nativescript/schematics my-project --shared --style=scss

then the angular.json file contains the proper details for the build, serve, test lint ... actions

Which platform(s) does the issue occur on?

Windows

Provide the following version numbers that the issue occurs with:

Tell us how to recreate the issue in as much detail as possible

  1. Open sidekick
  2. Choose Create new project and choose any of the templates
  3. After project is created, open the angular.json file and you will see the missing actions for the default project

TO see the difference run the tsc command above and compare the generated angular.json files.

Does this issue happen every time?

Yes

kingjordan commented 5 years ago

I am not sure this is an issue after more research. Is the native script sidekick app designed to create projects that will code share between web/angular/native?

tsvetie commented 5 years ago

Hey @kingjordan, You are correct in your assumption that NativeScript Sidekick does not have this feature. NativeScript Sidekick was designed to work on top of NativeScript CLI - it provides UI for most of NS CLI functionality and some additional features that make working on a NativeScript app easier.

As the command you referred to is actually an Angular CLI command, not a NS CLI command, NS Sidekick does not offer UI to create this type of project. However, once created with the Anlugar CLI, you can use NS Sidekick to work with the shared project - preview, build, LiveSync, publish, etc. the mobile part of the app. NS Sidekick does not offer functionality to help you develop the web part of the app.

kingjordan commented 5 years ago

thanks, I see that now, this can be removed or closed.