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

yushi-starter-cli

v1.2.1

Published

YuShi Starter 使用 TypeScript 开发,快速创建中后台项目

Downloads

11

Readme

介绍

typescript 脚手架,用来快速生成适用于团队业务的vue或nodejs基础项目

使用

1.全局安装脚手架

pnpm i yushi-starter-cli -g

2.创建项目(可选择创建不用模板的项目)

ys-starter create projectName

扩展

脚手架内置了不错的扩展性,不论是为已有的 create 命令增加新的功能,还是新增一个命令,或者新增新的模板都很简单,方便根据自身需要进行二次开发

增加新的命令

从 /src/index.ts 开始,仿照 create 命令方式即可

给 create 命令增加新的功能

在 /src/utils/create.ts 中的 selectFeature 方法中新增一条 choice,然后在 /src/utils/installFeature.ts 中新增对应的安装方法即可

添加新的模板或更改模板地址

修改 /src/constant.ts 中的 gitLabConfig 配置即可

能力

通过该脚手架创建的项目具有以下能力

typescript

如飘柔般丝滑的开发体验

本地开发服务器

执行以下命令即可启动一个本地开发服务器,支持实时编译

npm run dev

构建

执行以下命令完成构建,因为脚手架主要用于开发一些简单的 typescript 项目,所以就没有集成第三方的构建工具,直接用 typescript 自己的构建能力即可,简单易用,没有学习成本

npm run build

代码质量

ESLint + prettier 配合 husky 和 lint-staged,在代码提交时自动校验和修复代码格式

规范的 git 提交信息

使用 commitzen 来规范 git 提交信息,可以直接执行 git commit -m "msg" 提交,会提示提交信息有误,弹出一个链接,点开会告诉你有效的提交格式,或者执行 npm run commit 命令会弹出一个交互式的命令行,引导你填充提交信息