Move electron scripts to their own folder

This commit is contained in:
Timothy Warren 2018-03-30 18:33:20 -04:00
parent 020a02e4b8
commit 7a41433f16
7 changed files with 27 additions and 23 deletions

View File

@ -27,7 +27,7 @@
"build": "inferno-scripts build",
"dist": "npm run build && build",
"eject": "inferno-scripts eject",
"electron-start": "node src/electron-wait-inferno",
"electron-start": "node src/electron/wait-inferno",
"electron": "electron .",
"fix": "eslint --fix src/**/*.js",
"lint": "eslint src/**/*.js",
@ -38,5 +38,5 @@
"test": "inferno-scripts test --env=jsdom"
},
"homepage": "./",
"main": "src/electron-starter.js"
"main": "src/electron/starter.js"
}

View File

@ -1,9 +1,9 @@
import { version, Component } from 'inferno';
import { Container, Row } from './components/Grid'
import { version } from 'inferno';
import { BrowserRouter, Route } from 'inferno-router'
import { Container, Row } from './components/Grid';
class App extends Component {
render () {
return (
const App = () => (
<BrowserRouter>
<Container className="App">
<Row>
<header className="App-header">
@ -16,8 +16,7 @@ class App extends Component {
</p>
</Row>
</Container>
</BrowserRouter>
);
}
}
export default App;

View File

@ -20,7 +20,7 @@ app.on('ready', () => {
// load the index.html of the app.
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:',
slashes: true
});

View File

@ -0,0 +1,3 @@
export const CameraList = () => {
}

View File

@ -0,0 +1 @@
export * from './CameraList';

View File

@ -0,0 +1 @@
export * from './CameraList'