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

create-cbk

v0.0.11

Published

彩贝壳前端 react 项目脚手架初始化工具

Downloads

4

Readme

create-cbk

彩贝壳前端项目脚手架工具

安装

通过 npm create cbk project-name 可以快速创建一个新的 react-ts 空白项目

npm create cbk cbk-app

新项目默认会使用 tsts 代码的阅读性和可维护性的效果不言而喻。如果有需求需要用到 js,可以使用 --template 模板选项

npm create cbk cbk-app --template js

目前只有纯净的初始模板,后续可以考虑加入内置路由,状态管理,甚至基本登录/首页菜单页面等通用功能,在对于 B 端系统开发上,会极大的增加前期项目准备效率上。

FAQ

既然是新项目为什么不选择更成熟的 create-react-app vite 这类脚手架呢? create-cbk 优势在哪?

create-react-app 是 facebook 官方团队出品的脚手架,其经过数年的版本迭代已经很成熟了。

create-cbk 是在 create-react-app 的基础上,扩展了许多更友善的配置(通过配置文件设置),并且兼容了而我们老系统的项目 webpack 4.0 版本,统一配置,集中管理插件,依赖等信息,使用 create-cbk 在内部技术统一方面也有很大的优势。

vite 是通过 esbuild rollup 等工具组成的一套全新的脚手架系统,因为是直接运行 es module 文件,在编译速度上有着极大的优势,但是对老项目的更新也是破坏性的,而且 vite 整体来说,还不如 webpack 成熟。为了线上运行的稳定性,我们可以牺牲部分开发构建效率(0.x 秒)。