Move electron scripts to their own folder
This commit is contained in:
parent
020a02e4b8
commit
7a41433f16
@ -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"
|
||||
}
|
||||
|
39
src/App.js
39
src/App.js
@ -1,23 +1,22 @@
|
||||
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 (
|
||||
<Container className="App">
|
||||
<Row>
|
||||
<header className="App-header">
|
||||
<h1>{`Welcome to Inferno ${version}`}</h1>
|
||||
</header>
|
||||
</Row>
|
||||
<Row>
|
||||
<p className="App-intro">
|
||||
To get started, edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
</Row>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
}
|
||||
const App = () => (
|
||||
<BrowserRouter>
|
||||
<Container className="App">
|
||||
<Row>
|
||||
<header className="App-header">
|
||||
<h1>{`Welcome to Inferno ${version}`}</h1>
|
||||
</header>
|
||||
</Row>
|
||||
<Row>
|
||||
<p className="App-intro">
|
||||
To get started, edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
</Row>
|
||||
</Container>
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
export default App;
|
||||
|
@ -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
|
||||
});
|
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