loopbackio / loopbackio/loopback-next

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

オープン
#1,663 コメント 10 件 リアクション 0 件 担当者 1 名 GitHub で見る

@javiersantossanchez がすでに取り組んでいます。

2020年10月12日 から。

CLI developer-experience feature good first issue
主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
2日 21時間
マージ済み PR(30日)
27

説明

## 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_

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。