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

spon-weex

v0.3.0

Published

spon-weex

Downloads

6

Readme

USAGE

  • spon weex add

    添加weex的脚手架页面,包含一个vue文件、js入口文件以及一个html入口文件。

  • spon weex dev -n xxx

    本地开启服务器进行开发调试,配合weex-loadervue-loader,实时编译.vue文件。与spon mb dev相比删除了线上拉取component组件环节。

    在开发过程中.vue文件会被分别编译成xx.min.jsxx.weex.min.js文件,其中xx.min.jsvue-loader编译,用于H5页面的脚本,而xx.weex.min.jsweex-loader编译,用于APP。

    以下0.3.0版本新增

    spon weex dev -n a,b,c (调试指定多个页面,英文,连接)

    spon weex dev -n a (调试单个页面)

    spon weex dev 调试所有页面(速度会慢)

    支持/api开头的接口代理,代理到shop.m.showjoy.net

    在项目根目录可以添加.cookie文件,存入用户账号信息,用于接口代理调试。默认已经存在Xinkj5zbh账号信息。

  • spon weex debug -n xxx

    封装了官方的weex-devtool,开启native调试模式。

    ~~spon-weex在每次调用官方weex-devtool时都会检查此weex-dev-tool是否是最新版本,若不是,会强制更新。~~

  • ~~spon weex build -n xxx~~

    0.3.0版本修改 该命令在jenkins服务器打包中使用,本地使用无效

    打包资源。同开发环境,最后会生成两个js文件。xx.min.jsxx.weex.min.js文件

  • git 相关发布流程与当前环境一致

在开发以及调试weex页面期间需要保证spon weex devdev环境始终开启,这样会保证在debug模式下调试app真机时二维码代表的是实时的编译后文件。

此spon-weex插件仅在正常业务项目录下工作

|-shop-m
|--build
|--src
|----pages
|------weex-test
|--------weex-text.js
|--------weex-text.vue
|--------weex-text.html

CHANGELOG

0.3.0

1、[feature] spon weex dev 支持指定多个文件调试,用于native多页面调试。

2、[feature] spon weex dev 本地调试环节支持proxy代理/api开头的接口代理,代理到shop.m.showjoy.net

3、[feature] 项目中可以使用npm install命令进行第三方库的引用。

4、[fix] spon weex add 生成的脚手架文件符合eslint规范

5、[fix] spon weex debug 不会强制要求升级weex-devtool

6、[other] 强制 npm 版本大于 5

0.2.0

  1. 在dev build命令会触发eslint代码规范检查。build命令时若eslint检测到规范问题会中断构建。

0.1.0

  1. 内置的webpack由1.0升级到2.0+ 支持tree-shaking打包,全面支持es6模块

  2. spon weex build -n xxx命令删除了md5信息的输出

  3. 对于weex-vue-render修复了内联style样式无法添加css前缀问题

0.0.12

  1. 添加了MD5命令 ``spon weex md5 -n xxx 生成当前build文件夹的某页面md5,用于配置weex

0.0.11

  1. spon-weex所有命令添加-n参数判断,无效文件或者忘记添加-n参数都会进行提醒。

  2. H5端weex-vue-render适配0.10.0版本,对vue模板文件添加了meta[name=viewport]头信息。

  3. spon weex dev -n xxx 调试环境下新增了webpack错误信息输出,老版本只在build命令下有webpack错误信息输出。

  1. spon weex build -n xxx 打包命令输出当前weex.min.js文件的md5,用于app修改版本号验证。