Skip to content

Commit a7e8eec

Browse files
committed
Breaking change: Moduless now allows any function to be run, not just those that start with "cover" or are in a namespace called "Cover".
1 parent dcc50bb commit a7e8eec

File tree

9 files changed

+249
-215
lines changed

9 files changed

+249
-215
lines changed

Moduless.code-workspace

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"**/bundle": true,
2020
"**/node_modules": true,
2121
"**/package-lock.json": true
22-
}
22+
},
23+
"task.allowAutomaticTasks": "on"
2324
},
2425
"launch": {
2526
"configurations": [
@@ -38,14 +39,14 @@
3839
"request": "launch",
3940
"program": "${workspaceRoot}/build/moduless.js",
4041
"args": [
41-
"set", "./coverage/CoverExample.ts:28"
42+
"set", "./coverage/CoverExample.ts:4"
4243
],
4344
"cwd": "${workspaceFolder}/example",
4445
"smartStep": true,
4546
"sourceMaps": true
4647
},
4748
{
48-
"name": "Debug 'run assigned' in NodeJS",
49+
"name": "Debug 'run active' in NodeJS",
4950
"type": "node",
5051
"request": "launch",
5152
"program": "${workspaceRoot}/build/moduless.js",
@@ -54,7 +55,7 @@
5455
"sourceMaps": true
5556
},
5657
{
57-
"name": "Debug 'run assigned' in Electron",
58+
"name": "Debug 'run active' in Electron",
5859
"type": "node",
5960
"request": "launch",
6061
"cwd": "${workspaceFolder}/example",
@@ -69,7 +70,8 @@
6970
"request": "launch",
7071
"program": "${workspaceRoot}/build/moduless.js",
7172
"args": [
72-
"all"
73+
"all",
74+
"Cover.cover"
7375
],
7476
"cwd": "${workspaceFolder}/example",
7577
"smartStep": true,

core/!.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,4 @@ namespace Moduless
3232
export const Electron = (inElectronMain || inElectronRender) ?
3333
require("electron") :
3434
{};
35-
36-
export const enum Constants
37-
{
38-
/**
39-
* The prefix that all cover functions must have in their name
40-
* in order to be discovered by the moduless cover system.
41-
*/
42-
prefix = "cover"
43-
}
4435
}

0 commit comments

Comments
 (0)