@emberkit/cli 0.6.1-alpha.11 → 0.6.1-alpha.12
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
/** `packages/cli/package.json` version (works when running compiled output in `dist/`). */
|
|
5
|
+
export function getCliPackageVersion() {
|
|
6
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const pkgPath = join(here, "../package.json");
|
|
8
|
+
const raw = readFileSync(pkgPath, "utf8");
|
|
9
|
+
return JSON.parse(raw).version;
|
|
10
|
+
}
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import inquirer from "inquirer";
|
|
2
|
+
import { getCliPackageVersion } from "./cli-package-version.js";
|
|
2
3
|
import { dev } from "./commands/dev.js";
|
|
3
4
|
import { build } from "./commands/build.js";
|
|
4
5
|
import { preview } from "./commands/preview.js";
|
|
@@ -29,7 +30,7 @@ export async function runCLI(args) {
|
|
|
29
30
|
break;
|
|
30
31
|
case "--version":
|
|
31
32
|
case "-v":
|
|
32
|
-
console.log(
|
|
33
|
+
console.log(`EmberKit CLI v${getCliPackageVersion()}`);
|
|
33
34
|
break;
|
|
34
35
|
case "--help":
|
|
35
36
|
case "-h":
|
|
@@ -43,7 +44,7 @@ export async function runCLI(args) {
|
|
|
43
44
|
}
|
|
44
45
|
function showHelp() {
|
|
45
46
|
console.log(`
|
|
46
|
-
🔥 EmberKit CLI
|
|
47
|
+
🔥 EmberKit CLI v${getCliPackageVersion()}
|
|
47
48
|
|
|
48
49
|
Usage: emberkit <command> [options]
|
|
49
50
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Semver ranges for @emberkit/* packages written into generated projects.
|
|
2
|
+
// When releasing libraries, bump these to match packages/*/package.json "version".
|
|
3
|
+
export const EMBERKIT_PACKAGE_VERSIONS = {
|
|
4
|
+
core: "^0.2.6-alpha.0",
|
|
5
|
+
ui: "^0.3.0-alpha.2",
|
|
6
|
+
icons: "^0.2.3-alpha.1",
|
|
7
|
+
cli: "^0.6.1-alpha.12",
|
|
8
|
+
edge: "^0.2.3-alpha.0",
|
|
9
|
+
tsconfig: "^0.2.1",
|
|
10
|
+
};
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
* Shared builders for project template boilerplate.
|
|
3
3
|
* Each template composes from these instead of duplicating identical config files.
|
|
4
4
|
*/
|
|
5
|
+
import { EMBERKIT_PACKAGE_VERSIONS as V } from "../../../emberkit-package-versions.js";
|
|
5
6
|
export function buildPackageJson(options = {}) {
|
|
6
7
|
const { hasTailwind = false, hasUI = false } = options;
|
|
7
|
-
const deps = { "@emberkit/core":
|
|
8
|
-
if (hasUI)
|
|
9
|
-
deps["@emberkit/ui"] =
|
|
8
|
+
const deps = { "@emberkit/core": V.core };
|
|
9
|
+
if (hasUI) {
|
|
10
|
+
deps["@emberkit/ui"] = V.ui;
|
|
11
|
+
deps["@emberkit/icons"] = V.icons;
|
|
12
|
+
}
|
|
10
13
|
const devDeps = {
|
|
11
|
-
"@emberkit/cli":
|
|
14
|
+
"@emberkit/cli": V.cli,
|
|
12
15
|
typescript: "^5.7.0",
|
|
13
16
|
vite: "^6.0.0",
|
|
14
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emberkit/cli",
|
|
3
|
-
"version": "0.6.1-alpha.
|
|
3
|
+
"version": "0.6.1-alpha.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "CLI tool for EmberKit projects",
|
|
@@ -40,7 +40,11 @@
|
|
|
40
40
|
"inquirer": "^9.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@
|
|
43
|
+
"@eslint/js": "^10.0.1",
|
|
44
|
+
"@types/inquirer": "^9.0.3",
|
|
45
|
+
"eslint": "^10.0.0",
|
|
46
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
47
|
+
"typescript-eslint": "^8.59.3"
|
|
44
48
|
},
|
|
45
49
|
"scripts": {
|
|
46
50
|
"build": "tsc",
|