Move electron scripts to their own folder
This commit is contained in:
parent
020a02e4b8
commit
7a41433f16
@ -27,7 +27,7 @@
|
|||||||
"build": "inferno-scripts build",
|
"build": "inferno-scripts build",
|
||||||
"dist": "npm run build && build",
|
"dist": "npm run build && build",
|
||||||
"eject": "inferno-scripts eject",
|
"eject": "inferno-scripts eject",
|
||||||
"electron-start": "node src/electron-wait-inferno",
|
"electron-start": "node src/electron/wait-inferno",
|
||||||
"electron": "electron .",
|
"electron": "electron .",
|
||||||
"fix": "eslint --fix src/**/*.js",
|
"fix": "eslint --fix src/**/*.js",
|
||||||
"lint": "eslint src/**/*.js",
|
"lint": "eslint src/**/*.js",
|
||||||
@ -38,5 +38,5 @@
|
|||||||
"test": "inferno-scripts test --env=jsdom"
|
"test": "inferno-scripts test --env=jsdom"
|
||||||
},
|
},
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
"main": "src/electron-starter.js"
|
"main": "src/electron/starter.js"
|
||||||
}
|
}
|
||||||
|
13
src/App.js
13
src/App.js
@ -1,9 +1,9 @@
|
|||||||
import { version, Component } from 'inferno';
|
import { version } from 'inferno';
|
||||||
import { Container, Row } from './components/Grid'
|
import { BrowserRouter, Route } from 'inferno-router'
|
||||||
|
import { Container, Row } from './components/Grid';
|
||||||
|
|
||||||
class App extends Component {
|
const App = () => (
|
||||||
render () {
|
<BrowserRouter>
|
||||||
return (
|
|
||||||
<Container className="App">
|
<Container className="App">
|
||||||
<Row>
|
<Row>
|
||||||
<header className="App-header">
|
<header className="App-header">
|
||||||
@ -16,8 +16,7 @@ class App extends Component {
|
|||||||
</p>
|
</p>
|
||||||
</Row>
|
</Row>
|
||||||
</Container>
|
</Container>
|
||||||
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
@ -20,7 +20,7 @@ app.on('ready', () => {
|
|||||||
|
|
||||||
// load the index.html of the app.
|
// load the index.html of the app.
|
||||||
const startUrl = process.env.ELECTRON_START_URL || url.format({
|
const startUrl = process.env.ELECTRON_START_URL || url.format({
|
||||||
pathname: path.join(__dirname, '/../build/index.html'),
|
pathname: path.join(__dirname, '/../../build/index.html'),
|
||||||
protocol: 'file:',
|
protocol: 'file:',
|
||||||
slashes: true
|
slashes: true
|
||||||
});
|
});
|
3
src/views/Camera/CameraList.js
Normal file
3
src/views/Camera/CameraList.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export const CameraList = () => {
|
||||||
|
|
||||||
|
}
|
1
src/views/Camera/index.js
Normal file
1
src/views/Camera/index.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './CameraList';
|
@ -0,0 +1 @@
|
|||||||
|
export * from './CameraList'
|
Loading…
Reference in New Issue
Block a user