From 4d4aaa2c4ba9f09e23882287ce868c820aa900ee Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 20 Jul 2018 22:42:21 +0900 Subject: [PATCH] Move commands to background/shared --- src/background/actions/command.js | 2 +- src/{ => background}/shared/commands/docs.js | 0 src/{ => background}/shared/commands/parsers.js | 0 src/background/shared/completions/index.js | 2 +- test/{ => background}/shared/commands/parsers.test.js | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => background}/shared/commands/docs.js (100%) rename src/{ => background}/shared/commands/parsers.js (100%) rename test/{ => background}/shared/commands/parsers.test.js (98%) diff --git a/src/background/actions/command.js b/src/background/actions/command.js index a7f619b..feb16d8 100644 --- a/src/background/actions/command.js +++ b/src/background/actions/command.js @@ -2,7 +2,7 @@ import actions from '../actions'; import * as consoleActions from './console'; import * as tabs from '../shared/tabs'; import * as bookmarks from '../shared/bookmarks'; -import * as parsers from 'shared/commands/parsers'; +import * as parsers from 'background/shared/commands/parsers'; import * as properties from 'shared/settings/properties'; const openCommand = async(url) => { diff --git a/src/shared/commands/docs.js b/src/background/shared/commands/docs.js similarity index 100% rename from src/shared/commands/docs.js rename to src/background/shared/commands/docs.js diff --git a/src/shared/commands/parsers.js b/src/background/shared/commands/parsers.js similarity index 100% rename from src/shared/commands/parsers.js rename to src/background/shared/commands/parsers.js diff --git a/src/background/shared/completions/index.js b/src/background/shared/completions/index.js index 9ca13f7..157604e 100644 --- a/src/background/shared/completions/index.js +++ b/src/background/shared/completions/index.js @@ -1,4 +1,4 @@ -import commandDocs from 'shared/commands/docs'; +import commandDocs from 'background/shared/commands/docs'; import * as tabs from './tabs'; import * as histories from './histories'; import * as bookmarks from './bookmarks'; diff --git a/test/shared/commands/parsers.test.js b/test/background/shared/commands/parsers.test.js similarity index 98% rename from test/shared/commands/parsers.test.js rename to test/background/shared/commands/parsers.test.js index 1910f07..4a0c9f0 100644 --- a/test/shared/commands/parsers.test.js +++ b/test/background/shared/commands/parsers.test.js @@ -1,4 +1,4 @@ -import * as parsers from 'shared/commands/parsers'; +import * as parsers from 'background/shared/commands/parsers'; describe("shared/commands/parsers", () => { describe("#parsers.parseSetOption", () => {