Skip to content

Commit 1e4917a

Browse files
committed
electron
1 parent 5436d41 commit 1e4917a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ function init(project) {
3030

3131
function main() {
3232
switch (process.argv[2]) {
33+
case '-ie': {
34+
globalThis.kind = 'electron';
35+
}
3336
case '-i':
3437
case 'init':
3538
case '--init': { // Init cwd() or a project
@@ -103,7 +106,9 @@ Usage: nds [options] [project]
103106
Options:
104107
[project] The project directory
105108
-c, --create Create a TypeScript project and init it
109+
-ce electron
106110
-i, --init Init a TypeScript project
111+
-ie electron
107112
-ej, --eject Eject the TypeScript supported configuration file
108113
-j, --just Just auto compile, don't run
109114
-v, --version Display version of node-dev-server

0 commit comments

Comments
 (0)