You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assets/README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ To work on these assets you need to have [Node.js] and [npm] installed. (npm is
7
7
Assets are built with [esbuild], which, along with the JavaScript linter and test-runner, is set as a dependency in the assets `package.json` and installed via [npm]:
8
8
9
9
```bash
10
-
$ npm install --prefix assets
10
+
npm install --prefix assets
11
11
```
12
12
13
13
## `npm run` scripts
@@ -17,7 +17,7 @@ The following scripts are available from the root folder of the project.
17
17
### `build`
18
18
19
19
```bash
20
-
$ npm run --prefix assets build
20
+
npm run --prefix assets build
21
21
```
22
22
23
23
Build a complete production bundle, including JavaScript and CSS.
@@ -27,7 +27,7 @@ Build a complete production bundle, including JavaScript and CSS.
27
27
### `build:watch`
28
28
29
29
```bash
30
-
$ npm run --prefix assets build:watch
30
+
npm run --prefix assets build:watch
31
31
```
32
32
33
33
Run the `build` command with watch mode set, providing for automatic assets rebuilds on every asset file change.
@@ -37,30 +37,37 @@ Additionally, in watch mode, the docs are built after every asset rebuild, meani
37
37
### `lint`
38
38
39
39
```bash
40
-
$ npm run --prefix assets lint
40
+
npm run --prefix assets lint
41
41
```
42
42
43
43
Lint all JavaScript files using [ESLint].
44
44
45
45
### `lint:fix`
46
46
47
47
```bash
48
-
$ npm run --prefix assets lint:fix
48
+
npm run --prefix assets lint:fix
49
49
```
50
50
51
51
Lint and automatically fix all JavaScript files using [ESLint].
52
52
53
53
### `test`
54
54
55
55
```bash
56
-
$ npm run --prefix assets test
56
+
npm run --prefix assets test
57
57
```
58
58
59
-
Run all the available JavaScript tests using [Karma].
59
+
Run all the available JavaScript tests using [Vitest].
60
60
61
+
### `test:coverage`
62
+
63
+
```bash
64
+
npm run --prefix assets test:coverage
65
+
```
66
+
67
+
Run all the available JavaScript tests with code coverage using [Vitest].
0 commit comments