MIT License

项目介绍

lisonge/vite-plugin-monkey 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 2.1k 个 Star、107 次 Fork。

仓库全名
lisonge/vite-plugin-monkey
开源许可证
MIT License
Star 数
2.1k
Fork 数
107
未关闭 Issue
9

README 摘要

vite-plugin-monkey Develop and build userscripts for Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat, and other userscript engines with Vite. Documentation: Features Support Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat, and other userscript engines Inject userscript metadata into the build output Open the development userscript in the default browser when its metadata changes Load external dependencies…

完整内容见 GitHub 原始 README 或本页 。

常见问题

vite-plugin-monkey 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 2.1k 个 Star。

vite-plugin-monkey 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 vite-plugin-monkey 的源码?

可以直接克隆仓库:git clone https://github.com/lisonge/vite-plugin-monkey.git,默认分支为 main;安装与运行步骤见仓库 README。

vite-plugin-monkey 最近还在维护吗?

仓库最近一次更新为 23 小时前,当前有 9 个未关闭 Issue;Star 数为 2.1k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
2290
价值分
1273
活跃状态
活跃

语言占比

CSS
JavaScript
PowerShell
SCSS
Svelte
TypeScript
Vue

Release

README

vite-plugin-monkey

npm package node compatibility

Develop and build userscripts for Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat, and other userscript engines with Vite.

Documentation: https://vite-plugin-monkey.pages.dev/

Features

  • Support Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat, and other userscript engines
  • Inject userscript metadata into the build output
  • Open the development userscript in the default browser when its metadata changes
  • Load external dependencies through userscript @require entries
  • Load external modules through userscript @resource entries
  • Import GM APIs through ESM with type hints
  • Collect the GM APIs used by the code and configure @grant automatically
  • Support top-level await and dynamic imports in a single userscript file
  • Open the built userscript automatically when running Vite preview
  • Support TypeScript and Vite features

Quick Start

Create a userscript project with the scaffolding tool:

pnpm create monkey
# npm create monkey
# yarn create monkey

Choose one of the included templates:

JavaScript TypeScript
empty (only js) empty-ts (only ts)
vanilla (js + css) vanilla-ts (ts + css)
vue vue-ts
react react-ts
preact preact-ts
svelte svelte-ts
solid solid-ts
Initializing a Template

vue-ts

Hot Module Replacement

hmr

Build and Preview

build and preview

Installation

Install the plugin in an existing Vite project:

pnpm add -D vite-plugin-monkey
# npm i -D vite-plugin-monkey
# yarn add -D vite-plugin-monkey

Add vite-plugin-monkey as the last item in the Vite plugin list. See the Getting Started guide for the basic configuration.

评论

暂无评论