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

fastlane-cli

v1.5.9

Published

#### 初始化项目

Downloads

35

Readme

fastlane-cli

依赖

  • Nodejs
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install node

安装

npm i fastlane-cli -g

功能

创建项目 CREATE

运行命令前,需要保证终端有执行 git clone 的权限

fl create [name] --type=0 --apiPrefix=/sso-auth --dist=/rapp/sso-auth

项目类型 (type)

| 类型 | 名称 | 模板地址 | 说明 | | ----------- | ------ | ------------------------------------------------------------------------ | -------------- | | 0 | hybrid | hybrid | hybrid | 多端通用 | | 1 | admin | admin | admin | 专注管理后模板 | | 2 | node | node | nodejs | Node 端模板 | | cli | cli | cli | 命令行 模板 |

模板规范

以 Hybrid 模板为例:

{
  "name": "<%= data.name %>"
}
const api = (url: String) => `<%= data.apiPrefix %>${url}`;

更多语法支持,参考 Lodash/template 文档, 中文文档地址

添加 Lint

  • 添加 husky, lint, changelog 相关依赖
  • 添加 commitlint 配置
  • 添加 eslint 配置
  • 添加 package.json scripts

参数

  • type?: "react" | "vue" | "vuets";
  • stylelint?: boolean; 可选参数。是否添加 stylelint 配置,默认为 true
  • usenpm?: boolean; 可选参数。是否使用 npm ,默认 false ,false 时使用 yarn
// fl lint [--type=react|vue|vuets, default: react] [--stylelint=true, default:true] [--usenpm=true, default: false]

fl lint --type=react --usenpm=true

fl lint --type=vue --usenpm=true

fl lint --type=vuets --usenpm=true

初始化开发环境 Boot (仅限 Mac 系统)

  • 安装 homebrew
  • 安装 oh-my-zsh
  • 配置 .zshrc

小程序工具 WEAPP

  • 发布版本 release
  • 添加子包 add
  • 预览小程序 preview
# 安装 sso 模块 到 package/sso 目录
fl weapp add sso

# 安装 sso 模块 到 module/auth 目录
fl weapp add sso --dest module/auth

fl weapp upload --desc='发布' --version='1.0.0'

# 二维码模式
fl weapp preview --qr=image

工具集 Tool

  • 获取 COS token
  • 显示端口地址二维码
export `fl tool cos | xargs`

fl tool qr --port 8000
  • 根据COS_TOKEN_URL获取 cos token

SPA 平台

该命令依赖 SPA 平台, 以环境变量形式设定平台地址

export SPA_CONSOLE=http://console.example.com/api export BUCKET=public-10000230 export BUCKET_REGION=ap-shanghai

// 上传
fl spa upload --from lib --cos temp
// 发布
fl spa deploy --from dist/web --tag ${BRANCH} --target dev --matchUrl fd.doctorwork.com
// 添加聚合系统代码
fl spa mashup --name HIS聚合系统

消息工具

依赖环境变量 ROBOT_URL

  • 发送版本更新消息
fl message workwechat

开发

yarn global add "file:$(pwd)/"

配置文件

  • .flrc
  • fl.config.json
  • package.json > fastlane-cli

字段

| 名称 | 说明 | 备注 | | ------ | ---------- | ---- | | minify | 小程序压缩 | |

TODO

  • [ ] lint 内容通过单独的仓库进行管理