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

@jump-mp/mp2jump

v1.3.14

Published

微信小程序转众研小程序

Downloads

24

Readme

@jump-mp/mp2jump 转换jump小程序CLI

微信小程序转jump小程序CLI

安装和快速上手

  1. 新建一个文件夹,初始化项目 npm init -y
  2. 安装转换依赖 yarn add @jump-mp/mp2jump -D
  3. @jump-mp/mp2jump配置了 postinstall,在安装时会自动将打包命令 mp2jump 添加到 package.json scripts 中
  4. 新建src目录并将微信小程序工程所有文件拷贝到src目录下
  5. yarn mp2jump 执行编译命令,实现微信小程序到jump小程序的转换操作。
  6. 若原微信小程序未引入第三方包,使用IDE打开/dist/build/mp-jump目录,IDE会自动安装依赖以及真机调试。
  7. 若原来的微信小程序引入第三方包UI包(如iview-weapp),可以将UI包文件按照上述流程转换为jump小程序文件(如mxml,mcss),之后将转换后的UI文件拷贝到相应目录即可。

转换CLI信息提示

  • 在转换后的目录(mp-jump)下有compile-info.txt,compile-info.txt会有此次转换信息,请认真查看不兼容的API和组件并做兼容处理。

使用说明

css

  1. css背景图片请使用网络图片或者图片base64化。小程序不支持在css中使用本地文件,包括本地的背景图和字体文件。网址
  2. 请使用flex布局。网址
  3. 图片或字体使用cdn时,请使用全路径(http或者https协议开头)。网址
  4. 多使用css的动画,而不是通过使用js定时器操作界面做动画。

xml

  1. 微信小程序原代码中使用专用标签,如view、text等,不要使用div、span等标签。
  2. 暂不支持在wxml中使用import标签引入文件。

JavaScript

  1. 在js中不要使用fetch等JavaScript保留字定义变量。