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

wxmp-starter

v1.1.5

Published

小程序开发脚手架

Downloads

11

Readme

wxmp-starter 小程序开发脚手架

wxmp-starter

基于 gulp 搭建,满足小程序基本开发所有需求 🖥。

  • 🚀 轻量极速构建
  • 🎨 支持 TypeScript SASS
  • 🔍 代码检测
  • 🎈 font icon
  • 🗃 自动化 npm 构建
  • 🏞 图片压缩

为什么不使用流行框架

在使用官方开发模板时。使用起来不是很舒服,如官方 wxss,类似于 css。没有类似 SASS 提供的变量(variables)、嵌套(nested rules)、 混合(mixins)、 函数(functions)等功能。另外,习惯了 Typescript,虽然官方也提供了模板,但不是很自动化。出于个人学习的原因,基于官方的开发环境,搭建这个 wxmp-starter

虽然有很多主流框架可供选择。在纠结选择哪个框架时,首先明确自己的需求,确定是否真正需要。自己在选择框架时,更多会结合自己的业务需求,如果不考虑其他平台的转化,会选择 wpey,或时间允许的情况下,会结合业务进行搭建。原因是原生微信小程序本身相较 HTML 就存在各种限制,在此基础使用 DSL 进行二次封装,又引入新的复杂度。出现 bug 可能需要花更多的时间去解决 😂。

如果真有多平台转化 “Write once, build anywhere”,还是可以选择 taro,或 remax。类似 DSL 框架还有 uni-appmpvueChameleon

快速开始

 npx -p wxmp-starter@latest wxmp-starter

开发相关命令

  • 启动开发环境

    npm start
  • 打包构建

    npm run build
  • lint 代码

    npm run eslint
  • 格式化代码

    npm run format