@jsenv/cli 0.3.28 → 0.3.30
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/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,15 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@jsenv/cli)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
_@jsenv/cli_ is a command-line tool for quickly setting up JavaScript projects with jsenv configurations and best practices.
|
|
8
|
+
|
|
9
|
+
It provides templates for various project types to get you started immediately.
|
|
10
|
+
|
|
11
|
+
## Installation & Usage
|
|
12
|
+
|
|
13
|
+
Run the CLI directly with npx:
|
|
6
14
|
|
|
7
15
|
```console
|
|
8
16
|
npx @jsenv/cli
|
|
9
17
|
```
|
|
10
18
|
|
|
11
|
-
> `npx` command is installed with Node.js. If you don't have it you must [install Node.js](https://nodejs.org/en/download/package-manager).
|
|
19
|
+
> `npx` command is installed with Node.js. If you don't have it, you must [install Node.js](https://nodejs.org/en/download/package-manager).
|
|
20
|
+
|
|
21
|
+
## Getting Started
|
|
12
22
|
|
|
13
|
-
The command
|
|
23
|
+
The command initializes jsenv in a directory. It can be a new directory or an existing one.
|
|
14
24
|
|
|
15
25
|
```console
|
|
16
26
|
> npx @jsenv/cli
|
|
@@ -18,7 +28,9 @@ Welcome in jsenv CLI
|
|
|
18
28
|
? Enter a directory: ›
|
|
19
29
|
```
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
## Templates
|
|
32
|
+
|
|
33
|
+
After specifying a directory, you'll be prompted to select a template:
|
|
22
34
|
|
|
23
35
|
```console
|
|
24
36
|
> npx @jsenv/cli
|
|
@@ -31,8 +43,15 @@ Then you'll be prompted to select a template.
|
|
|
31
43
|
node-package
|
|
32
44
|
```
|
|
33
45
|
|
|
34
|
-
|
|
35
|
-
|
|
46
|
+
### Available Templates
|
|
47
|
+
|
|
48
|
+
- **web**: Basic web application with HTML, CSS, and JavaScript
|
|
49
|
+
- **web-components**: Project setup for creating reusable web components
|
|
50
|
+
- **web-react**: React-based web application configuration
|
|
51
|
+
- **web-preact**: Preact-based web application (lighter alternative to React)
|
|
52
|
+
- **node-package**: Configuration for creating a Node.js package
|
|
53
|
+
|
|
54
|
+
A template is a project pre-configured with jsenv. For example, selecting "web" would initialize the [web template](https://github.com/jsenv/core/tree/main/packages/related/cli/template-web):
|
|
36
55
|
|
|
37
56
|
```console
|
|
38
57
|
> npx @jsenv/cli
|
|
@@ -45,3 +64,11 @@ npm install
|
|
|
45
64
|
npm start
|
|
46
65
|
-----------------------------
|
|
47
66
|
```
|
|
67
|
+
|
|
68
|
+
## Next Steps
|
|
69
|
+
|
|
70
|
+
After initialization:
|
|
71
|
+
|
|
72
|
+
1. Navigate to your project directory: `cd your-directory`
|
|
73
|
+
2. Install dependencies: `npm install`
|
|
74
|
+
3. Start the development server: `npm start`
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"test:coverage": "npm run test -- --coverage"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jsenv/assert": "4.
|
|
15
|
+
"@jsenv/assert": "4.5.0",
|
|
16
16
|
"@jsenv/core": "40.3.1",
|
|
17
17
|
"@jsenv/eslint-config-relax": "1.4.10",
|
|
18
|
-
"@jsenv/test": "3.6.
|
|
18
|
+
"@jsenv/test": "3.6.13",
|
|
19
19
|
"eslint": "9.24.0",
|
|
20
20
|
"prettier": "3.5.3"
|
|
21
21
|
}
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
18
|
-
"@jsenv/assert": "4.
|
|
18
|
+
"@jsenv/assert": "4.5.0",
|
|
19
19
|
"@jsenv/core": "40.3.1",
|
|
20
20
|
"@jsenv/eslint-config-relax": "1.4.10",
|
|
21
21
|
"@jsenv/plugin-bundling": "2.9.3",
|
|
22
22
|
"@jsenv/plugin-minification": "1.6.3",
|
|
23
|
-
"@jsenv/test": "3.6.
|
|
23
|
+
"@jsenv/test": "3.6.13",
|
|
24
24
|
"eslint": "9.24.0",
|
|
25
25
|
"open": "10.1.0",
|
|
26
26
|
"@playwright/browser-chromium": "1.51.1",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
19
19
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
20
|
-
"@jsenv/assert": "4.
|
|
20
|
+
"@jsenv/assert": "4.5.0",
|
|
21
21
|
"@jsenv/core": "40.3.1",
|
|
22
22
|
"@jsenv/plugin-bundling": "2.9.3",
|
|
23
23
|
"@jsenv/plugin-minification": "1.6.3",
|
|
24
24
|
"@jsenv/eslint-config-relax": "1.4.10",
|
|
25
|
-
"@jsenv/test": "3.6.
|
|
25
|
+
"@jsenv/test": "3.6.13",
|
|
26
26
|
"eslint": "9.24.0",
|
|
27
27
|
"open": "10.1.0",
|
|
28
28
|
"@playwright/browser-chromium": "1.51.1",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
22
22
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
23
|
-
"@jsenv/assert": "4.
|
|
23
|
+
"@jsenv/assert": "4.5.0",
|
|
24
24
|
"@jsenv/core": "40.3.1",
|
|
25
25
|
"@jsenv/plugin-preact": "1.7.9",
|
|
26
26
|
"@jsenv/plugin-bundling": "2.9.3",
|
|
27
27
|
"@jsenv/plugin-minification": "1.6.3",
|
|
28
28
|
"@jsenv/eslint-config-relax": "1.4.10",
|
|
29
|
-
"@jsenv/test": "3.6.
|
|
29
|
+
"@jsenv/test": "3.6.13",
|
|
30
30
|
"eslint": "9.24.0",
|
|
31
31
|
"open": "10.1.0",
|
|
32
32
|
"@playwright/browser-chromium": "1.51.1",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
23
23
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
24
|
-
"@jsenv/assert": "4.
|
|
24
|
+
"@jsenv/assert": "4.5.0",
|
|
25
25
|
"@jsenv/core": "40.3.1",
|
|
26
26
|
"@jsenv/plugin-react": "1.7.9",
|
|
27
27
|
"@jsenv/plugin-bundling": "2.9.3",
|
|
28
28
|
"@jsenv/plugin-minification": "1.6.3",
|
|
29
29
|
"@jsenv/eslint-config-relax": "1.4.10",
|
|
30
|
-
"@jsenv/test": "3.6.
|
|
30
|
+
"@jsenv/test": "3.6.13",
|
|
31
31
|
"eslint": "9.24.0",
|
|
32
32
|
"open": "10.1.0",
|
|
33
33
|
"@playwright/browser-chromium": "1.51.1",
|