awesome-gadgets

4.5.2 • Public • Published

NPM version Linter

简介
Introduction

Awesome Gadgets 是面向 MediaWiki 网站,用以统一存储、管理并编译全站小工具(Gadget)的工具。小工具开发者只需关心小工具本身的代码实现,无需关心其他方面。工具将自动检查语法、编译并部署到网站。
Awesome Gadgets is a tool designed specifically for MediaWiki websites, with the goal of centralizing the storage, management, and compilation of all site-wide CSS/JavaScript and their peer pages. Developers of these gadgets can solely focus on implementing the code for their creations without the need to worry about other aspects. The tool will automatically check the syntax, compile, and deploy gadgets to the website.

  • 使用 esbuild 编译,通过 Babel 转译现代语法以获得良好的浏览器兼容性
    Compile using esbuild and transpile modern syntax with Babel for good browser compatibility
  • 可以编写 TypeScript 和 Less,支持 CSS 和 Less 模块,可以使用 jsx-dom,可以使用 Vue 组件
    Support writing files in TypeScript and Less, support CSS/Less modules, jsx-dom components and Vue components
  • 支持引用 ResourceLoader 模块
    Support requiring ResourceLoader built-in modules
  • 支持向多个站点部署并独立控制启用与否
    Support deploying to multiple sites and independently control whether to enable/disable them
  • 自动部署
    Automatic deployment
    • MediaWiki:Gadgets-definition
    • MediaWiki:Gadget-section-*(支持自动转换中文变体)/ (with automatic conversion of Chinese variations)
    • MediaWiki:Gadget-*(支持自动转换中文变体)/ (with automatic conversion of Chinese variations)
    • MediaWiki:*.{js, css}
  • 自动从网站内删除曾经部署过但现在不再需要的页面
    Automatically delete pages that have been deployed on the website but are no longer needed

用法
Usage

文档
See documentation.

最佳实践
Best practices

Package Sidebar

Install

npm i awesome-gadgets

Weekly Downloads

268

Version

4.5.2

License

GPL-3.0-or-later

Unpacked Size

180 kB

Total Files

55

Last publish

Collaborators

  • anyiee