@jsenv/core 38.2.5 → 38.2.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @jsenv/core [![npm package](https://img.shields.io/npm/v/@jsenv/core.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/core)
2
2
 
3
- Jsenv is a tool to develop test and build projects using JavaScript. Jsenv is simple, easy to understand and well [documented](<https://github.com/jsenv/core/wiki/A)-directory-structure>).
3
+ Jsenv is a tool to develop test and build projects using JavaScript. Jsenv is simple, easy to understand and well documented.
4
4
 
5
5
  Jsenv cares a lot about the developper experience, especially when it comes to tests.
6
6
 
@@ -11,23 +11,11 @@ The pillars of jsenv are:
11
11
  3. A build server serving build files
12
12
  4. A test runner executing test files in web browser(s)
13
13
 
14
- # The best parts
15
-
16
- ## Reduce cognitive load inside test files
17
-
18
- When coding, we spend most of our time working on source files. At some point we switch from source files to test files. Suddenly things are different:
19
-
20
- - code does not execute as it would in source files
21
- - some tools are used differently in test files, some cannot be used at all
22
- - you are forced to code in a certain way that is completely different from the one in source files
14
+ [Link to documentation](<https://github.com/jsenv/core/wiki/A)-directory-structure>)
23
15
 
24
- This huge gap between source files and test files creates a context switching costing a lot of cognitive energy.
25
- Jsenv makes a special effort to [provide a solution](<https://github.com/jsenv/core/wiki/D)-Test>) where switching from source files to test files is easy.
26
-
27
- It also means tools used on source files can be reused on test files: ESlint, VSCode debugger, etc. No need to maintain separate tools and/or configurations.
28
-
29
- ## Other good parts
16
+ # The best parts
30
17
 
18
+ - Tools and habits used in source files [can be reused in test files](<https://github.com/jsenv/core/wiki/D)-Test>).
31
19
  - A [large browser support during dev](<https://github.com/jsenv/core/wiki/B)-Dev#21-browser-support>). Because some people might be happy to use an other browser than the latest chrome during dev. Moreover it is useful to reproduce bug specific to certain browsers.
32
20
  - A [large browser support after build](<https://github.com/jsenv/core/wiki/C)-Build#211-maximal-browser-support>). Because some product still needs to support old versions of Firefox, Chrome and Safari.
33
21
  - A [single set of files during build](<https://github.com/jsenv/core/wiki/C)-Build#212-same-build-for-all-browsers>). Because a single one is simpler to properly support in every aspects.
@@ -35,7 +23,7 @@ It also means tools used on source files can be reused on test files: ESlint, VS
35
23
  - Ability to [execute tests in multiple browsers](<https://github.com/jsenv/core/wiki/D)-Test#32-executing-on-more-browsers>): Chrome, Safari, Firefox
36
24
  - An advanced support of top level await, allowing to use it everywhere
37
25
  - An advanced support of web workers including worker type module
38
- - Unlock js module features on a regular `<script>` when needed. If you need the behaviour of `<script>` which is to block other `<script>` tag in the page, you'll be happy to still have the power of js modules, like imports, at your disposal.
26
+ - Unlock js module features on a regular `<script>` when needed. If you need the behaviour of `<script>` which is to block execution of following `<script>` in the page, you'll be happy to [still have the power of js modules](<https://github.com/jsenv/core/wiki/G)-Plugins#22-asjsclassic>), like imports, at your disposal.
39
27
 
40
28
  # Demos
41
29
 
@@ -57,7 +45,7 @@ It will prompt to choose one of the available demo:
57
45
  node-package
58
46
  ```
59
47
 
60
- Selecting "web" will copy [create-jsenv/demo-web](https://github.com/jsenv/core/tree/bc7fb0aa2c8ced1db4d7583a2ea1858be464c23b/packages/related/create-jsenv/demo-web)<sup>↗</sup> files into a directory:
48
+ Selecting "web" will copy [create-jsenv/demo-web](https://github.com/jsenv/core/tree/bc7fb0aa2c8ced1db4d7583a2ea1858be464c23b/packages/related/create-jsenv/demo-web) files into a directory:
61
49
 
62
50
  ```console
63
51
  ✔ Select a demo: › web
@@ -71,9 +59,6 @@ npm start
71
59
 
72
60
  After running the suggested commands the demo is ready.
73
61
 
74
- > **Info**
75
- > "npm install" can take time because tests are runned in headless browsers that needs to be installed first.
76
-
77
62
  The demo contains preconfigured scripts:
78
63
 
79
64
  - `npm run dev`: starts a server for source files; Documented in [B) Dev](<https://github.com/jsenv/core/wiki/B)-Dev>).
@@ -3857,6 +3857,7 @@ const createLog = ({
3857
3857
  write,
3858
3858
  dynamicWrite,
3859
3859
  destroy,
3860
+ stream,
3860
3861
  });
3861
3862
  return log;
3862
3863
  };
@@ -3891,7 +3892,7 @@ const startSpinner = ({
3891
3892
  stopOnVerticalOverflow = true,
3892
3893
  render = () => "",
3893
3894
  effect = () => {},
3894
- animated = true,
3895
+ animated = log.stream.isTTY,
3895
3896
  }) => {
3896
3897
  let frameIndex = 0;
3897
3898
  let interval;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "38.2.5",
3
+ "version": "38.2.6",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -65,13 +65,13 @@
65
65
  "@jsenv/filesystem": "4.3.2",
66
66
  "@jsenv/importmap": "1.2.1",
67
67
  "@jsenv/integrity": "0.0.1",
68
- "@jsenv/log": "3.4.0",
68
+ "@jsenv/log": "3.4.1",
69
69
  "@jsenv/node-esm-resolution": "1.0.1",
70
70
  "@jsenv/js-module-fallback": "1.3.5",
71
71
  "@jsenv/runtime-compat": "1.2.0",
72
- "@jsenv/server": "15.1.2",
72
+ "@jsenv/server": "15.1.3",
73
73
  "@jsenv/sourcemap": "1.2.3",
74
- "@jsenv/plugin-bundling": "2.5.4",
74
+ "@jsenv/plugin-bundling": "2.5.5",
75
75
  "@jsenv/plugin-minification": "1.5.2",
76
76
  "@jsenv/plugin-transpilation": "1.3.4",
77
77
  "@jsenv/plugin-supervisor": "1.3.4",