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 🙏

© 2025 – Pkg Stats / Ryan Hefner

primeton-cli

v1.0.2

Published

primeton developer cli

Readme

mobile-dev-cli 帮助文档

安装:

npm install -g mobile-dev-cli

mobile-dev-cli 组件提供以下命令:

check

检查环境变量

命令:

pmobile check

create-app

创建app项目

命令:

pmobile create-app <appId> <appName> [options]

参数(必填)

  • appId 应用ID,应是唯一不重复的。例如com.primeton.test
  • appName 应用名,中英文均可

options

  • --homepage 应用主页,默认为/index.js
  • --appversion 应用版本,默认为1.0.0
  • --description 应用描述
  • --template 模板下载路径
  • --repository 私仓地址,用于私仓方案

示例:

pmobile create-app com.primeton.sample sampleProject //从公网创建空白项目
pmobile create-app com.primeton.sample sampleProject --repository http://192.168.6.38:8062/repository //从私网上创建空白项目
pmobile create-app com.primeton.mobile.mwork 工作流 --homepage /main.js --appversion 8.0.1 --description 这是一个移动工作平台 
pmobile create-app com.primeton.sample sampleProject --template http://192.168.6.59:8088/repository/primeton-product-releases/com.primeton.mobile.sample.bank-8.0.0.zip

create-micro-app

创建H5微应用项目

命令:

pmobile create-micro-app <appId> <appName> [options]

参数(必填)

  • appId 应用ID,应是唯一不重复的。例如com.primeton.test
  • appName 应用名,中英文均可

options

  • --template 模板下载路径
  • --repository 私仓地址,用于私仓方案

示例:

pmobile create-micro-app com.primeton.h5demo h5demo
pmobile create-micro-app com.primeton.h5demo h5demo --repository http://192.168.6.38:8062/repository
pmobile create-micro-app com.primeton.h5demo h5demo --template http://192.168.6.59:8088/repository/primeton-product-releases/bank-8.0.0.zip

export

导出介质,可导出基座的IPA和APK,也可导出应用的IPA和APK

命令:

pmobile export [options]

参数(必填)

options

  • --jsbundle 导出jsbundle,只支持导出base的dev的jsbundle
  • --onlybase 导jsbundle时,只导基础jsbundle,不包括组件js,该参数只能和--jsbundle一起用
  • --ipa 导出ipa
  • --apk 导出apk
  • --base 导出基座
  • --nobundle 导出ipa或apk时,不执行jsbundle
  • --deploy 部署类型,值可为"dev", "sit", "product". 其中base只支持“dev”
  • --app 导出app zip包
  • --output 导出路径 默认为当前路径 可以为".", "./", "xxx"等相对路径,也可为"/xxx/xxx"等绝对路径
  • --debug debug模式,不打包apk,ipa,只生成android,ios的调试项目,只做用于--base

示例:

pmobile export --apk --ipa       //导出app项目的apk,ipa, 默认会执行jsbundle
pmobile export --apk             //导出app项目的apk , 默认会执行jsbundle
pmobile export --ipa             //导出app项目的ipa, 默认会执行jsbundle
pmobile export --ipa --deploy sit             //导出app项目sit环境的ipa
pmobile export --base --ipa           //导出基座的ipa
pmobile export --base --apk           //导出基座的apk
pmobile export --base --ipa --apk     //导出基座的ipa和apk
pmobile export --base --ipa --debug     //生成基座的调试项目
pmobile export --app --output .     //在当前路径导出zip
pmobile export --jsbundle --onlybase  //导出jsbundle时,只包括基础jsbundle,不包括组件js

start

启动调试服务器

命令:

pmobile start

import

导入本地RN原生项目到应用下,用于开发,调试,打包应用

命令:

pmobile import <dir> 

参数(必填)

  • dir 组件路径,指向存放组件package.json的目录

示例:

pmobile import /Users/primeton/components/@react-native-community/datetimepicker

config

配置打包向导

命令:

pmobile config <appType> <envType>

参数(必填)

  • appType app类型,可填值可为app或base,其中app为应用,base为基座
  • envType env环境,可填值可为dev或sit或product

示例:

pmobile config app dev     // 配置app的dev环境
pmobile config app sit     // 配置app的sit环境 
pmobile config app product     // 配置app的product环境 
pmobile config base dev     // 配置base的dev环境  

view

显示基线信息

命令:

pmobile view [name] [action] [options]

参数(必填)

  • name 目前只支持baseline
  • action 目前只支持versions

示例:

pmobile view baseline //查看基线详细内容
pmobile view baseline versions  //显示基线历史版本

update

更新基线,会写入项目的package.json里

命令:

pmobile update [name] [options]

参数(必填)

  • name 更新组件名或基线

options

  • --upateVersion 指定更新版本

示例:

pmobile update  //更新基线到最新
pmobile update --upateVersion 3.1.0   //更新基线指定版本
pmobile update primeton-mobile-dev   //更新primeton-mobile-dev到最新
pmobile update primeton-mobile-dev 3.0.8  //更新primeton-mobile-dev到指定版本

install

根据.primetonenv里配置的仓库,初始化项目及安装native-components的组件

命令:

pmobile install

示例:

pmobile install