Skip to content

Commit

Permalink
Init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlifeng committed Feb 3, 2024
0 parents commit 1791600
Show file tree
Hide file tree
Showing 12 changed files with 2,956 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
],
"plugins": [
"babel-plugin-transform-import-meta"
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated directories:
.nyc_output/
coverage/
dist/
node_modules/
.idea/
.DS_Store
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"arrowParens": "avoid",
"printWidth": 200,
"semi": false,
"trailingComma": "none"
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Wox.Plugin.Template.Nodejs

Plugin template for nodejs plugin
Binary file added images/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "wox_plugin_selection_sum",
"version": "0.0.1",
"scripts": {
"build": "pnpm clean && ncc build src/index.ts -o dist && babel dist --out-dir dist && cp -r images dist && cp -r plugin.json dist",
"package": "pnpm build && cd dist && zip -r ../Wox.Plugin.Selection.Sum.wox *.js *.json images",
"dev": "nodemon --watch src --watch images --watch plugin.json --ext json,ts,js,mjs,png --exec pnpm run build",
"clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",
"clean:all": "pnpm run clean && (rm -r ./node_modules || true)",
"reinstall": "pnpm run clean:all && pnpm install"
},
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.20",
"@babel/preset-env": "^7.22.20",
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vercel/ncc": "^0.38.1",
"babel-plugin-transform-import-meta": "^2.2.1",
"eslint": "^8.49.0",
"eslint-config-prettier": "9.0.0",
"prettier": "3.0.2",
"typescript": "^5.2.2"
},
"dependencies": {
"@wox-launcher/wox-plugin": "^0.0.57",
"clipboardy": "^4.0.0"
}
}
25 changes: 25 additions & 0 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Id": "bf145a9f-4976-4486-a671-d44eb64c7cd0",
"TriggerKeywords": [
"*"
],
"Name": "Wox.Plugin.Selection.Sum",
"Description": "Sum selected numbers",
"Author": "Wox-Launcher",
"Version": "0.0.1",
"MinWoxVersion": "2.0.0",
"Runtime": "nodejs",
"Website": "https://github.com/Wox-launcher/Wox.Plugin.Selection.Sum",
"Entry": "index.js",
"Icon": "relative:images/app.png",
"SupportedOS": [
"windows",
"linux",
"darwin"
],
"Features": [
{
"name": "querySelection"
}
]
}
Loading

0 comments on commit 1791600

Please sign in to comment.