From 499a3d4cdd63aa14b6fd1d6111c0faa84856587c Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 30 Nov 2020 10:44:36 +0800 Subject: [PATCH] Organize files Put source files in src/ --- packages/app/zeichen.config.ts | 4 ++-- packages/core/{ => src}/plugin.ts | 0 packages/core/{ => src}/storage.ts | 0 packages/core/tsconfig.json | 1 - packages/plugin-local-storage/{ => src}/Engine.ts | 0 packages/plugin-local-storage/{ => src}/Storage.ts | 2 +- packages/plugin-local-storage/{ => src}/index.ts | 2 +- packages/plugin-local-storage/tsconfig.json | 2 -- packages/plugin-remote-storage/{ => src}/Engine.ts | 2 +- packages/plugin-remote-storage/{ => src}/Storage.ts | 2 +- packages/plugin-remote-storage/{ => src}/index.ts | 2 +- packages/plugin-remote-storage/tsconfig.json | 2 -- 12 files changed, 7 insertions(+), 12 deletions(-) rename packages/core/{ => src}/plugin.ts (100%) rename packages/core/{ => src}/storage.ts (100%) rename packages/plugin-local-storage/{ => src}/Engine.ts (100%) rename packages/plugin-local-storage/{ => src}/Storage.ts (95%) rename packages/plugin-local-storage/{ => src}/index.ts (84%) rename packages/plugin-remote-storage/{ => src}/Engine.ts (97%) rename packages/plugin-remote-storage/{ => src}/Storage.ts (91%) rename packages/plugin-remote-storage/{ => src}/index.ts (86%) diff --git a/packages/app/zeichen.config.ts b/packages/app/zeichen.config.ts index 8fbd779..bbe8211 100644 --- a/packages/app/zeichen.config.ts +++ b/packages/app/zeichen.config.ts @@ -1,5 +1,5 @@ -import LocalStorage from '../plugin-local-storage' -import RemoteStorage from '../plugin-remote-storage' +import LocalStorage from '../plugin-local-storage/src' +import RemoteStorage from '../plugin-remote-storage/src' export default { plugins: [ diff --git a/packages/core/plugin.ts b/packages/core/src/plugin.ts similarity index 100% rename from packages/core/plugin.ts rename to packages/core/src/plugin.ts diff --git a/packages/core/storage.ts b/packages/core/src/storage.ts similarity index 100% rename from packages/core/storage.ts rename to packages/core/src/storage.ts diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 8db471b..2c4714d 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -12,7 +12,6 @@ "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", - "isolatedModules": true, "declaration": true, "declarationDir": "./dist", "emitDeclarationOnly": true, diff --git a/packages/plugin-local-storage/Engine.ts b/packages/plugin-local-storage/src/Engine.ts similarity index 100% rename from packages/plugin-local-storage/Engine.ts rename to packages/plugin-local-storage/src/Engine.ts diff --git a/packages/plugin-local-storage/Storage.ts b/packages/plugin-local-storage/src/Storage.ts similarity index 95% rename from packages/plugin-local-storage/Storage.ts rename to packages/plugin-local-storage/src/Storage.ts index ae254a5..62bd7df 100644 --- a/packages/plugin-local-storage/Storage.ts +++ b/packages/plugin-local-storage/src/Storage.ts @@ -1,4 +1,4 @@ -import Storage, { Collection, OutOfSyncError } from '../core/storage' +import Storage, { Collection, OutOfSyncError } from '../../core/src/storage' import Engine from './Engine' export default class LocalStorage implements Storage { diff --git a/packages/plugin-local-storage/index.ts b/packages/plugin-local-storage/src/index.ts similarity index 84% rename from packages/plugin-local-storage/index.ts rename to packages/plugin-local-storage/src/index.ts index dabc2b5..e25e74d 100644 --- a/packages/plugin-local-storage/index.ts +++ b/packages/plugin-local-storage/src/index.ts @@ -1,4 +1,4 @@ -import { Plugin } from '../core/plugin' +import { Plugin } from '../../core/src/plugin' import Storage from './Storage' type PluginConfig = {} diff --git a/packages/plugin-local-storage/tsconfig.json b/packages/plugin-local-storage/tsconfig.json index 8db471b..18c72e3 100644 --- a/packages/plugin-local-storage/tsconfig.json +++ b/packages/plugin-local-storage/tsconfig.json @@ -12,10 +12,8 @@ "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", - "isolatedModules": true, "declaration": true, "declarationDir": "./dist", - "emitDeclarationOnly": true, "sourceMap": true, "strict": false }, diff --git a/packages/plugin-remote-storage/Engine.ts b/packages/plugin-remote-storage/src/Engine.ts similarity index 97% rename from packages/plugin-remote-storage/Engine.ts rename to packages/plugin-remote-storage/src/Engine.ts index 13124b6..c094f9e 100644 --- a/packages/plugin-remote-storage/Engine.ts +++ b/packages/plugin-remote-storage/src/Engine.ts @@ -1,4 +1,4 @@ -import { Deserializer, Serializer } from '../core/storage' +import { Deserializer, Serializer } from '../../core/src/storage' const CREATED = 201 const NO_CONTENT = 204 diff --git a/packages/plugin-remote-storage/Storage.ts b/packages/plugin-remote-storage/src/Storage.ts similarity index 91% rename from packages/plugin-remote-storage/Storage.ts rename to packages/plugin-remote-storage/src/Storage.ts index c02f0cf..a9a37f1 100644 --- a/packages/plugin-remote-storage/Storage.ts +++ b/packages/plugin-remote-storage/src/Storage.ts @@ -1,4 +1,4 @@ -import Storage, { Collection } from '../core/storage' +import Storage, { Collection } from '../../core/src/storage' import Engine from './Engine' export default class RemoteStorage implements Storage { diff --git a/packages/plugin-remote-storage/index.ts b/packages/plugin-remote-storage/src/index.ts similarity index 86% rename from packages/plugin-remote-storage/index.ts rename to packages/plugin-remote-storage/src/index.ts index d2d3dcf..873b4d5 100644 --- a/packages/plugin-remote-storage/index.ts +++ b/packages/plugin-remote-storage/src/index.ts @@ -1,4 +1,4 @@ -import { Plugin } from '../core/plugin' +import { Plugin } from '../../core/src/plugin' import Storage from './Storage' type PluginConfig = { diff --git a/packages/plugin-remote-storage/tsconfig.json b/packages/plugin-remote-storage/tsconfig.json index 8db471b..18c72e3 100644 --- a/packages/plugin-remote-storage/tsconfig.json +++ b/packages/plugin-remote-storage/tsconfig.json @@ -12,10 +12,8 @@ "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", - "isolatedModules": true, "declaration": true, "declarationDir": "./dist", - "emitDeclarationOnly": true, "sourceMap": true, "strict": false },