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 🙏

© 2026 – Pkg Stats / Ryan Hefner

tcloan-h5

v2.0.0

Published

基于 flatV2 OSS 金融业务项目

Readme

tcloan-h5

基于 flatV2 OSS 金融业务项目

1. 全局环境安装

sudo npm i -g yarn
  • 安装 @flat-cli
sudo npm i -g @flatjs/cli
  • 配置 host
127.0.0.1 dev.venus.org mock.venus.org me.ly.com dev.flatjs.com

2. 开发工具

推荐使用 vscode
https://code.visualstudio.com

vscode 常用插件
ESLint
formate: CSS/LESS/SCSS formatter
Prettier - Code formatter
Git Graph
Git History Diff
vscode-icons
flat-tools(通过点击菜单的方式执行flat命令)

3. 运行项目

  • 使用终端打开项目,并运行以下命令;安装比较慢,有海外代理,可使用会加快安装速度
yarn install
  • 安装成功后,可启动模块。
1. 模块是什么

   模块是独立发布的最小单位,一个项目可划分多个模块,具体根据业务功能划分;单个模块可独立发布或多个模块组合发布;在开发时可启动单个模块个模块,模块启动越少,开发编译速度越快;

2. 模块启动命令

   启动单个模块
   npx flat serve evolve -m '模块A'

   启动多个模块
   npx flat serve evolve -m '模块A;模块B'

   启动所有模块
   npx flat serve evolve

启动静态 staic 服务器

npx flat serve evolve -s

发布并行服务

yarn parallel -- -m '^模块A$;^模块B$'

编译模块

编译单个模块
npx flat build evolve -m '模块A'

编译多个模块
npx flat build evolve -m '模块A;模块B'

编译所有模块
npx flat build evolve

单元测试

- yarn test (测试所有的.spec.ts 文件)
- yarn test xxx.spec.ts 文件 (测试指定的 spec 文件)
- 调试 spec.ts 代码, 选中 xxx.spec.ts, vscode 执行调试 (Debug Test File)

打包命令(走自动化打包)

npx flat pack -f '**/模块A/**'
npx flat pack -f '**/{模块A,模块B}/**'
npx flat pack -f '**'

发布图片资源至 cdn

npx flat publish -s="leon" -f="**/*.png"

开发计划

h5版本(城市通App)
开发周期:3月18号 ~ 4月8号
联调测试周期:4月9号 ~ 4月19号
视觉稿:3月18号提供一半,3月20号剩余
接口文档:

h5版本(同程旅行App)
开发周期: ~ 4月19号

小程序版本(内部)
开发周期:4月15号 ~ 5月6号

小程序版本(同程旅行)
开发周期: ~ 5月13号

接口文档地址:
https://seapi.lydigi.com/#/share/4ZkG6W8a/vYRAgvvk