Skip to content

Commit

Permalink
move extension contexts scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hogashi committed Jan 4, 2023
1 parent 1eaf9be commit 47af79e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/popup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isTrue,
OPTION_KEYS,
} from '../src/constants';
import { Popup } from '../src/popup';
import { Popup } from '../src/extension-contexts/popup';

describe('Popup', () => {
it('render', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/background.ts → src/extension-contexts/background.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GET_LOCAL_STORAGE } from './constants';
import { GET_LOCAL_STORAGE } from '../constants';
import { getOptions } from './options';
import { MessageRequest, MessageResponseBool } from './utils';
import { MessageRequest, MessageResponseBool } from '../utils';

// バックグラウンドで実行される

Expand Down
2 changes: 1 addition & 1 deletion src/options.ts → src/extension-contexts/options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OptionsBool, initialOptions, initialOptionsBool, OPTION_KEYS, isTrue } from './constants';
import { OptionsBool, initialOptions, initialOptionsBool, OPTION_KEYS, isTrue } from '../constants';

const MIGRATED_TO_CHROME_STORAGE = 'MIGRATED_TO_CHROME_STORAGE';

Expand Down
4 changes: 2 additions & 2 deletions src/popup.tsx → src/extension-contexts/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import {
STRIP_IMAGE_SUFFIX,
OPTIONS_TEXT,
OptionsBool,
} from './constants';
import { printException } from './utils';
} from '../constants';
import { printException } from '../utils';
import { getOptions } from './options';

/* popup.js */
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
entry: {
main: './src/main.ts',
background: './src/background.ts',
popup: './src/popup.tsx',
background: './src/extension-contexts/background.ts',
popup: './src/extension-contexts/popup.tsx',
},
output: {
filename: '[name].bundle.js',
Expand Down

0 comments on commit 47af79e

Please sign in to comment.