From 197f9e14eb9a514d908e7b73ed5fd07b93e6f0dc Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 30 Nov 2020 10:38:06 +0800 Subject: [PATCH] Add project specifics Include READMEs as well as project files for development and publishing. --- packages/core/.npmignore | 2 ++ packages/core/README.md | 3 ++ packages/core/package.json | 11 ++++++++ packages/core/tsconfig.json | 29 ++++++++++++++++++++ packages/plugin-local-storage/.npmignore | 2 ++ packages/plugin-local-storage/README.md | 3 ++ packages/plugin-local-storage/package.json | 10 +++++-- packages/plugin-local-storage/tsconfig.json | 12 ++------ packages/plugin-remote-storage/.npmignore | 2 ++ packages/plugin-remote-storage/README.md | 3 ++ packages/plugin-remote-storage/package.json | 10 +++++-- packages/plugin-remote-storage/tsconfig.json | 12 ++------ 12 files changed, 77 insertions(+), 22 deletions(-) create mode 100644 packages/core/.npmignore create mode 100644 packages/core/README.md create mode 100644 packages/core/package.json create mode 100644 packages/core/tsconfig.json create mode 100644 packages/plugin-local-storage/.npmignore create mode 100644 packages/plugin-local-storage/README.md create mode 100644 packages/plugin-remote-storage/.npmignore create mode 100644 packages/plugin-remote-storage/README.md diff --git a/packages/core/.npmignore b/packages/core/.npmignore new file mode 100644 index 0000000..bf193c2 --- /dev/null +++ b/packages/core/.npmignore @@ -0,0 +1,2 @@ +*.ts +tsconfig.json diff --git a/packages/core/README.md b/packages/core/README.md new file mode 100644 index 0000000..4a1d8fa --- /dev/null +++ b/packages/core/README.md @@ -0,0 +1,3 @@ +# Zeichen - Core + +Library for authoring Zeichen plugins and themes. diff --git a/packages/core/package.json b/packages/core/package.json new file mode 100644 index 0000000..14a2acd --- /dev/null +++ b/packages/core/package.json @@ -0,0 +1,11 @@ +{ + "name": "zeichen-core", + "description": "Library for authoring Zeichen plugins and themes.", + "version": "0.1.0", + "devDependencies": { + "typescript": "^4.0.3" + }, + "scripts": { + "build": "tsc **/*.ts" + } +} diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json new file mode 100644 index 0000000..8db471b --- /dev/null +++ b/packages/core/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es6", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "module": "esnext", + "moduleResolution": "node", + "isolatedModules": true, + "declaration": true, + "declarationDir": "./dist", + "emitDeclarationOnly": true, + "sourceMap": true, + "strict": false + }, + "exclude": [ + "node_modules", + "**/*.test.ts" + ], + "include": [ + "**/*.ts" + ] +} diff --git a/packages/plugin-local-storage/.npmignore b/packages/plugin-local-storage/.npmignore new file mode 100644 index 0000000..bf193c2 --- /dev/null +++ b/packages/plugin-local-storage/.npmignore @@ -0,0 +1,2 @@ +*.ts +tsconfig.json diff --git a/packages/plugin-local-storage/README.md b/packages/plugin-local-storage/README.md new file mode 100644 index 0000000..621a780 --- /dev/null +++ b/packages/plugin-local-storage/README.md @@ -0,0 +1,3 @@ +# Zeichen - Local Storage Plugin + +Save and load notes in Zeichen using the browser's local storage. diff --git a/packages/plugin-local-storage/package.json b/packages/plugin-local-storage/package.json index 3fdf087..3ed48cb 100644 --- a/packages/plugin-local-storage/package.json +++ b/packages/plugin-local-storage/package.json @@ -2,11 +2,17 @@ "name": "zeichen-plugin-local-storage", "author": "TheoryOfNekomata ", "version": "0.1.0", - "description": "Save and load notes using the browser's local storage.", + "description": "Save and load notes in Zeichen using the browser's local storage.", "keywords": [ "zeichen", "plugin", "storage", "local" - ] + ], + "devDependencies": { + "typescript": "^4.0.3" + }, + "scripts": { + "build": "tsc **/*.ts" + } } diff --git a/packages/plugin-local-storage/tsconfig.json b/packages/plugin-local-storage/tsconfig.json index fd7783c..8db471b 100644 --- a/packages/plugin-local-storage/tsconfig.json +++ b/packages/plugin-local-storage/tsconfig.json @@ -6,30 +6,24 @@ "dom.iterable", "esnext" ], - "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", - "resolveJsonModule": true, "isolatedModules": true, - "noEmit": true, - "jsx": "preserve", "declaration": true, "declarationDir": "./dist", + "emitDeclarationOnly": true, "sourceMap": true, "strict": false }, "exclude": [ "node_modules", - "**/*.test.ts", - "**/*.test.tsx" + "**/*.test.ts" ], "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx" + "**/*.ts" ] } diff --git a/packages/plugin-remote-storage/.npmignore b/packages/plugin-remote-storage/.npmignore new file mode 100644 index 0000000..bf193c2 --- /dev/null +++ b/packages/plugin-remote-storage/.npmignore @@ -0,0 +1,2 @@ +*.ts +tsconfig.json diff --git a/packages/plugin-remote-storage/README.md b/packages/plugin-remote-storage/README.md new file mode 100644 index 0000000..f6ba95d --- /dev/null +++ b/packages/plugin-remote-storage/README.md @@ -0,0 +1,3 @@ +# Zeichen - Remote Storage Plugin + +Save and load notes in Zeichen using an external API. diff --git a/packages/plugin-remote-storage/package.json b/packages/plugin-remote-storage/package.json index 5236581..bc8749a 100644 --- a/packages/plugin-remote-storage/package.json +++ b/packages/plugin-remote-storage/package.json @@ -2,11 +2,17 @@ "name": "zeichen-plugin-remote-storage", "author": "TheoryOfNekomata ", "version": "0.1.0", - "description": "Save and load notes using an external API.", + "description": "Save and load notes in Zeichen using an external API.", "keywords": [ "zeichen", "plugin", "storage", "API" - ] + ], + "devDependencies": { + "typescript": "^4.0.3" + }, + "scripts": { + "build": "tsc **/*.ts" + } } diff --git a/packages/plugin-remote-storage/tsconfig.json b/packages/plugin-remote-storage/tsconfig.json index fd7783c..8db471b 100644 --- a/packages/plugin-remote-storage/tsconfig.json +++ b/packages/plugin-remote-storage/tsconfig.json @@ -6,30 +6,24 @@ "dom.iterable", "esnext" ], - "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", - "resolveJsonModule": true, "isolatedModules": true, - "noEmit": true, - "jsx": "preserve", "declaration": true, "declarationDir": "./dist", + "emitDeclarationOnly": true, "sourceMap": true, "strict": false }, "exclude": [ "node_modules", - "**/*.test.ts", - "**/*.test.tsx" + "**/*.test.ts" ], "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx" + "**/*.ts" ] }