ember.nvp 0.4.0 → 0.5.0
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/.release-plan.json +3 -7
- package/CHANGELOG.md +15 -0
- package/package.json +3 -2
- package/src/cli/questions/name.js +5 -6
- package/src/cli/questions/path.js +5 -6
package/.release-plan.json
CHANGED
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
"solution": {
|
|
3
3
|
"ember.nvp": {
|
|
4
4
|
"impact": "minor",
|
|
5
|
-
"oldVersion": "0.
|
|
6
|
-
"newVersion": "0.
|
|
5
|
+
"oldVersion": "0.4.0",
|
|
6
|
+
"newVersion": "0.5.0",
|
|
7
7
|
"tagName": "latest",
|
|
8
8
|
"constraints": [
|
|
9
9
|
{
|
|
10
10
|
"impact": "minor",
|
|
11
11
|
"reason": "Appears in changelog section :rocket: Enhancement"
|
|
12
12
|
},
|
|
13
|
-
{
|
|
14
|
-
"impact": "patch",
|
|
15
|
-
"reason": "Appears in changelog section :bug: Bug Fix"
|
|
16
|
-
},
|
|
17
13
|
{
|
|
18
14
|
"impact": "patch",
|
|
19
15
|
"reason": "Appears in changelog section :house: Internal"
|
|
@@ -25,5 +21,5 @@
|
|
|
25
21
|
"oldVersion": "1.0.3"
|
|
26
22
|
}
|
|
27
23
|
},
|
|
28
|
-
"description": "## Release (2026-06-
|
|
24
|
+
"description": "## Release (2026-06-29)\n\n* ember.nvp 0.5.0 (minor)\n\n#### :rocket: Enhancement\n* `ember.nvp`\n * [#55](https://github.com/NullVoxPopuli/ember.nvp/pull/55) Upgrade @clack/prompts ([@tcjr](https://github.com/tcjr))\n\n#### :house: Internal\n* `ember.nvp`\n * [#53](https://github.com/NullVoxPopuli/ember.nvp/pull/53) Add typescript to root ([@tcjr](https://github.com/tcjr))\n\n#### Committers: 1\n- Tom Carter ([@tcjr](https://github.com/tcjr))\n"
|
|
29
25
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Release (2026-06-29)
|
|
4
|
+
|
|
5
|
+
* ember.nvp 0.5.0 (minor)
|
|
6
|
+
|
|
7
|
+
#### :rocket: Enhancement
|
|
8
|
+
* `ember.nvp`
|
|
9
|
+
* [#55](https://github.com/NullVoxPopuli/ember.nvp/pull/55) Upgrade @clack/prompts ([@tcjr](https://github.com/tcjr))
|
|
10
|
+
|
|
11
|
+
#### :house: Internal
|
|
12
|
+
* `ember.nvp`
|
|
13
|
+
* [#53](https://github.com/NullVoxPopuli/ember.nvp/pull/53) Add typescript to root ([@tcjr](https://github.com/tcjr))
|
|
14
|
+
|
|
15
|
+
#### Committers: 1
|
|
16
|
+
- Tom Carter ([@tcjr](https://github.com/tcjr))
|
|
17
|
+
|
|
3
18
|
## Release (2026-06-23)
|
|
4
19
|
|
|
5
20
|
* ember.nvp 0.4.0 (minor)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember.nvp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "ember project generator, alternative to the official blueprints, but more modern -- hopefully one day to upstream back in to ember-cli / official blueprints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"exports": "./src/index.js",
|
|
20
20
|
"bin": "./src/cli/index.js",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@clack/prompts": "^
|
|
22
|
+
"@clack/prompts": "^1.6.0",
|
|
23
23
|
"babel-remove-types": "^2.0.0",
|
|
24
24
|
"content-tag": "^4.2.0",
|
|
25
25
|
"ember-apply": "^2.17.0",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"prettier-plugin-ember-template-tag": "^2.1.6",
|
|
40
40
|
"release-plan": "^0.18.0",
|
|
41
41
|
"rimraf": "^6.1.3",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
42
43
|
"vite": "^8.0.14",
|
|
43
44
|
"vitest": "^4.1.7"
|
|
44
45
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { cancel, isCancel, text } from "@clack/prompts";
|
|
3
2
|
import packageNameRegex from "package-name-regex";
|
|
4
3
|
import { answers, printArgInUse } from "#args";
|
|
5
4
|
|
|
@@ -14,12 +13,12 @@ export async function askName() {
|
|
|
14
13
|
return answers.name;
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
|
-
const projectName = await
|
|
16
|
+
const projectName = await text({
|
|
18
17
|
message: "What is your project name?",
|
|
19
18
|
placeholder: DEFAULT,
|
|
20
19
|
defaultValue: DEFAULT,
|
|
21
20
|
validate(value) {
|
|
22
|
-
if (value.length === 0) return;
|
|
21
|
+
if (!value || value.length === 0) return;
|
|
23
22
|
|
|
24
23
|
let isValid = packageNameRegex.test(value);
|
|
25
24
|
|
|
@@ -29,8 +28,8 @@ export async function askName() {
|
|
|
29
28
|
},
|
|
30
29
|
});
|
|
31
30
|
|
|
32
|
-
if (
|
|
33
|
-
|
|
31
|
+
if (isCancel(projectName)) {
|
|
32
|
+
cancel("Operation cancelled");
|
|
34
33
|
return process.exit(0);
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { cancel, isCancel, text } from "@clack/prompts";
|
|
3
2
|
import { join } from "node:path";
|
|
4
3
|
import { answers, printArgInUse } from "#args";
|
|
5
4
|
import { cwd } from "#utils/cwd.js";
|
|
@@ -29,12 +28,12 @@ export async function askPath(name) {
|
|
|
29
28
|
|
|
30
29
|
const defaultValue = join(cwd, name);
|
|
31
30
|
|
|
32
|
-
const answer = await
|
|
31
|
+
const answer = await text({
|
|
33
32
|
message: "Where would you like to place your project?",
|
|
34
33
|
placeholder: defaultValue.replace(cwd, "."),
|
|
35
34
|
defaultValue: defaultValue,
|
|
36
35
|
validate(value) {
|
|
37
|
-
if (value.length === 0) return;
|
|
36
|
+
if (!value || value.length === 0) return;
|
|
38
37
|
|
|
39
38
|
if (!isValid(value)) {
|
|
40
39
|
return `Path must start with a '.' or '/' (be either a relative or absolute path)`;
|
|
@@ -42,8 +41,8 @@ export async function askPath(name) {
|
|
|
42
41
|
},
|
|
43
42
|
});
|
|
44
43
|
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
if (isCancel(answer)) {
|
|
45
|
+
cancel("Operation cancelled");
|
|
47
46
|
return process.exit(0);
|
|
48
47
|
}
|
|
49
48
|
|