Skip to content

Commit aef0cfb

Browse files
chore(devtools): restructure devtools and fix tests
1 parent 8b682ff commit aef0cfb

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"eslint-plugin-typescript": "^0.12.0",
4949
"husky": "^0.14.3",
5050
"jest": "23.3.0",
51+
"lint-staged": "^7.2.0",
5152
"parcel-bundler": "^1.9.4",
5253
"pascal-case": "2.0.1",
5354
"prettier": "1.13.7",

packages/node_modules/overmind-devtools/bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/env node
22
const { exec } = require('child_process')
3-
exec('./node_modules/.bin/electron ./backend', (error, stdout, stderr) => {
3+
exec('./node_modules/.bin/electron ./src/backend', (error, stdout, stderr) => {
44
if (error) {
55
console.error(error.message)
66
}

packages/node_modules/overmind-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"overmind-devtools": "bin.js"
1010
},
1111
"scripts": {
12-
"start": "concurrently \"electron ./backend/main\" \"parcel watch client/index.html\"",
12+
"start": "concurrently \"electron ./src/backend/main\" \"parcel watch src/client/index.html\"",
1313
"typecheck": "tsc --noEmit",
1414
"test": "jest",
1515
"test:watch": "jest --watch --updateSnapshot --coverage false",

packages/node_modules/overmind-devtools/backend/main.js renamed to packages/node_modules/overmind-devtools/src/backend/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function createWindow() {
1111
mainWindow = new BrowserWindow({ width: 800, height: 600 })
1212

1313
// and load the index.html of the app.
14-
mainWindow.loadFile(path.resolve('client', 'index.html'))
14+
mainWindow.loadFile(path.resolve('src', 'client', 'index.html'))
1515

1616
// Open the DevTools.
1717
// mainWindow.webContents.openDevTools()

packages/node_modules/overmind-devtools/client/index.html renamed to packages/node_modules/overmind-devtools/src/client/index.html

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
describe('do somet testing', () => {
2+
test('should test', () => {
3+
expect(true).toBe(true)
4+
})
5+
})

packages/node_modules/overmind-devtools/client/index.ts renamed to packages/node_modules/overmind-devtools/src/client/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)