File tree Expand file tree Collapse file tree 6 files changed +38
-18
lines changed
Expand file tree Collapse file tree 6 files changed +38
-18
lines changed Original file line number Diff line number Diff line change 11/node_modules/
2+ /my-app/
Original file line number Diff line number Diff line change 1+ import { pageTitle } from 'ember-page-title';
2+ <% if (welcome) {%>import { WelcomePage } from 'ember-welcome-page';<% } %>
3+
4+ <template>
5+ {{pageTitle "<%= namespace %>"}}<% if (welcome) { %>
6+
7+ {{outlet}}
8+
9+ {{! The following component displays Ember's default welcome message. }}
10+ <WelcomePage />
11+ {{! Feel free to remove this! }}<% } else { %>
12+ <h2 id="title">Welcome to Ember</h2>
13+
14+ {{outlet}}<% } %>
15+ </template>
Original file line number Diff line number Diff line change 11<% if (warpDrive) { %>import '@warp-drive/ember/install';
2- import Application from 'ember-strict-application-resolver';
2+ <% } %> import Application from 'ember-strict-application-resolver';
33import config from '<%= modulePrefix %>/config/environment';<% if (notMinimal) { %>
4- import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';< } %>
4+ import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';<% } %>
55import setupInspector from '@embroider/legacy-inspector-support/ember-source-4.12';
66
77<% if (notMinimal) { %>
Original file line number Diff line number Diff line change 1- import { pageTitle } from 'ember-page-title';
2- <% if (welcome) {%>import { WelcomePage } from 'ember-welcome-page';<% } %>
3-
41<template>
5- {{pageTitle "<%= namespace %>"}}<% if (welcome) { % >
6-
2+ <h1>Welcome to Ember.js</h1 >
3+
74 {{outlet}}
8-
9- {{! The following component displays Ember's default welcome message. }}
10- <WelcomePage />
11- {{! Feel free to remove this! }}<% } else { %>
12- <h2 id="title">Welcome to Ember</h2>
13-
14- {{outlet}}<% } %>
155</template>
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const replacers = {
3131 return ejs.render(raw, locals);
3232 }
3333
34- return contents;
34+ return ejs.render( contents, locals) ;
3535 },
3636 'app/config/environment.ts'(locals, contents) {
3737 if (locals.noCompat) {
@@ -44,7 +44,20 @@ const replacers = {
4444 return ejs.render(raw, locals);
4545 }
4646
47- return contents;
47+ return ejs.render(contents, locals);
48+ },
49+ 'app/templates/application.gts'(locals, contents) {
50+ if (locals.minimal) {
51+ let filePath = join(
52+ CONDITIONAL_FILES,
53+ 'minimal',
54+ 'app/templates/application.gts',
55+ );
56+ let raw = readFileSync(filePath).toString();
57+ return ejs.render(raw, locals);
58+ }
59+
60+ return ejs.render(contents, locals);
4861 },
4962 'package.json'(...args) {
5063 return this.updatePackageJson(...args);
@@ -61,7 +74,7 @@ const replacers = {
6174 let prefix = locals.typescript ? '_ts_' : '_js_';
6275
6376 let filePath = join(
64- [
77+ ... [
6578 CONDITIONAL_FILES,
6679 locals.noCompat && 'no-compat',
6780 prefix + 'babel.config.mjs',
Original file line number Diff line number Diff line change 1818 "lint:eslint": "eslint .",
1919 "lint:prettier": "prettier . --check",
2020 "format": "prettier . --write",
21- "test": "vitest"
21+ "test": "vitest",
22+ "new:app": "pnpm dlx ember-cli@latest new my-app --blueprint ."
2223 },
2324 "release-plan": {
2425 "semverIncrementAs": {
You can’t perform that action at this time.
0 commit comments