Move main.ts -> background/background.ts

This commit is contained in:
hensm
2019-08-16 07:34:45 +01:00
parent 0ca39af1d6
commit a8721d8099
3 changed files with 18 additions and 18 deletions

View File

@@ -1,25 +1,25 @@
"use strict";
import defaultOptions from "./defaultOptions";
import loadSender from "./lib/loadSender";
import options, { Options } from "./lib/options";
import defaultOptions from "../defaultOptions";
import loadSender from "../lib/loadSender";
import options, { Options } from "../lib/options";
import { getChromeUserAgent } from "./lib/userAgents";
import { stringify } from "./lib/utils";
import { getChromeUserAgent } from "../lib/userAgents";
import { stringify } from "../lib/utils";
import { Message } from "./types";
import { Message } from "../types";
import { CAST_FRAMEWORK_LOADER_SCRIPT_URL
, CAST_LOADER_SCRIPT_URL } from "./lib/endpoints";
, CAST_LOADER_SCRIPT_URL } from "../lib/endpoints";
import { ReceiverSelectorMediaType } from "./background/receiverSelector";
import { ReceiverSelectorMediaType } from "./receiverSelector";
import ReceiverSelectorManager
from "./background/receiverSelector/ReceiverSelectorManager";
from "./receiverSelector/ReceiverSelectorManager";
import createMenus from "./background/createMenus";
import ShimManager from "./background/ShimManager";
import StatusManager from "./background/StatusManager";
import createMenus from "./createMenus";
import ShimManager from "./ShimManager";
import StatusManager from "./StatusManager";
const _ = browser.i18n.getMessage;

View File

@@ -24,7 +24,7 @@
}
, "background": {
"scripts": [ "main.js" ]
"scripts": [ "background.js" ]
}
, "content_scripts": [

View File

@@ -12,11 +12,7 @@ const sourceFileExtensions = [
module.exports = (env) => ({
entry: {
"main": `${env.includePath}/main.ts`
// UI
, "ui/popup/bundle": `${env.includePath}/ui/popup/index.tsx`
, "ui/options/bundle": `${env.includePath}/ui/options/index.tsx`
"background": `${env.includePath}/background/background.ts`
// Sender apps
, "senders/mediaCast": `${env.includePath}/senders/mediaCast.ts`
@@ -26,6 +22,10 @@ module.exports = (env) => ({
, "shim/bundle": `${env.includePath}/shim/index.ts`
, "shim/content": `${env.includePath}/shim/content.ts`
, "shim/contentBridge": `${env.includePath}/shim/contentBridge.ts`
// UI
, "ui/popup/bundle": `${env.includePath}/ui/popup/index.tsx`
, "ui/options/bundle": `${env.includePath}/ui/options/index.tsx`
}
, output: {
filename: "[name].js"