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

[ENHANCEMENT] Add template tag setup to ember new for apps #10447

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

IgnaceMaes
Copy link
Contributor

Adds setting up template tag dependencies for new Ember apps. (dependencies, configs)

Open question:

  • Do we want this behind a flag?
    • Any downsides to just always enabling it? This should have no real impact on existing apps, even if the format is not used.
    • Upside of not having a flag is keeping the API surface small, and preventing complicated scenarios. E.g. there's a mix in options depending if typescript is enabled or not, making this complexer.

Related: emberjs/tracking-polaris#33

@IgnaceMaes IgnaceMaes changed the title [ENHANCEMENT]: Add template tag setup to ember new for apps [ENHANCEMENT] Add template tag setup to ember new for apps Mar 5, 2024
},
},<% if (templateTag) { %>
// Template tag files
{
Copy link
Contributor

Choose a reason for hiding this comment

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

to do this we need to move everything out of the root-object of the .eslintrc and move everything to overrides because we can't have top-level parsers: https://github.com/ember-cli/ember-cli/pull/10447/files#diff-042c163c37338253d4a1cc6bf038fb8b4b45eebef94ebbd439a81c38b158dcb6R5

parsers can't be overridden by overrides, and lead to really weird hard to trace errors when you try

Copy link
Contributor

Choose a reason for hiding this comment

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

{
// test files
files: ['tests/**/*-test.{js,ts}'],
files: ['tests/**/*-test.{js,ts<% if (templateTag) { %>,gjs,gts<% } %>}'],
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for if statement (imo, obvs, but strongly), this should just be in the default.

@@ -89,17 +89,19 @@
"ember-page-title": "^8.2.0",
"ember-qunit": "^8.0.2",
"ember-resolver": "^11.0.1",
"ember-source": "~5.7.0-beta.1",
"ember-source": "~5.7.0-beta.1<% if (templateTag) { %>",
"ember-template-imports": "^4.1.0<% } %>",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we can include ember-template-imports, specifically, until this is resolved: ember-template-imports/ember-template-imports#228

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.

Couple blocking things

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.

None yet

2 participants