Building time is increased after adding NativeScript/nx

Đang mở
#11 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
build-system, mobile-dev

Hướng nghiên cứu

Chạy lại npx nx run mobile-app-nativescript:ios nhiều lần trong cả workspace hiện có và workspace trống, sau đó so sánh độ trễ trước khi target NativeScript chạy. Đồng thời chạy lại npx nx g @nativescript/nx:app <app-name> có và không có grouping để so sánh các tên được tạo. Hoàn thành khi các build lặp lại không còn gặp độ trễ dài và việc đặt tên app hoạt động nhất quán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi, I'm going to use this plugin, it's really very nice, easy and without any extra things.

I have added NativeScript/nx plugin, then added NativeScript application to my existing nx workspace. After that I detected that the build/run process takes extremely long time. First time when I run the app, the build process took not so long, but next times it's extremely slow.

Flow:

  1. Run: npx nx run mobile-app-nativescript:ios
  2. delay: 2m 40sec (from 2 to 3 mins)
  3. After this crazy delay appears: > nx run app-nativescript:ios
  4. Then select a device and everything goes fine and with usual speed.

The problematic step marked bold.

I've to tried create a new workspace and it has the same behaviour. The first build with no delay, but second and all next with long delay. Only one difference, in the new empty workspace, the delay not so long, it's approx 30 sec.

And one more thing. In my existing workspace command npx nx g @nativescript/nx:app <app-name> always works like with flag --groupByName. So, with float or without, I can't create an app with the name nativescript-app, it always creates app-nativescript. BUT with created a new workspace it works correct. Could be it's related to xplat plugin. Currently I have a nativescript app in the workspace under xplat, but I'm going to migrate to NativeScript/nx.

Waiting for your fix :)
Thanks!

Ngôn ngữ chính
TypeScript
Star
68
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NativeScript/nx

Tất cả issue của NativeScript/nx

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.