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

@axetroy/webuild

v0.5.1

Published

零配置无侵入式的微信小程序开发工具

Downloads

18

Readme

零配置, 无侵入式的小程序开发工具

Build Status Dependency Prettier Node npm version License

工欲善其事, 必先利其器

特性:

  • [x] 支持微信/支付宝小程序
  • [x] 零配置, 你所需要的, 都已经有了
  • [x] 无入侵. 兼容原生开发方式. 不用更改一行代码.
  • [x] 支持引入 NPM 模块
  • [x] 支持 ES2015, ES2016, ES2017...
  • [x] 强力压缩 JS, 极大节省包体积.
  • [x] 支持图片压缩, jpg/jpeg/mozjpeg/png/gif/webp/svg
  • [x] WXSS/WXML/JSON 压缩
  • [x] 支持使用css/sass/less代替wxss,xml代替wxml
  • [ ] 基于 AST 压缩 WXSS/WXML(把 className 替换成 1 个字符)
  • [x] 支持环境变量process.env, 默认有NODE_ENV. 也可以自定义变量WEBUILD_XX

该项目为开发工具, 不是小程序框架.

安装

npm install @axetroy/webuild -g

快速开始

webuild init my-mini-app
cd my-mini-app
npm start

如何使用

假设你的小程序项目目录

.
├── app.css
├── app.js
├── app.json
└── pages
    ├── detail
    │   ├── index.css
    │   ├── index.js
    │   └── index.xml
    └── index
        ├── index.css
        ├── index.js
        └── index.xml

创建一个src目录,并且把小程序项目源码放在src目录下, 并且运行

# 运行命令, 监听文件变化并打包编译
webuild dev

# 发布项目
webuild build

源码 src 已被编译至 dist 目录.

打开微信/支付宝开发者工具, 加载 dist 目录即可

需要关闭 ES6转ES5 选项

命令行

$ webuild --help

   webuild 0.3.5 - 零配置无侵入式的微信小程序开发工具
     
   USAGE

     webuild <command> [options]

   COMMANDS

     init <name>         初始化一个新项目                   
     dev                 以开发模式运行                     
     build               构建生产模式                       
     help <command>      Display help for a specific command

   GLOBAL OPTIONS

     -h, --help         Display help                                      
     -V, --version      Display version                                   
     --no-color         Disable colors                                    
     --quiet            Quiet mode - only displays warn and error messages
     -v, --verbose      Verbose mode - will also output debug messages

Example

  • Official: 官方小程序组件
  • CNode: 试验下的 CNode 社区
  • Icehome: 冰冰家纯手工店小程序

Contributing

Contributing Guide

如果你觉得项目不错,不要吝啬你的 star.

长期造轮子,欢迎 follow.

Contributors

| Axetroy💻 🐛 🎨 | | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

License

FOSSA Status