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

ia-cli

v1.0.2

Published

互动工厂CLI

Downloads

3

Readme

互动工厂脚手架工具

互动工厂多端命令行开发工具

本地开发调试

1. 安装依赖
# 1. 先安装依赖
npm install
# or
yarn install
2. 启动
npm run dev
# or
yarn dev
3. Link到本地
npm link
# or
yarn link
4. 打开终端进行测试
# 输入下面命令
> ia --help

# 输出以下信息则正常
#
# Usage: ia [options] [command]
# 
# Options:
#   -h, --help      display help for command
# 
# Commands:
#   docs            文档中心
#   init            初始化开发环境
#   config          配置开发环境
#   create          创建小程序项目模板
#   preview         生成小程序真机二维码
#   run             启动小程序调试环境
#   login           登录并授权小程序开发环境
#   build           压缩代码文件
#   help [command]  display help for command
#

安装使用

# 注意:如果是本地调试则不需要单独安装,忽略此步骤

# npm
npm install -g ia-cli

# yarn
yarn global add ia-cli

环境配置 [必须]

1. 初始化
> ia init

# ⠏ 初始化开发环境...
# ⠏ 检测Taro开发环境...
# ⠏ 初始化本地开发环境...
# ⠏ 检测淘宝小程序开发环境...
# ✔ 环境已准备就绪
2. 配置开发信息
> ia config [option]
# 不带参数为设置配置

# 参数:
# -l, --list    查看配置列表

# 示例:
# ia config
# ia config --list

# 示例(Mac只需配置前两项):
#
# ? 1/4 微信小程序 AppID:
# ? 2/4 淘宝小程序 AppKey:
# ? 3/4 Chrome浏览器应用程序路径:
# ? 4/4 微信开调试工具根目录:
# 
# Chrome浏览器应用程序路径=C:\Program Files\Google\Chrome\Application\chrome.exe
# 微信开调试工具根目录=D:\微信web开发者工具

项目开发

1. 登录开发者工具
> ia login

# 示例:
#     > ia login
#     ? 请选择登录授权平台:
#     > 微信
#       淘宝
2. 初始化模板
> ia create

# 执行过程:
# ? 请输入项目名称:
# ⠏ 生成开发模板...
# ✔ 模板已准备就绪

3. 开发调试

# 需要先登录
> ia run

# 示例:
#     > ia run
#     ? 请选择运行环境:
#     > 微信
#       淘宝
4. 真机预览
# 需要先登录
> ia preview

# 示例:
#     > ia preview
#     ? 请选择预览环境:
#     > 微信
#       淘宝

打包上传

1. 压缩代码
> ia build

# ✔ 压缩成功:D:\signin\signin.zip