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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gz-server

v0.0.7

Published

react-server

Readme

使用@hlj/cli 脚手架创建的 react 工程是单页面工程,主要用来做 pc 端管理系统

创建的工程中无需安装 react、react-router、mobx、axios、antd、classnames

特别要注意这点,因为默认自带了这些库,所以不需要再次安装,否则会报错 之所以把这几个库集成进去,是因为希望这几个核心库的版本能统一由脚手架管理

CSS Module

默认所有的样式文件都会使用 CSS Module,如果某些 css 不想使用 CSS Module,那么可以将其名称改为以.global.less 或 css 结尾即可

hlj.config.js

根目录下会创建 hlj.config.js 来自定义项目配置,具体可配置的选项如下

//暂时的可配置项案例,以后会根据业务慢慢扩展
module.exports = {
  //启用的端口号
  port: 3000,
  /*
  打包之后的引用资源的不同环境下的域名(注意最后的/一定要加)
  publicPath可以是写死的一个路径也可以是一个函数,
  当不同环境中对应的publicPath也不同的时候才会配置成函数,函数第一个参数是env
  这个env就是部署的环境,是Jenkins部署的时候传入
   */
  // publicPath:'/p/admin/Tpl/Home/xxx',
  publicPath(env) {
    return {
      dev: '../',
      pre: '../',
      publish: '/p/admin/Tpl/Home/xxx'
      //...
    }[env]
  },
  // 接口的代理
  proxy: {}
}