Web ext integration for dev mode(#116)

* add web-ext dep

* create xrun tasks to wrap running extension targets

* add wait-on dep to delay launch of task when ready

* add legacy wait files for web-ext scripts

* create a dev task for next builds

* add dev:legacy task to allow for a quick dev mode

* reuse watch task to have dev env
This commit is contained in:
Vu Nguyen
2021-02-07 00:08:00 -08:00
committed by GitHub
parent 8ade367b3f
commit 5958155a04
5 changed files with 3743 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
import { EHOSTUNREACH } from 'constants';
import { configureStore, Store } from '@reduxjs/toolkit';
import logger from 'redux-logger';
import { reduxBatch } from '@manaflair/redux-batch';
@@ -18,12 +19,10 @@ const preloadedState: RootState = {
export type RootStore = Store<RootState>;
export default (appName: string): RootStore => {
const enhancers = [reduxBatch];
const enhancers = [];
enhancers.push(reduxBatch);
if (!isProd()) {
enhancers.push(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
devToolsEnhancer({ hostname: 'localhost', name: appName, port: 8000, realtime: true }),
);
}