Skip to content

Commit

Permalink
chore: add base code for math plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dubisdev committed Mar 9, 2024
1 parent 2d0f694 commit c33dede
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extensions/math/README.md
Original file line number Diff line number Diff line change
@@ -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)
28 changes: 28 additions & 0 deletions extensions/math/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (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"
}
}
13 changes: 13 additions & 0 deletions extensions/math/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ExtensionModule } from '@rokii/api';

const run: ExtensionModule['run'] = async () => {

};

const MathExtension: ExtensionModule = {
name: 'Math',
run,
icon: ''
};

export default MathExtension;
14 changes: 14 additions & 0 deletions extensions/math/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"include": [
"src"
],
"compilerOptions": {
"moduleResolution": "Bundler",
"target": "ESNext",
"module": "ESNext",
"esModuleInterop": true,
"baseUrl": "src",
"strict": true,
"noImplicitAny": false
}
}

0 comments on commit c33dede

Please sign in to comment.