@jsenv/core 39.2.1 → 39.2.3
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/README.md +9 -11
- package/dist/jsenv_core.js +14088 -14085
- package/package.json +15 -13
- package/src/build/build.js +4 -4
- package/src/build/build_specifier_manager.js +15 -15
- package/src/build/build_urls_generator.js +1 -1
- package/src/build/start_build_server.js +6 -6
- package/src/build/version_mappings_injection.js +2 -2
- package/src/dev/start_dev_server.js +9 -9
- package/src/helpers/command/command.js +1 -1
- package/src/helpers/web_url_converter.js +1 -1
- package/src/kitchen/errors.js +1 -1
- package/src/kitchen/kitchen.js +11 -11
- package/src/kitchen/prepend_content.js +4 -4
- package/src/kitchen/url_graph/references.js +3 -3
- package/src/kitchen/url_graph/url_graph.js +2 -2
- package/src/kitchen/url_graph/url_graph_report.js +1 -1
- package/src/kitchen/url_graph/url_info_transformations.js +5 -5
- package/src/plugins/autoreload/jsenv_plugin_autoreload.js +1 -1
- package/src/plugins/autoreload/jsenv_plugin_autoreload_client.js +1 -1
- package/src/plugins/commonjs_globals/jsenv_plugin_commonjs_globals.js +1 -1
- package/src/plugins/global_scenarios/jsenv_plugin_global_scenarios.js +1 -1
- package/src/plugins/html_syntax_error_fallback/jsenv_plugin_html_syntax_error_fallback.js +2 -2
- package/src/plugins/import_meta_hot/html_hot_dependencies.js +1 -1
- package/src/plugins/import_meta_hot/jsenv_plugin_import_meta_hot.js +2 -2
- package/src/plugins/import_meta_scenarios/jsenv_plugin_import_meta_scenarios.js +1 -1
- package/src/plugins/injections/internal/inject_globals.js +1 -1
- package/src/plugins/injections/jsenv_plugin_injections.js +1 -1
- package/src/plugins/inlining/jsenv_plugin_inlining_into_html.js +6 -6
- package/src/plugins/plugins.js +2 -0
- package/src/plugins/protocol_file/jsenv_plugin_protocol_file.js +17 -17
- package/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js +11 -11
- package/src/plugins/reference_analysis/js/jsenv_plugin_js_reference_analysis.js +1 -1
- package/src/plugins/reference_analysis/jsenv_plugin_reference_analysis.js +4 -4
- package/src/plugins/resolution_node_esm/node_esm_resolver.js +2 -2
- package/src/plugins/ribbon/jsenv_plugin_ribbon.js +1 -1
- package/src/plugins/server_events/jsenv_plugin_server_events_client_injection.js +1 -1
package/README.md
CHANGED
|
@@ -18,15 +18,18 @@ Link to [documentation](./docs/users/users.md)
|
|
|
18
18
|
|
|
19
19
|
# CLI
|
|
20
20
|
|
|
21
|
-
The following command
|
|
21
|
+
The following command init jsenv on your machine.
|
|
22
22
|
|
|
23
23
|
```console
|
|
24
|
-
|
|
24
|
+
npx @jsenv/cli
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
> If you don't have `npx` command you must [install Node.js](https://nodejs.org/en/download/package-manager)
|
|
28
|
+
|
|
29
|
+
The command init jsenv in a directory. It can be a new directory or an existing one.
|
|
28
30
|
|
|
29
31
|
```console
|
|
32
|
+
> npx @jsenv/cli
|
|
30
33
|
Welcome in jsenv CLI
|
|
31
34
|
? Enter a directory: ›
|
|
32
35
|
```
|
|
@@ -34,6 +37,7 @@ Welcome in jsenv CLI
|
|
|
34
37
|
Then you'll be prompted to select a template.
|
|
35
38
|
|
|
36
39
|
```console
|
|
40
|
+
> npx @jsenv/cli
|
|
37
41
|
✔ Enter a directory: › demo
|
|
38
42
|
? Select a template: › - Use arrow-keys. Return to submit.
|
|
39
43
|
❯ web
|
|
@@ -44,9 +48,10 @@ Then you'll be prompted to select a template.
|
|
|
44
48
|
```
|
|
45
49
|
|
|
46
50
|
A template is a project pre-configured with jsenv.
|
|
47
|
-
Selecting "web" would init [
|
|
51
|
+
Selecting "web" would init [template-web/](./packages/related/cli/template-web/):
|
|
48
52
|
|
|
49
53
|
```console
|
|
54
|
+
> npx @jsenv/cli
|
|
50
55
|
✔ Enter a directory: › demo
|
|
51
56
|
✔ Select a template: › web
|
|
52
57
|
✔ init jsenv in "[...]/demo/" (done in 0.01 second)
|
|
@@ -56,13 +61,6 @@ npm install
|
|
|
56
61
|
-----------------------------
|
|
57
62
|
```
|
|
58
63
|
|
|
59
|
-
The templates have installed scripts:
|
|
60
|
-
|
|
61
|
-
- `npm run dev`: starts a server for source files; Documented in [B) Dev](./docs/users/b_dev/b_dev.md).
|
|
62
|
-
- `npm run build`: generate build files; Documented in [C) Build](./docs/users/c_build/c_build.md).
|
|
63
|
-
- `npm run build:serve`: start a server for build files; Documented in [C) Build#how-to-serve-build-files](./docs/users/c_build/c_build.md#3-how-to-serve-build-files).
|
|
64
|
-
- `npm run test`: execute test files; Documented in [D) Test](./docs/users/d_test/d_test.md).
|
|
65
|
-
|
|
66
64
|
<!-- For example in order to start a dev server you would rather do `npm run dev` that would be declared in [package.json#scripts.dev](./packages/related/create-jsenv/demo-web/package.json#L8) to execute [scripts/dev.mjs](./packages/related/create-jsenv/demo-web/scripts/dev.mjs). -->
|
|
67
65
|
|
|
68
66
|
# The best parts
|