@teamscale/javascript-instrumenter 0.0.1-beta.3 → 0.0.1-beta.5
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 +4 -11
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ or
|
|
|
52
52
|
There are several options to run the Instrumenter. For example, via `yarn` by running
|
|
53
53
|
|
|
54
54
|
```
|
|
55
|
-
yarn
|
|
55
|
+
yarn instrumenter
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
or via `npx` by running
|
|
@@ -74,24 +74,17 @@ the file must contain source-map information, or the source-map file
|
|
|
74
74
|
must be placed along with the source file in the same directory.
|
|
75
75
|
|
|
76
76
|
```
|
|
77
|
-
yarn
|
|
77
|
+
yarn instrument --inplace ./the/path/to/the/file.js
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
```
|
|
81
|
-
yarn
|
|
81
|
+
yarn instrument --inplace ./the/path/to/the/file.js --source-map ./the/path/to/the/source.map
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
```
|
|
85
|
-
yarn
|
|
85
|
+
yarn instrument ./the/path/to/the/file.js --to ./the/file/path/to/write/to.js
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
### Instrumenting all JavaScript Files in a Folder
|
|
89
|
-
|
|
90
|
-
We think that dealing with sets of files, in particular including or excluding
|
|
91
|
-
files that match particular file masks should be done by other tools.
|
|
92
|
-
In a UNIX environment, you should consider using `find` with corresponding
|
|
93
|
-
filters and an `-exec` argument to run the instrumenter.
|
|
94
|
-
|
|
95
88
|
### Integration with Testing Frameworks
|
|
96
89
|
|
|
97
90
|
This is planned work: Provide a Babel plugin that provides a code transformation
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamscale/javascript-instrumenter",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.5",
|
|
4
4
|
"description": "Istanbul-based coverage instrumenter with coverage forwarding via WebSockets",
|
|
5
5
|
"main": "dist/src/main.js",
|
|
6
6
|
"bin": "dist/src/main.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
16
16
|
"build": "tsc --project tsconfig.json && node esbuild.mjs",
|
|
17
|
-
"
|
|
17
|
+
"instrumenter": "node dist/src/main.js",
|
|
18
18
|
"test": "yarn build && NODE_OPTIONS='--experimental-vm-modules' jest --forceExit --coverage --silent=true --detectOpenHandles"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamscale/javascript-instrumenter",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.5",
|
|
4
4
|
"description": "Istanbul-based coverage instrumenter with coverage forwarding via WebSockets",
|
|
5
5
|
"main": "dist/src/main.js",
|
|
6
6
|
"bin": "dist/src/main.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
16
16
|
"build": "tsc --project tsconfig.json && node esbuild.mjs",
|
|
17
|
-
"
|
|
17
|
+
"instrumenter": "node dist/src/main.js",
|
|
18
18
|
"test": "yarn build && NODE_OPTIONS='--experimental-vm-modules' jest --forceExit --coverage --silent=true --detectOpenHandles"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|