mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix electron fixture
This commit is contained in:
parent
1ba5c25a90
commit
ed620f57be
|
@ -27,8 +27,9 @@
|
||||||
"clean": "rimraf build/ && rimraf dev/",
|
"clean": "rimraf build/ && rimraf dev/",
|
||||||
"test:app": "cross-env BABEL_ENV=test jest test/app",
|
"test:app": "cross-env BABEL_ENV=test jest test/app",
|
||||||
"test:chrome": "jest test/chrome",
|
"test:chrome": "jest test/chrome",
|
||||||
"test:electron": "jest test/electron",
|
"test:electron": "yarn run build:test:electron:fixture && jest test/electron",
|
||||||
"test": "yarn run test:app && yarn run build:extension && yarn run test:chrome && yarn run test:electron",
|
"test": "yarn run test:app && yarn run build:extension && yarn run test:chrome && yarn run test:electron",
|
||||||
|
"build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js",
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
<span id="counter">0</span>
|
<span id="counter">0</span>
|
||||||
<button id="increment">+</button>
|
<button id="increment">+</button>
|
||||||
<button id="decrement">-</button>
|
<button id="decrement">-</button>
|
||||||
<script src="renderer.js"></script>
|
<script src="./dist/renderer.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
10
extension/test/electron/fixture/webpack.config.js
Normal file
10
extension/test/electron/fixture/webpack.config.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
mode: 'development',
|
||||||
|
entry: './test/electron/fixture/src/renderer.js',
|
||||||
|
output: {
|
||||||
|
filename: 'renderer.js',
|
||||||
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user