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

duxapp

v0.0.1

Published

duxapp项目创建工具

Downloads

5

Readme

duxapp项目创建工具

初始化duxapp项目,自动生成app图标,证书,修改包名等功能

使用

yarn add duxapp-cli

yarn 或者 npm run 运行下面的命令

或者不安装到项目,使用npx运行命令,将下面的所有 duxapp 命令替换为 npx duxapp-cli

支持的命令列表

create

初始化一个新的项目

duxapp create 项目名称

app

app add

添加、更新模块,支持批量添加 会同步更新所依赖的模块

duxapp app add 模块1 模块2

app publish

发布模块

duxapp app add 模块名称

发布模块 并且发布依赖的模块

duxapp app add 模块名称 1

app create

创建一个模块

duxapp app create 模块名称 模块描述

project

project clearStatic

清理项目没用到的静态资源文件

duxapp project clearStatic

rn react-native端操作

rn create

创建RN打包环境

# 需要同时指定模块和配置才能创建成功
duxapp rn appIcon --app=模块 --config=配置名称

rn logo

通过图标工厂接口快速创建项目app图标

# 未指定图标,请将图标命名为 logo.png 放在配置目录下
duxapp rn logo --config=配置名称
# 或者指定图标位置 相对于配置目录
duxapp rn logo logo.png --config=配置名称

rn codepushInit

初始化项目的codepushapp和分支

duxapp rn codepushInit android或者ios

使用codepush相关的功能需要提供以下配置

  /**
   * 热更新上传控制
   * 安卓和ios独立控制 设置common为公共参数
   * {
   *  token:账户设置中心生成的token
   *  account:上传的账号
   *  version:当前代码需要的原生app版本
   *  name:appcenter上的应用名称 不填写默认为package.json的 name + '-' + (ios或者android)
   * }
   */
  option: {
    codepush: {
      common: {
        token: '',
        account: '',
        version: '^1.0.1'
      },
      android: {
        // 必填
        name: 'name-android'
      },
      ios: {
        // 必填
        name: 'name-ios'
      }
    }
  }

rn codepushDeploymentKey

查看当前项目分支和对应的key

duxapp rn codepushDeploymentKey android或者ios

rn codepush

发布热更新代码

duxapp rn codepush android或者ios

android

android keystore

未项目配置生成证书

duxapp android keystore --config=项目配置

ios

ios upload

将ios的ipa安装包上传到应用商店

duxapp ios upload aaa.ipa

要使用这个功能需要在配置文件提供账号和密码

{
  ios: {
    // 应用商店上传账号
    account: '',
    // 不是账号密码,是在账户中心生成的密码
    password: ''
  }
}

file

file move

将一个文件移动到另一个位置,或者是文件夹

duxapp file move a b

file copy

将一个文件复制到另一个位置,或者是文件夹

duxapp file copy a b

file delete

删除文件或文件夹

duxapp file delete a