Skip to content

Commit efa40ac

Browse files
wip. refactor
1 parent 9e4af36 commit efa40ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/devextreme-cli/testing/dev-server.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ const runCommand = require('../src/utility/run-command');
77
const { themes, swatchModes, baseFontFamily } = require('./constants');
88

99
class nextJsState {
10-
async start(env) {
10+
constructor(env) {
11+
this.proc = null;
12+
this.env = env;
13+
}
14+
15+
async start() {
1116
this.proc = runCommand('npm', ['run', 'start'], {
1217
cwd: this.env.appPath,
1318
noExit: true,

0 commit comments

Comments
 (0)