ember-cli 6.7.0-alpha.1 → 6.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/docs/build/data.json +69 -96
- package/lib/commands/init.js +1 -1
- package/lib/models/blueprint.js +34 -20
- package/lib/tasks/create-and-step-into-directory.js +1 -1
- package/lib/tasks/git-init.js +1 -1
- package/lib/tasks/npm-task.js +1 -1
- package/lib/utilities/lint-fix.js +1 -1
- package/package.json +6 -2
- package/{blueprints/addon → packages/addon-blueprint}/index.js +12 -7
- package/packages/addon-blueprint/node_modules/.bin/sort-package-json +21 -0
- package/packages/addon-blueprint/package.json +23 -0
- package/{blueprints/app → packages/app-blueprint}/files/config/ember-cli-update.json +1 -1
- package/{blueprints/app → packages/app-blueprint}/files/package.json +1 -1
- package/{blueprints/app → packages/app-blueprint}/index.js +7 -7
- package/packages/app-blueprint/package.json +17 -0
- package/packages/blueprint-blueprint/package.json +4 -0
- package/packages/blueprint-model/package.json +13 -0
- package/{lib/models → packages/blueprint-model/utilities}/edit-file-diff.js +1 -1
- package/{lib/models → packages/blueprint-model/utilities}/file-info.js +2 -2
- package/pnpm-workspace.yaml +2 -0
- /package/{blueprints/addon → packages/addon-blueprint}/additional-package.json +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/.github/workflows/ci.yml +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/CONTRIBUTING.md +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/LICENSE.md +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/README.md +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/addon/.gitkeep +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/app/.gitkeep +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/config/ember-try.js +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/config/optional-features.json +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/ember-cli-build.js +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/index.js +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/npmignore +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/tsconfig.declarations.json +0 -0
- /package/{blueprints/addon → packages/addon-blueprint}/files/tsconfig.json +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.editorconfig +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.ember-cli +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.github/workflows/ci.yml +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.prettierignore +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.prettierrc.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.stylelintignore +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.stylelintrc.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.template-lintrc.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/.watchmanconfig +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/README.md +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/_js_eslint.config.mjs +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/_ts_eslint.config.mjs +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/app.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/components/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/config/environment.d.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/controllers/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/deprecation-workflow.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/helpers/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/index.html +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/models/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/router.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/routes/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/styles/app.css +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/templates/_js_application.gjs +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/templates/_ts_application.gts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/app/templates/application.hbs +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/config/environment.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/config/optional-features.json +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/config/targets.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/ember-cli-build.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/gitignore +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/public/robots.txt +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/testem.js +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tests/helpers/index.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tests/index.html +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tests/integration/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tests/test-helper.ts +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tests/unit/.gitkeep +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/tsconfig.json +0 -0
- /package/{blueprints/app → packages/app-blueprint}/files/types/global.d.ts +0 -0
- /package/{blueprints/blueprint → packages/blueprint-blueprint}/files/blueprints/__name__/files/.gitkeep +0 -0
- /package/{blueprints/blueprint → packages/blueprint-blueprint}/files/blueprints/__name__/index.js +0 -0
- /package/{blueprints/blueprint → packages/blueprint-blueprint}/index.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/directory-for-package-name.js +0 -0
- /package/{lib/experiments/index.js → packages/blueprint-model/utilities/experiments.js} +0 -0
- /package/{lib → packages/blueprint-model}/utilities/open-editor.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/prepend-emoji.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/process-template.js +0 -0
package/lib/commands/init.js
CHANGED
|
@@ -131,7 +131,7 @@ module.exports = Command.extend({
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
const projectName = this.project.name();
|
|
134
|
-
const prependEmoji = require('
|
|
134
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
135
135
|
|
|
136
136
|
this.ui.writeLine('');
|
|
137
137
|
this.ui.writeLine(prependEmoji('🎉', `Successfully created project ${chalk.yellow(projectName)}.`));
|
package/lib/models/blueprint.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
@module ember-cli
|
|
5
5
|
*/
|
|
6
|
-
const FileInfo = require('
|
|
6
|
+
const FileInfo = require('@ember-tooling/blueprint-model/utilities/file-info');
|
|
7
7
|
const chalk = require('chalk');
|
|
8
8
|
const MarkdownColor = require('../utilities/markdown-color');
|
|
9
9
|
const sequence = require('../utilities/sequence');
|
|
@@ -21,6 +21,7 @@ const intersection = require('lodash/intersection');
|
|
|
21
21
|
const cloneDeep = require('lodash/cloneDeep');
|
|
22
22
|
const compact = require('lodash/compact');
|
|
23
23
|
const uniq = require('lodash/uniq');
|
|
24
|
+
const sortBy = require('lodash/sortBy');
|
|
24
25
|
const walkSync = require('walk-sync');
|
|
25
26
|
const SilentError = require('silent-error');
|
|
26
27
|
const CoreObject = require('core-object');
|
|
@@ -216,7 +217,7 @@ let Blueprint = CoreObject.extend({
|
|
|
216
217
|
this._super();
|
|
217
218
|
|
|
218
219
|
this.path = blueprintPath;
|
|
219
|
-
this.name = path.basename(blueprintPath);
|
|
220
|
+
this.name = blueprintOptions?.name ?? path.basename(blueprintPath);
|
|
220
221
|
|
|
221
222
|
this._processOptions(blueprintOptions);
|
|
222
223
|
},
|
|
@@ -1249,23 +1250,6 @@ let Blueprint = CoreObject.extend({
|
|
|
1249
1250
|
|
|
1250
1251
|
let previousCwd;
|
|
1251
1252
|
if (!this.project.isEmberCLIProject()) {
|
|
1252
|
-
// our blueprint ran *outside* an ember-cli project. So the only way this
|
|
1253
|
-
// makes sense if the blueprint generated a new project, which we're now
|
|
1254
|
-
// ready to add some addons into. So we need to switch from "outside" mode
|
|
1255
|
-
// to "inside" by reinitializing the Project.
|
|
1256
|
-
//
|
|
1257
|
-
// One might think the cache clear is unnecessary, because in theory the
|
|
1258
|
-
// caches should be shareable, but in practice the new Project we create
|
|
1259
|
-
// below will have the same root dir as the NullProject and that makes bad
|
|
1260
|
-
// things happen.
|
|
1261
|
-
this.project.packageInfoCache._clear();
|
|
1262
|
-
const Project = require('../../lib/models/project');
|
|
1263
|
-
this.project = taskOptions.blueprintOptions.project = Project.closestSync(
|
|
1264
|
-
options.blueprintOptions.target,
|
|
1265
|
-
this.project.ui,
|
|
1266
|
-
this.project.cli
|
|
1267
|
-
);
|
|
1268
|
-
|
|
1269
1253
|
// The install task adds dependencies based on the current working directory.
|
|
1270
1254
|
// But in case we created the new project by calling the blueprint with a custom target directory (options.target),
|
|
1271
1255
|
// the current directory will *not* be the one the project is created in, so we must adjust this here.
|
|
@@ -1419,6 +1403,12 @@ let Blueprint = CoreObject.extend({
|
|
|
1419
1403
|
},
|
|
1420
1404
|
});
|
|
1421
1405
|
|
|
1406
|
+
const builtInBlueprints = new Map([
|
|
1407
|
+
['app', '@ember-tooling/classic-build-app-blueprint'],
|
|
1408
|
+
['addon', '@ember-tooling/classic-build-addon-blueprint'],
|
|
1409
|
+
['blueprint', '@ember-tooling/blueprint-blueprint'],
|
|
1410
|
+
]);
|
|
1411
|
+
|
|
1422
1412
|
/**
|
|
1423
1413
|
@static
|
|
1424
1414
|
@method lookup
|
|
@@ -1455,6 +1445,15 @@ Blueprint.lookup = function (name, options) {
|
|
|
1455
1445
|
}
|
|
1456
1446
|
}
|
|
1457
1447
|
|
|
1448
|
+
// Check for the built in blueprints
|
|
1449
|
+
if (builtInBlueprints.has(name)) {
|
|
1450
|
+
let blueprintPath = require.resolve(builtInBlueprints.get(name));
|
|
1451
|
+
|
|
1452
|
+
if (Blueprint._existsSync(blueprintPath)) {
|
|
1453
|
+
return Blueprint.load(path.dirname(blueprintPath), options.blueprintOptions);
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1458
1457
|
if (!options.ignoreMissing) {
|
|
1459
1458
|
throw new SilentError(`Unknown blueprint: ${name}`);
|
|
1460
1459
|
}
|
|
@@ -1522,9 +1521,24 @@ Blueprint.list = function (options) {
|
|
|
1522
1521
|
}
|
|
1523
1522
|
});
|
|
1524
1523
|
|
|
1524
|
+
// if we're listing blueprints from ember-cli then we should add the built-in blueprints
|
|
1525
|
+
if (source === 'ember-cli') {
|
|
1526
|
+
for (let [blueprintName, blueprintPackage] of builtInBlueprints.entries()) {
|
|
1527
|
+
let blueprint = Blueprint.load(path.dirname(require.resolve(blueprintPackage)), {
|
|
1528
|
+
name: blueprintName,
|
|
1529
|
+
});
|
|
1530
|
+
|
|
1531
|
+
let name = blueprintName;
|
|
1532
|
+
blueprint.overridden = seen.includes(name);
|
|
1533
|
+
seen.push(name);
|
|
1534
|
+
|
|
1535
|
+
blueprints.push(blueprint);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1525
1539
|
return {
|
|
1526
1540
|
source,
|
|
1527
|
-
blueprints: compact(blueprints),
|
|
1541
|
+
blueprints: sortBy(compact(blueprints), 'name'),
|
|
1528
1542
|
};
|
|
1529
1543
|
});
|
|
1530
1544
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const fs = require('fs-extra');
|
|
7
7
|
const Task = require('../models/task');
|
|
8
8
|
const SilentError = require('silent-error');
|
|
9
|
-
const directoryForPackageName = require('
|
|
9
|
+
const directoryForPackageName = require('@ember-tooling/blueprint-model/utilities/directory-for-package-name');
|
|
10
10
|
|
|
11
11
|
class CreateTask extends Task {
|
|
12
12
|
// Options: String directoryName, Boolean: dryRun
|
package/lib/tasks/git-init.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = class GitInitTask extends Task {
|
|
|
25
25
|
if (!hasGit) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
const prependEmoji = require('
|
|
28
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
29
29
|
ui.writeLine('');
|
|
30
30
|
ui.writeLine(prependEmoji('🎥', 'Initializing git repository.'));
|
|
31
31
|
await this._gitInit();
|
package/lib/tasks/npm-task.js
CHANGED
|
@@ -192,7 +192,7 @@ class NpmTask extends Task {
|
|
|
192
192
|
let startMessage = this.formatStartMessage(options.packages);
|
|
193
193
|
let completeMessage = this.formatCompleteMessage(options.packages);
|
|
194
194
|
|
|
195
|
-
const prependEmoji = require('
|
|
195
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
196
196
|
|
|
197
197
|
ui.writeLine('');
|
|
198
198
|
ui.writeLine(prependEmoji('🚧', 'Installing packages... This might take a couple of minutes.'));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const execa = require('../utilities/execa');
|
|
4
4
|
const { isPnpmProject, isYarnProject } = require('../utilities/package-managers');
|
|
5
|
-
const prependEmoji = require('
|
|
5
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
6
6
|
|
|
7
7
|
async function run(project) {
|
|
8
8
|
let lintFixScriptName = 'lint:fix';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-cli",
|
|
3
|
-
"version": "6.7.0-alpha.
|
|
3
|
+
"version": "6.7.0-alpha.2",
|
|
4
4
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -116,7 +116,11 @@
|
|
|
116
116
|
"walk-sync": "^3.0.0",
|
|
117
117
|
"watch-detector": "^1.0.2",
|
|
118
118
|
"workerpool": "^9.2.0",
|
|
119
|
-
"yam": "^1.0.0"
|
|
119
|
+
"yam": "^1.0.0",
|
|
120
|
+
"@ember-tooling/blueprint-blueprint": "0.0.1",
|
|
121
|
+
"@ember-tooling/blueprint-model": "0.0.1",
|
|
122
|
+
"@ember-tooling/classic-build-addon-blueprint": "6.7.0-alpha.2",
|
|
123
|
+
"@ember-tooling/classic-build-app-blueprint": "6.7.0-alpha.2"
|
|
120
124
|
},
|
|
121
125
|
"devDependencies": {
|
|
122
126
|
"@octokit/rest": "^19.0.7",
|
|
@@ -13,9 +13,15 @@ const { sortPackageJson } = require('sort-package-json');
|
|
|
13
13
|
let date = new Date();
|
|
14
14
|
|
|
15
15
|
const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
16
|
-
|
|
17
|
-
const directoryForPackageName = require('
|
|
18
|
-
const FileInfo = require('
|
|
16
|
+
|
|
17
|
+
const directoryForPackageName = require('@ember-tooling/blueprint-model/utilities/directory-for-package-name');
|
|
18
|
+
const FileInfo = require('@ember-tooling/blueprint-model/utilities/file-info');
|
|
19
|
+
|
|
20
|
+
const blueprintVersion = require('./package.json').version;
|
|
21
|
+
|
|
22
|
+
function stringifyAndNormalize(contents) {
|
|
23
|
+
return `${JSON.stringify(contents, null, 2)}\n`;
|
|
24
|
+
}
|
|
19
25
|
|
|
20
26
|
const replacers = {
|
|
21
27
|
'package.json'(content) {
|
|
@@ -175,10 +181,9 @@ module.exports = {
|
|
|
175
181
|
},
|
|
176
182
|
|
|
177
183
|
beforeInstall() {
|
|
178
|
-
const
|
|
179
|
-
const prependEmoji = require('../../lib/utilities/prepend-emoji');
|
|
184
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
180
185
|
|
|
181
|
-
this.ui.writeLine(chalk.blue(
|
|
186
|
+
this.ui.writeLine(chalk.blue(`@ember-tooling/classic-build-addon-blueprint v${blueprintVersion}`));
|
|
182
187
|
this.ui.writeLine('');
|
|
183
188
|
this.ui.writeLine(prependEmoji('✨', `Creating a new Ember addon in ${chalk.yellow(process.cwd())}:`));
|
|
184
189
|
},
|
|
@@ -231,7 +236,7 @@ module.exports = {
|
|
|
231
236
|
namespace,
|
|
232
237
|
addonName,
|
|
233
238
|
addonNamespace,
|
|
234
|
-
|
|
239
|
+
blueprintVersion,
|
|
235
240
|
year: date.getFullYear(),
|
|
236
241
|
yarn: options.packageManager === 'yarn',
|
|
237
242
|
pnpm: options.packageManager === 'pnpm',
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/sort-package-json@2.12.0/node_modules/sort-package-json/node_modules:/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/sort-package-json@2.12.0/node_modules:/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/sort-package-json@2.12.0/node_modules/sort-package-json/node_modules:/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/sort-package-json@2.12.0/node_modules:/home/runner/work/ember-cli/ember-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../sort-package-json/cli.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../sort-package-json/cli.js" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ember-tooling/classic-build-addon-blueprint",
|
|
3
|
+
"version": "6.7.0-alpha.2",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@ember-tooling/blueprint-model": "workspace:*",
|
|
6
|
+
"chalk": "^4.1.2",
|
|
7
|
+
"ember-cli-normalize-entity-name": "^1.0.0",
|
|
8
|
+
"ember-cli-string-utils": "^1.1.0",
|
|
9
|
+
"fs-extra": "^11.3.0",
|
|
10
|
+
"lodash": "^4.17.21",
|
|
11
|
+
"silent-error": "^1.1.1",
|
|
12
|
+
"sort-package-json": "^2.12.0",
|
|
13
|
+
"walk-sync": "^3.0.0"
|
|
14
|
+
},
|
|
15
|
+
"release-plan": {
|
|
16
|
+
"semverIncrementAs": {
|
|
17
|
+
"minor": "prerelease",
|
|
18
|
+
"patch": "prerelease"
|
|
19
|
+
},
|
|
20
|
+
"semverIncrementTag": "alpha",
|
|
21
|
+
"publishTag": "alpha"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"broccoli-asset-rev": "^3.0.0",
|
|
61
61
|
"concurrently": "^9.1.2",
|
|
62
62
|
"ember-auto-import": "^2.10.0",
|
|
63
|
-
"ember-cli": "
|
|
63
|
+
"ember-cli": "~6.7.0-alpha.1",
|
|
64
64
|
"ember-cli-app-version": "^7.0.0",
|
|
65
65
|
"ember-cli-babel": "^8.2.0",
|
|
66
66
|
"ember-cli-clean-css": "^3.0.0",
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const stringUtil = require('ember-cli-string-utils');
|
|
4
4
|
const chalk = require('chalk');
|
|
5
|
-
const { isExperimentEnabled } = require('
|
|
6
|
-
const directoryForPackageName = require('
|
|
5
|
+
const { isExperimentEnabled } = require('@ember-tooling/blueprint-model/utilities/experiments');
|
|
6
|
+
const directoryForPackageName = require('@ember-tooling/blueprint-model/utilities/directory-for-package-name');
|
|
7
|
+
const blueprintVersion = require('./package.json').version;
|
|
7
8
|
|
|
8
9
|
module.exports = {
|
|
10
|
+
name: '@ember-tooling/classic-build-app-blueprint',
|
|
9
11
|
description: 'The default blueprint for ember-cli projects.',
|
|
10
12
|
|
|
11
13
|
shouldTransformTypeScript: true,
|
|
@@ -66,7 +68,7 @@ module.exports = {
|
|
|
66
68
|
name,
|
|
67
69
|
modulePrefix: name,
|
|
68
70
|
namespace,
|
|
69
|
-
|
|
71
|
+
blueprintVersion,
|
|
70
72
|
yarn: options.packageManager === 'yarn',
|
|
71
73
|
pnpm: options.packageManager === 'pnpm',
|
|
72
74
|
npm: options.packageManager !== 'yarn' && options.packageManager !== 'pnpm',
|
|
@@ -119,10 +121,8 @@ module.exports = {
|
|
|
119
121
|
},
|
|
120
122
|
|
|
121
123
|
beforeInstall() {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.ui.writeLine(chalk.blue(`Ember CLI v${version}`));
|
|
124
|
+
const prependEmoji = require('@ember-tooling/blueprint-model/utilities/prepend-emoji');
|
|
125
|
+
this.ui.writeLine(chalk.blue(`@ember-tooling/classic-build-app-blueprint v${blueprintVersion}`));
|
|
126
126
|
this.ui.writeLine('');
|
|
127
127
|
this.ui.writeLine(prependEmoji('✨', `Creating a new Ember app in ${chalk.yellow(process.cwd())}:`));
|
|
128
128
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ember-tooling/classic-build-app-blueprint",
|
|
3
|
+
"version": "6.7.0-alpha.2",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@ember-tooling/blueprint-model": "workspace:*",
|
|
6
|
+
"chalk": "^4.1.2",
|
|
7
|
+
"ember-cli-string-utils": "^1.1.0"
|
|
8
|
+
},
|
|
9
|
+
"release-plan": {
|
|
10
|
+
"semverIncrementAs": {
|
|
11
|
+
"minor": "prerelease",
|
|
12
|
+
"patch": "prerelease"
|
|
13
|
+
},
|
|
14
|
+
"semverIncrementTag": "alpha",
|
|
15
|
+
"publishTag": "alpha"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ember-tooling/blueprint-model",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"chalk": "^4.1.2",
|
|
6
|
+
"diff": "^7.0.0",
|
|
7
|
+
"isbinaryfile": "^5.0.4",
|
|
8
|
+
"lodash": "^4.17.21",
|
|
9
|
+
"promise.hash.helper": "^1.0.8",
|
|
10
|
+
"quick-temp": "^0.1.8",
|
|
11
|
+
"silent-error": "^1.1.1"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -6,7 +6,7 @@ const jsdiff = require('diff');
|
|
|
6
6
|
const quickTemp = require('quick-temp');
|
|
7
7
|
const path = require('path');
|
|
8
8
|
const SilentError = require('silent-error');
|
|
9
|
-
const openEditor = require('
|
|
9
|
+
const openEditor = require('./open-editor');
|
|
10
10
|
const hash = require('promise.hash.helper');
|
|
11
11
|
|
|
12
12
|
const readFile = util.promisify(fs.readFile);
|
|
@@ -8,8 +8,8 @@ const EOL = require('os').EOL;
|
|
|
8
8
|
const rxEOL = new RegExp(EOL, 'g');
|
|
9
9
|
const isBinaryFile = require('isbinaryfile').isBinaryFileSync;
|
|
10
10
|
const hash = require('promise.hash.helper');
|
|
11
|
-
const canEdit = require('
|
|
12
|
-
const processTemplate = require('
|
|
11
|
+
const canEdit = require('./open-editor').canEdit;
|
|
12
|
+
const processTemplate = require('./process-template');
|
|
13
13
|
|
|
14
14
|
const readFile = util.promisify(fs.readFile);
|
|
15
15
|
const lstat = util.promisify(fs.stat);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{blueprints/blueprint → packages/blueprint-blueprint}/files/blueprints/__name__/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|