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

@vyron/mini-ci

v1.0.3

Published

[![license](https://img.shields.io/npm/l/@vyron/mini-ci)](https://github.com/VFiee/mini-ci) [![npm version](https://img.shields.io/npm/v/@vyron/mini-ci.svg)](https://github.com/VFiee/mini-ci)

Downloads

1

Readme

mini-ci

license npm version

mini-ci 基于miniprogram-ci开发,用于以配置管理多个小程序项目.

Table of Contents

安装

yarn

yarn global add @vyron/mini-ci

npm

npm install @vyron/mini-ci -g

配置

参考微信文档

项目配置

| key | 默认值 | env | 类型 | 必填 | 说明 | | :-----------------: | :-----------------------------------------------: | :---------------------------------: | :--------: | :--: | :-------------------------------------------------------------------------------: | | appid | 当前项目 project.config.jsonappid 字段 | appid / id | string | 否 | 小程序或小游戏的 appid | | projectPath | 无 | projectPath / proPath | string | 是 | 项目源码路径 | | privateKeyPath | 无 | privateKeyPath / priPath | string | 是 | 小程序或小游戏代码上传密钥 | | type | miniProgram | type / t | string | 否 | 当前项目类型,有效值 miniProgram/miniProgramPlugin/miniGame/miniGamePlugin | | ignores | 无 | ignores / ig | string[] | 否 | 指定忽略的规则 | | version | 项目及其上级三层目录的package.json里的version | ver | string | 是 | 自定义版本号 | | desc | 当前本地时间 | desc / d | string | 否 | 自定义备注信息 | | robot | 1 | robot / b | number | 否 | 指定 CI 机器人,可选值1~30 上传成功后将显示:ci 机器人 1 | | qrcodeFormat | terminal | qrcodeFormat / qrFormat/qrf | string | 否 | 预览返回二维码文件格式,可选值: image/base64/terminal | | qrcodeOutputDest | 当前项目 | qrcodeOutputDest/qrDest / qrd | string | 否 | 当qrcodeFormatimagebase64时,文件默认保存到当前项目 | | pagePath | 无 | pagePath / pp / p | string | 否 | 预览页面路径 | | searchQuery | 无 | searchQuery / sq / q | string | 否 | 预览页面启动参数 | | sourceMapSavePath | 当前项目下soucemap.zip | sourceMapSavePath / sp | string | 否 | 保存 sourcemap 的绝对路径 |

编译配置

| key | 默认值 | env | 类型 | 必填 | 说明 | | :--------------: | :----: | :--------------: | :-------: | :--: | :---------------: | | es6 | 无 | es6 | boolean | 否 | 启用 es6 | | es7 | 无 | es7 | boolean | 否 | 启用 es7 | | minify | 无 | minify | boolean | 否 | 启用压缩代码 | | codeProtect | 无 | codeProtect | boolean | 否 | 启用代码混淆 | | minifyJS | 无 | minifyJS | boolean | 否 | 启用压缩 JS | | minifyWXML | 无 | minifyWXML | boolean | 否 | 启用压缩 XWML | | minifyWXSS | 无 | minifyWXSS | boolean | 否 | 启用压缩 WXSS | | autoPrefixWXSS | 无 | autoPrefixWXSS | boolean | 否 | 启用自动补全 WXSS |

示例

// project
"type":"miniProgram",
"appid":"93457450667",
"privateKeyPath":"dist/weapp",
"privateKeyPath":"private.key",
// settings
"setting":{
    "es6":true,
    "es7":true,
    "minify":true,
    "codeProtect":true,
    "minifyJS":true,
    "minifyWXML":true,
    "minifyWXSS":true,
    "autoPrefixWXSS":true,
}
// others
"robot":10,
"qrcodeFormat":"image",
"qrcodeOutputDest":"preview.jpg",
"pagePath":"pages/users/index",
"searchQuery":"user_id=87504653",
"sourceMapSavePath":"sourcemap.zip"

使用

上传

mini-ci upload -h
mini-ci upload --ver "1.0.0"

预览

mini-ci preview -h
mini-ci preview

构建 npm

mini-ci build -h
mini-ci build

获取 sourcemap

mini-ci sourcemap -h
mini-ci sourcemap

全局配置

# 查看config帮助信息
mini-ci config -h

设置项目配置

# 设置项目配置
mini-ci config set --name test_set_project --path /Users/vyron/mini/mini-ci.json --default

获取项目配置列表

mini-ci config ls

获取项目配置详情

mini-ci config get --name test_set_project

删除项目配置

mini-ci config delete --name test_set_project

获取或设置默认配置

# 获取默认配置
mini-ci config default

# 设置为默认配置  项目名(test_set_project)必须已存在
mini-ci config default --name test_set_project

导出项目配置

# 如果不指定导出项目名,导出默认项目配置,默认导出路径为当前项目 export-mini-ci.json
mini-ci config export --name test

清空项目配置

# 清空所有配置
mini-ci config clear

# 展示当前配置列表
mini-ci config ls

参考文档

小程序开发者文档
miniprogram-ci(npm)

维护者

Vyron

如何贡献

非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。

使用许可

MIT © VFiee