From c33dede7cbd8b4185d07a93b9a8e5e54787058d6 Mon Sep 17 00:00:00 2001 From: dubisdev Date: Sat, 9 Mar 2024 14:17:05 +0100 Subject: [PATCH] chore: add base code for math plugin --- extensions/math/README.md | 8 ++++++++ extensions/math/package.json | 28 ++++++++++++++++++++++++++++ extensions/math/src/index.ts | 13 +++++++++++++ extensions/math/tsconfig.json | 14 ++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 extensions/math/README.md create mode 100644 extensions/math/package.json create mode 100644 extensions/math/src/index.ts create mode 100644 extensions/math/tsconfig.json diff --git a/extensions/math/README.md b/extensions/math/README.md new file mode 100644 index 0000000..5bfa82c --- /dev/null +++ b/extensions/math/README.md @@ -0,0 +1,8 @@ +# @rokii-plugins/math + +> Do math operations quickly from Rokii + +## Related + +This plugin was migrated from the original Cerebro +plugin [cerebro-math](https://github.com/cerebroapp/plugins/tree/main/cerebro-math) diff --git a/extensions/math/package.json b/extensions/math/package.json new file mode 100644 index 0000000..57f657a --- /dev/null +++ b/extensions/math/package.json @@ -0,0 +1,28 @@ +{ + "name": "@rokii-plugins/math", + "version": "0.1.0", + "description": "Do quick math operations on Rokii", + "main": "dist/index.js", + "author": "David Jiménez (https://dubis.dev)", + "repository": "https://github.com/rokiiapp/extensions", + "type": "module", + "license": "MIT", + "files": [ + "dist" + ], + "scripts": { + "start": "rokii-build dev", + "build": "rokii-build build", + "prepublish": "pnpm build" + }, + "dependencies": { + "@rokii/api": "*", + "@tauri-apps/api": "*" + }, + "devDependencies": { + "@rokii/build": "*" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/extensions/math/src/index.ts b/extensions/math/src/index.ts new file mode 100644 index 0000000..08b193f --- /dev/null +++ b/extensions/math/src/index.ts @@ -0,0 +1,13 @@ +import { ExtensionModule } from '@rokii/api'; + +const run: ExtensionModule['run'] = async () => { + +}; + +const MathExtension: ExtensionModule = { + name: 'Math', + run, + icon: '' +}; + +export default MathExtension; diff --git a/extensions/math/tsconfig.json b/extensions/math/tsconfig.json new file mode 100644 index 0000000..ff72fba --- /dev/null +++ b/extensions/math/tsconfig.json @@ -0,0 +1,14 @@ +{ + "include": [ + "src" + ], + "compilerOptions": { + "moduleResolution": "Bundler", + "target": "ESNext", + "module": "ESNext", + "esModuleInterop": true, + "baseUrl": "src", + "strict": true, + "noImplicitAny": false + } +}