Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Utils.LowerDashed function #1171

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

wnvko
Copy link
Contributor

@wnvko wnvko commented Nov 6, 2023

Closes #1170 .

Update Utils.LowerDashed function. It will now add dashes:

  • on the place of empty spaces.
  • between lower and upper case letters.
  • between lower case letter and number.

@wnvko wnvko requested a review from Lipata November 6, 2023 13:30
@coveralls
Copy link

coveralls commented Nov 6, 2023

Coverage Status

coverage: 70.414% (+0.01%) from 70.404%
when pulling c76a013 on mvenkov/path-to-pascal-or-camel-case-view
into 2eacc6e on master.

@@ -29,7 +29,7 @@ describe("New command", () => {
expect(fs.existsSync("./jQuery Proj")).toBeTruthy();
expect(filesDiff("../templates/jquery/js/projects/empty/files", "./jQuery Proj")).toEqual([]);
const packageText = fs.readFileSync("./jQuery Proj/package.json", "utf-8");
expect(JSON.parse(packageText).name).toEqual("jquery-proj");
expect(JSON.parse(packageText).name).toEqual("j-query-proj");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's kind of worse though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this is exactly what we fix - does not look nice for jQuerry

@Lipata Lipata changed the base branch from master to 12.0.x November 6, 2023 21:07
@Lipata Lipata changed the base branch from 12.0.x to master November 6, 2023 21:11
@valadzhov valadzhov self-assigned this Nov 14, 2023
@Lipata Lipata merged commit 2254ecc into master Nov 14, 2023
4 checks passed
@Lipata Lipata deleted the mvenkov/path-to-pascal-or-camel-case-view branch November 14, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Name of the components are not generated correctly
5 participants