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

qanglee-cli

v0.0.7

Published

a easy react template

Downloads

2

Readme

快速上手

环境准备

首先得有 node 推荐使用 yarn 管理 npm 依赖,并使用国内源(阿里用户使用内网源)。

安装 qanglee-cli

  npm i -g qanglee-cli

创建项目

先找个地方。

  qanglee create
? your projectName: Moderate
? yarn or cnpm or npm:
> yarn 
  cnpm 
  npm 

Moderate "终"定在哪?

Moderate,意思为适中的,适度的,用这个作为代号,主要取决于他的本名“中用”,其一以贯之的想法就是中庸,秉承着以人为本的态度,着眼一般且常见业务,整理出一套“还行”的解决方案,选择性地追求先锋,策略性地坚持守拙,大体保持趋向极致的中庸,目标是打造一个没那么“重”(各种设限),没那么“轻”(啥也没有),方便演化的一个有生命力的脚手架,这就是Moderate所追求的“终”。

基于此想法指导下,初步具备了以下主要功能:

🥟 开箱即用,逻辑风格(比较)统一,理解一二,可推其他,并提供模版作为参考。

🍢 路由可配置,可约定(部分),可视化调整,并且具备切换动画和还原滚动位置等功能。

🥥 页面开发确立了一个灵活的规范,即将页面的数据和逻辑关注分离,实则一体,方便扩展和维护。

🥪 组件基于antd进行了包装,目的旨在(尽可能)遵循其设计的基础上扩展一些功能,(追求)让用起来更方便。

🍱 对数据管理器层进行了整合,确立好业务边界,让业务流转协调顺畅,可配置行为,如:mock,schema校验,接口防抖,提示信息等。

🍬 网络请求基于axios进行了包装,进行了简单且必要的封装。

🇬🇧 对国际化功能进行了包装,为每个页面指定了独立的国际化文件,并简化了开发复杂度,更直接,便于扩展和维护。

🥦 前端mock接口更直接自然,开发环境下动态引入且可拆卸可定制。

📐 提供接口参数的schema校验,以应对后台的api文档细节口口相传的潜在危机。

📒 集成了MD文档功能,这样可以方便在开发时有什么相关想法和收获,在不脱离项目的情况下进行记录沉淀,既方便个人,又贡献集体。

🏀 初步整合了Cocos引擎,可以在react代码中写游戏,想想就感觉兴奋,一加一就不是等于二的问题了。

用不用

因人而异,Moderate就是在“平平无奇”的地方,做着”普普通通“的事情,不奢望会被接受,不忧虑会被否定,一直在路上,仅希望有一分就贡献一分光和热。

作赋一首,以抒胸意

前潜皆可,可攻可守。 黑白皆容,趋善避恶。 乾坤知易,随遇而刻。 保中守和,无成有终。