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

wwp

v0.3.5

Published

weex web packer

Downloads

188

Readme

Weex Web Packer

WWP (Weex Web Packer) is for weex-html5 to pack specified features in the distribution bundle. The features include components and APIs and etc. For example, you want pack only the basic components like 'div', 'text', 'image', you can specify the three components in the .wwprc file in the root path of weex project, then run the npm run dist to pack a weex-html5 bundle. The packed file is in the path ./dist/weex-html5/dist/weex.js.

usage

install

npm install wwp --save-dev

We strongly suggest you install WWP in the root path of the weex project, neither your project using weex, nor the global environment using --global. You can put the command runnning statement in the scripts config of the npm package file.

config file

There should be a .wwprc file in the root path of the weex project to specify the features to be packed in. And also you can specify the file path and name in this form wwp --config your/path/to/config.file

a .wwprc file's content looks like this:

{
  "components": [
    "image",
    "text",
    "scrollable",
    "slider",
    "indicator",
    "tabheader",
    "input",
    "video",
    "switch",
    "spinner"
  ],
  "apis": [
    "dom",
    "event",
    "pageInfo",
    "stream",
    "modal",
    "animation",
    "navigator"
  ],
  "npm": [
    "weex-picker"
  ]
},

there are other options, but it's better to ignore it because the default value of these options is for the current directory architecture of weex project.

  • packer: absolute path of the generated packer file (relative to the root).
  • componentsPath: abslute path of the components' directory (relative to the root).
  • loaersPath: absolute path of the loaders' directory (relative to the root).
  • apisPath: the path of the APIs' directory (relative to the root).

run the command

wwp --config ./.wwprc

Note: WWP is only to generate the feature importing file, not the final distributing bundle. After finished running the wwp command, you should still run the dist script for weex-html5 (npm run dist).

Note: You'd better run the wwp command in the npm scripts, who's executing working directory is the root of the weex project. Otherwise you should always run the wwp command in the root path of the weex project.

options

-c

Alias for --config, specifying the config file for the WWP. default value is ./.wwprc.

-d

Alias for --debug, specifying whether to log out the debug informations in WWP's processing progress.

reference: how to extend a component/api in weex-html5 ?