Skip to content

Commit

Permalink
#207 Backend Frontend separation
Browse files Browse the repository at this point in the history
- fixing CLI
  • Loading branch information
MaximilianZenz committed Jan 11, 2024
1 parent 3743658 commit b0b1a66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/binocular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function runBackend() {
}

function runFrontend() {
const fronted = spawn('webpack serve --config webpack.dev.js', [], { shell: true });
const fronted = spawn('npm run dev:frontend', [], { shell: true, cwd: __dirname + '/..' });
fronted.stdout.on('data', (data) => {
console.log(chalk.cyan(`${data}`));
});
Expand All @@ -728,7 +728,7 @@ function runFrontend() {
}

function buildFrontend(mode: string) {
const fronted = spawn(`npm run build:${mode}`, [], { shell: true });
const fronted = spawn(`npm run build:${mode}`, [], { shell: true, cwd: __dirname + '/..' });
fronted.stdout.on('data', (data) => {
console.log(chalk.cyan(`${data}`));
});
Expand Down
2 changes: 1 addition & 1 deletion lib/models/Module.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import Model from './Model.js';
import * as IllegalArgumentError from '../errors/IllegalArgumentError.js';
import IllegalArgumentError from '../errors/IllegalArgumentError.js';

import debug from 'debug';

Expand Down
7 changes: 0 additions & 7 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0b1a66

Please sign in to comment.