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", "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"
} }

View File

@ -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;

View File

@ -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
}); });

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'