File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,16 @@ npx @heymp/scratchpad@next ./my-test-file.js
14
14
## Options
15
15
16
16
``` bash
17
- Usage: @heymp/scratchpad@next < file> [options]
17
+ Usage: @heymp/scratchpad@next < file> [options]
18
18
19
19
Arguments:
20
20
file file to execute in the browser.
21
21
22
22
Options:
23
23
--headless [boolean] specify running the browser in headless mode.
24
- --url [string] specify a specific url to execute the code in.
24
+ --devtools [boolean] open browser devtools automatically.
25
+ --url [string] specify a specific url to execute the code
26
+ in.
25
27
-V, --version output the version number
26
28
-h, --help display help for command
27
29
```
@@ -99,6 +101,18 @@ in your `.ts` files:
99
101
/// <reference path = " ./node_modules/@heymp/scratchpad/types.d.ts" />
100
102
```
101
103
104
+ ## Config
105
+
106
+ An alternative to using the CLI flags, you can create ` scratchpad.config.js ` .
107
+
108
+ ``` js
109
+ export default ({
110
+ devtools: true ,
111
+ headless: false ,
112
+ url: ' https://www.google.com'
113
+ });
114
+ ```
115
+
102
116
## Development
103
117
104
118
``` bash
You can’t perform that action at this time.
0 commit comments