@jsenv/cli 0.0.7 → 0.0.9
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/jsenv_cli.js +6 -6
- package/package.json +3 -3
- package/template-node-package/.jsenv/jsenv_tests_output.txt +2 -2
- package/template-node-package/package.json +3 -3
- package/template-web/package.json +4 -4
- package/template-web-components/package.json +4 -4
- package/template-web-preact/package.json +5 -5
- package/template-web-react/package.json +5 -5
package/jsenv_cli.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
// see https://docs.npmjs.com/cli/v8/commands/npm-init#description
|
|
4
4
|
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
5
6
|
import {
|
|
6
7
|
existsSync,
|
|
7
|
-
readdirSync,
|
|
8
8
|
mkdirSync,
|
|
9
|
+
readdirSync,
|
|
10
|
+
readFileSync,
|
|
9
11
|
statSync,
|
|
10
12
|
writeFileSync,
|
|
11
|
-
readFileSync,
|
|
12
13
|
} from "node:fs";
|
|
13
14
|
import { relative } from "node:path";
|
|
15
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
14
16
|
import { parseArgs } from "node:util";
|
|
15
|
-
import { pathToFileURL, fileURLToPath } from "node:url";
|
|
16
|
-
import { execSync } from "node:child_process";
|
|
17
17
|
|
|
18
|
-
import prompts from "prompts";
|
|
19
18
|
import { createTaskLog, UNICODE } from "@jsenv/humanize";
|
|
20
|
-
import {
|
|
19
|
+
import { ensurePathnameTrailingSlash, urlToRelativeUrl } from "@jsenv/urls";
|
|
20
|
+
import prompts from "prompts";
|
|
21
21
|
|
|
22
22
|
// not using readdir to control order
|
|
23
23
|
const availableTemplateNameArray = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Command Line Interface for jsenv",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"./template-*/**"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jsenv/humanize": "1.2.
|
|
31
|
-
"@jsenv/urls": "2.3.
|
|
30
|
+
"@jsenv/humanize": "1.2.5",
|
|
31
|
+
"@jsenv/urls": "2.3.1",
|
|
32
32
|
"prompts": "2.4.2"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
------------- 1 execution ready -------------
|
|
2
|
-
directory: /Users/damien.maillard/dev/perso/jsenv-core/packages/related/
|
|
2
|
+
directory: /Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-node-package
|
|
3
3
|
---------------------------------------------
|
|
4
4
|
✔ 1/1 tests/message.test.mjs [0.02s] (all completed)
|
|
5
5
|
------------- 1 execution done --------------
|
|
6
6
|
status: all completed
|
|
7
|
-
duration: 0.1s (setup: 0.
|
|
7
|
+
duration: 0.1s (setup: 0.005s, execution: 0.1s, teardown: 0s)
|
|
8
8
|
---------------------------------------------
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"test:coverage": "npm run test -- --coverage"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@jsenv/assert": "4.1.
|
|
15
|
-
"@jsenv/core": "39.2.
|
|
14
|
+
"@jsenv/assert": "4.1.5",
|
|
15
|
+
"@jsenv/core": "39.2.3",
|
|
16
16
|
"@jsenv/eslint-config": "16.5.2",
|
|
17
17
|
"@jsenv/eslint-import-resolver": "8.1.2",
|
|
18
|
-
"@jsenv/test": "3.3.
|
|
18
|
+
"@jsenv/test": "3.3.13",
|
|
19
19
|
"eslint": "8.56.0",
|
|
20
20
|
"eslint-plugin-import": "2.29.1",
|
|
21
21
|
"prettier": "3.3.3"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/eslint-parser": "7.24.8",
|
|
18
18
|
"@babel/plugin-syntax-import-assertions": "7.24.7",
|
|
19
|
-
"@jsenv/assert": "4.1.
|
|
20
|
-
"@jsenv/core": "39.2.
|
|
19
|
+
"@jsenv/assert": "4.1.5",
|
|
20
|
+
"@jsenv/core": "39.2.3",
|
|
21
21
|
"@jsenv/eslint-config": "16.5.2",
|
|
22
22
|
"@jsenv/eslint-import-resolver": "8.1.2",
|
|
23
|
-
"@jsenv/plugin-bundling": "2.6.
|
|
23
|
+
"@jsenv/plugin-bundling": "2.6.18",
|
|
24
24
|
"@jsenv/plugin-minification": "1.5.5",
|
|
25
|
-
"@jsenv/test": "3.3.
|
|
25
|
+
"@jsenv/test": "3.3.13",
|
|
26
26
|
"eslint": "8.56.0",
|
|
27
27
|
"eslint-plugin-html": "8.1.1",
|
|
28
28
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"@babel/eslint-parser": "7.24.8",
|
|
19
19
|
"@babel/plugin-syntax-import-assertions": "7.24.7",
|
|
20
20
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
21
|
-
"@jsenv/assert": "4.1.
|
|
22
|
-
"@jsenv/core": "39.2.
|
|
23
|
-
"@jsenv/plugin-bundling": "2.6.
|
|
21
|
+
"@jsenv/assert": "4.1.5",
|
|
22
|
+
"@jsenv/core": "39.2.3",
|
|
23
|
+
"@jsenv/plugin-bundling": "2.6.18",
|
|
24
24
|
"@jsenv/plugin-minification": "1.5.5",
|
|
25
25
|
"@jsenv/eslint-config": "16.5.2",
|
|
26
26
|
"@jsenv/eslint-import-resolver": "8.1.2",
|
|
27
|
-
"@jsenv/test": "3.3.
|
|
27
|
+
"@jsenv/test": "3.3.13",
|
|
28
28
|
"eslint": "8.56.0",
|
|
29
29
|
"eslint-plugin-html": "8.1.1",
|
|
30
30
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"@babel/eslint-parser": "7.24.8",
|
|
22
22
|
"@babel/plugin-syntax-import-assertions": "7.24.7",
|
|
23
23
|
"@babel/plugin-transform-react-jsx": "7.24.7",
|
|
24
|
-
"@jsenv/assert": "4.1.
|
|
25
|
-
"@jsenv/core": "39.2.
|
|
26
|
-
"@jsenv/plugin-preact": "1.6.
|
|
27
|
-
"@jsenv/plugin-bundling": "2.6.
|
|
24
|
+
"@jsenv/assert": "4.1.5",
|
|
25
|
+
"@jsenv/core": "39.2.3",
|
|
26
|
+
"@jsenv/plugin-preact": "1.6.4",
|
|
27
|
+
"@jsenv/plugin-bundling": "2.6.18",
|
|
28
28
|
"@jsenv/plugin-minification": "1.5.5",
|
|
29
29
|
"@jsenv/eslint-config": "16.5.2",
|
|
30
30
|
"@jsenv/eslint-import-resolver": "8.1.2",
|
|
31
|
-
"@jsenv/test": "3.3.
|
|
31
|
+
"@jsenv/test": "3.3.13",
|
|
32
32
|
"eslint": "8.56.0",
|
|
33
33
|
"eslint-plugin-html": "8.1.1",
|
|
34
34
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"@babel/eslint-parser": "7.24.8",
|
|
23
23
|
"@babel/plugin-syntax-import-assertions": "7.24.7",
|
|
24
24
|
"@babel/plugin-transform-react-jsx": "7.24.7",
|
|
25
|
-
"@jsenv/assert": "4.1.
|
|
26
|
-
"@jsenv/core": "39.2.
|
|
27
|
-
"@jsenv/plugin-react": "1.5.
|
|
28
|
-
"@jsenv/plugin-bundling": "2.6.
|
|
25
|
+
"@jsenv/assert": "4.1.5",
|
|
26
|
+
"@jsenv/core": "39.2.3",
|
|
27
|
+
"@jsenv/plugin-react": "1.5.4",
|
|
28
|
+
"@jsenv/plugin-bundling": "2.6.18",
|
|
29
29
|
"@jsenv/plugin-minification": "1.5.5",
|
|
30
30
|
"@jsenv/eslint-config": "16.5.2",
|
|
31
31
|
"@jsenv/eslint-import-resolver": "8.1.2",
|
|
32
|
-
"@jsenv/test": "3.3.
|
|
32
|
+
"@jsenv/test": "3.3.13",
|
|
33
33
|
"eslint": "8.56.0",
|
|
34
34
|
"eslint-plugin-html": "8.1.1",
|
|
35
35
|
"eslint-plugin-import": "2.29.1",
|