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

convert to a v2 addon using ember init #499

Merged
merged 5 commits into from
Jul 24, 2024
Merged

convert to a v2 addon using ember init #499

merged 5 commits into from
Jul 24, 2024

Conversation

mansona
Copy link
Member

@mansona mansona commented Mar 2, 2024

I ran ember init -b @embroider/addon-blueprint --pnpm and moved things around to the right place 👍

This PR replaces #498 since it will actually run the CI job

@@ -0,0 +1,9 @@
{
"plugins": [
Copy link
Contributor

Choose a reason for hiding this comment

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

these are not needed 🎉

import makeHelper from '../utils/make-helper';
/* eslint-disable prettier/prettier */
import { pluralize } from '../index.js';
import makeHelper from '../lib/utils/make-helper';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import makeHelper from '../lib/utils/make-helper';
import makeHelper from '../lib/utils/make-helper.js';

extensions?

import makeHelper from '../utils/make-helper';
/* eslint-disable prettier/prettier */
import { singularize } from '../index.js';
import makeHelper from '../lib/utils/make-helper';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import makeHelper from '../lib/utils/make-helper';
import makeHelper from '../lib/utils/make-helper.js';

@@ -1,3 +1,4 @@
/* eslint-disable prettier/prettier */
Copy link
Contributor

Choose a reason for hiding this comment

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

that's one way to reduce the diff 😅

"options": [
"--no-welcome",
"--pnpm",
"--ci-provider=travis"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"--ci-provider=travis"

Copy link
Contributor

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

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

This is progress! 🎉

based on the (lack of) complexity in this addon, I'd like to see it become a real ESM package, and remove all the emberisms (rollup, keywords:[ember-addon], etc) -- but that can happen in a followup (maybe by me)

Only requesting changes because it looks like the types are gone now: https://github.com/emberjs/ember-inflector/blob/master/index.d.ts

Or rather, moved to the wrong location: https://github.com/emberjs/ember-inflector/pull/499/files?file-filters%5B%5D=.mjs&file-filters%5B%5D=.ts&file-filters%5B%5D=dotfile&show-deleted-files=true&show-viewed-files=true#diff-c15cdf855d3b7b7fc0002ed7a70f746102dc73b3a683293063f082e4281a8312

without src being included in files and exports pointing at it: https://github.com/emberjs/ember-inflector/pull/499/files?file-filters%5B%5D=.json&file-filters%5B%5D=.mjs&file-filters%5B%5D=.ts&file-filters%5B%5D=dotfile&show-deleted-files=true&show-viewed-files=true#diff-7c1f47c16eb9ad147fff74bbb9c89a55ebf1e85830bc93695d8f7252f29d7f6aR14-R22

@@ -1,3 +1,4 @@
/* eslint-disable prettier/prettier */
import { capitalize } from '@ember/string';
Copy link
Contributor

Choose a reason for hiding this comment

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

ember string should be added an a dep or peer -- dep'r'peer

@mansona mansona force-pushed the v2-addon branch 2 times, most recently from 293a09c to b5ce4b8 Compare July 24, 2024 14:34
README.md Outdated
@@ -18,66 +15,12 @@ ember install ember-inflector

## Usage

All methods are always available from the `ember-inflector` module:
Copy link
Contributor

Choose a reason for hiding this comment

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

this should probably come back?

@NullVoxPopuli NullVoxPopuli merged commit 51bb724 into master Jul 24, 2024
15 checks passed
@NullVoxPopuli NullVoxPopuli deleted the v2-addon branch July 24, 2024 15:12
@github-actions github-actions bot mentioned this pull request Jul 24, 2024
drouhard added a commit to drouhard/ember-data-factory-guy that referenced this pull request Aug 28, 2024
Allows consuming apps to upgrade their version of ember-inflector
to v5. See emberjs/ember-inflector#499
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants