loopbackio / loopbackio/loopback-next

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

未關閉
#1,663 10 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@javiersantossanchez 已經在處理了。

開始於 2020年10月12日。

CLI developer-experience feature good first issue
主要語言
TypeScript
星號
5.1k
分支
1.1k
平均合併
2 天 21 小時
30 天內合併 PR
27

描述

Description / Steps to reproduce / Feature proposal

$ 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 for more tips on writing good issues

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。