npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wpsjs-yyago

v1.0.10

Published

WPS Office JavaScript Plugin build and publish

Downloads

3

Readme

wpsjs-yyago

基于 wpsjs 的更改。

更改点:

  1. publish 不再依赖 wpsjs,支持一次性安装为多个客户端应用插件。多个应用使用同一个插件文件(不会打包为多个 .7z 文件,除非你单独为单个应用开发),我们只是在安装器上做手脚……
  2. 打包和发布不再需要询问交互。
  3. 可自定义排除不打包的文件。
  4. 可自定义打包、发布存放目录。
  5. 在插件的 package.json 文件上做一些配置即可。

package.json 配置

添加以下内容到加载项的 package.json 中(示例):

"iConfigs": {
    "pluginType": "offline",
    "serverUrl": "https://www.pwedu.top/wpsAddons/",
    "addonType": [
      "wps",
      "et",
      "wpp"
    ],
    "buildDir":"docs",
    "publishDir":"docs/pub",
    "excludeFiles":[
      "test",
      "temp"
    ]
}

说明:

  1. pluginType:是离线还是在线插件(加载项)? "offline":离线,"online":在线。

  2. serverUrl:发布 URL 地址,必须以“/”结尾。

  3. addonType:安装到哪些应用上?仅限从 wpswpspet 中选一个或多个,如果插件可安装多个应用上则写多个。比如示例中的写法表示插件可以安装到文字、表格、演示文档三个应用上。注意:它们使用同一个插件源文件,而不是打包成 3 个独立文件!!! 这个配置仅对发布有效,(这一步生成 publish.html文件)。

  4. buildDir: 打包后的文件存放目录,默认是 “wps-addon-build”。

  5. publishDir: 发布文件(publish.html文件,相当于安装器)存放目录,默认是 “wps-addon-publish”。

  6. excludeFiles: 打包时要排除的文件(不打包的文件)。

如果你懒得复制,可以通过命令更改 package.json 文件:

  rwpsjs config

  # npx wpsjs-yyago config

使用

  1. 打包

    npx wpsjs-yyago build
    
    # global
    rwpsjs build
  2. 发布

    npx wpsjs-yyago publish
  3. 添加配置

    npx wpsjs-yyago config

可引用模块

const addonList = require('wpsjs-yyago/publish').publishOpstions

/* addonList:
 [{
        "name":"wpsjs-yyago",
        "addonType":"wps",
        "online":"false",
        "url":"yourURL"
    },
    ...]
*/
// 如果要自己写安装器文件(publish.html),可以其结果作为安装参数。

继续使用 wpsjs

wpsjs 已随本包一起作为依赖被安装,可以用 npx 执行 wpsjs 包的命令。 如果提示需要安装依赖,允许安装即可。

你应该能在 node_modules/.bin/ 中找到它。