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

@winner-fed/winner-deploy

v4.2.2

Published

Generate a publication deployed by the See platform

Downloads

320

Readme

winner-deploy

功能接口说明

/**
 * 生成 see 平台部署包
 * @param options.system {string} 系统类型, SEE 平台的分组是以系统类型字段纬度来的, 默认为 winner-front
 * @param options.type {string} 应用类型, 外框架 - bizframe | 子系统 - subsystem, 默认为 子系统 - subsystem
 * @param options.name {string} 发布物名称
 * @param options.appType {string} 发布物类型, 默认为 应用名称 - name
 * @param options.version {string} 发布包版本
 * @param options.group {string} 应用分组,默认为 bizframe
 * @param options.configName {string} 配置文件名称,不带有 .js, 默认为 config.local
 * @param options.outputName {string} 输出的目录名称,默认为 dist
 * @param options.templateFunc {function} 自定义变量配置文件, 默认为
 * function () {
     if (type === 'bizframe') {
      return `./dist/config.local.js`;
    }
  }
 * @param options.variablesFunc {function} deploy.xml模板变量, 可以动态配置, 默认为
 * function () {
 *  const context = process.cwd()
    if (type === 'bizframe') {
      try {
        const {variables} = require(path.resolve(
          context,
          'build',
          'package',
          `./variables.js`
        ));

        return variables || [];
      } catch (error) {
        console.error(error);
        return [];
      }
    }
  }
 * @param options.copyFiles {Array<string>} 不包含在 manifest.json 配置的文件,直接拷贝到 see 包里。文件路径是相对于项目根目录的路径+文件名,比如 dist/子包/version.js,那么 copyFiles: ['version.js']
 * @param options.description {string} 发布包说明
 * @param options.seePackageName {string} see发布物的包名,也就是 zip 包的命名,默认为 `${system}-${name}-${version}`
 * @param options.seePackageType see 平台发布物包的类型,'web'(默认的) | 'docker'(支持容器化部署的SEE发布物)
 * @param options.dockerImage docker 容器化镜像名,seePackageType 为 docker 生效
 * @param options.scriptsType 脚本类型 'python'(默认的) | 'bash'
 * @param cb {function} 回调函数,用于处理在组装 see 包后,可以自定义执行的动作
 */
export const generateSeePackageZip = function generateSeePackageZip({system, type, name, appType, version, group, configName, outputName, templateFunc, variablesFunc, copyFiles, description, seePackageType, dockerImage, scriptsType}, cb) {
...
}