loopbackio / loopbackio/loopback-next

[CLI] `lb4` does not create app with uppercase letters

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

@javiersantossanchez đang làm issue này rồi.

Từ ngày 12/10/2020.

CLI developer-experience feature good first issue
Ngôn ngữ chính
TypeScript
Star
5.1k
Fork
1.1k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
27

Mô tả

## Description / Steps to reproduce / Feature proposal

```sh
$ lb4 myLB4app
> Generation is aborted: Invalid npm package name: myLB4app
```

This is likely due to the `package.json`'s `name` format restriction. We should use the user-submitted name for everything (directory name etc.), except for the `name` property in `package.json`; for that, CLI should do the hyphenation and lowercasing for the user.

Thoughts?

## Current Behavior

`lb4` refuses to create an app if it contains uppercase letters.

## Expected Behavior

Should allow creation of apps with uppercase and lowercase letters.

_See [Reporting Issues](http://loopback.io/doc/en/contrib/Reporting-issues.html) for more tips on writing good issues_

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.

Đánh giá

Issue này chưa được đánh giá.

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.