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

@dreamjser/h5-template-generator

v1.0.23

Published

a html5 project template cli

Downloads

35

Readme

@dreamjser/h5-template-generator

安装

  // npm全局安装
  npm i @dreamjser/h5-template-generator -g

  // yarn全局安装
  yarn add @dreamjser/h5-template-generator -g

  // pnpm全局安装
  pnpm add @dreamjser/h5-template-generator -g

使用

脚手架支持生成vue/react,pc端/移动端的项目

  // 选择平台 mobile-移动端 destop-桌面(PC)端
  > generate-template h5-project
  ? please select a platform
  1) mobile
  2) desktop
  Answer: 1
  // 选择框架
  ? please select a framework
  1) react
  2) vue
  Answer: 1
  // 是否使用e2e测试平台
   ? do you need use e2e test platform(cypress)?
  1) Y
  2) N
  Answer: 1

  // 此时已生成项目h5-project
  > cd h5-project
  // 安装依赖
  > pnpm i

支持能力

| | vue + mobile | vue + desktop | react + mobile | react + desktop | |:----------|:----------|:----------|:----------|:----------| | 框架 | vue3 | vue3 | react18 | react18 | | 状态管理库 | pinia | pinia | react-redux | react-redux | | 组件库 | vant | elementPlus | antd-mobile | antd | | css预编译 | Less | Less | Less | Less | | 构建工具 | webpack5 | webpack5 | webpack5 | webpack5 | | typeScript | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | eslint | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | prettier | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 单页面打包 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 多页面打包 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 本地mock | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 环境变量 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | pre-commit校验 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 单元测试(jest) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | 端到端测试(cypress) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

模板

模板文档参考:

react模板: https://github.com/dreamjser/h5-react-template

vue模板: https://github.com/dreamjser/h5-vue-template