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

feature: Adding ability to sort the import map alphabetically #122

Merged
merged 3 commits into from
Aug 17, 2021

Conversation

TheMcMurder
Copy link
Contributor

@TheMcMurder TheMcMurder commented Aug 17, 2021

This is something I'd like just because it would be convenient and make some of the larger import maps easier to read.

I'm pretty sure this is all I would need to change to support this feature.

prod: "memory://prod",
},
describe(`/import-map.json`, () => {
let errorSpy;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this errorSpy so the tests wouldn't actually error to the console and clutter up the output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to scope it as well so I moved the beforeAll and beforeEach blocks into the describe block

Copy link
Member

@joeldenning joeldenning left a comment

Choose a reason for hiding this comment

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

Looks good, just one small comment

test/alphabetical-import-map.test.js Outdated Show resolved Hide resolved
@joeldenning joeldenning merged commit 3f3a990 into main Aug 17, 2021
@joeldenning joeldenning deleted the alphabetical branch August 17, 2021 19:00
@joeldenning
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants