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

xiaoben

v1.0.0

Published

奥鹏的基础支持模块

Downloads

4

Readme

应用配置

  1. build 下的build.config为构建的配置
    • mainport:为应用程序的端口
    • reloadPort:为热启动监听的websocket端口
    • package.json下的npm start 中的调试端口 需要与 调试器端口保持一致
  2. config 下的是运行时的配置文件
    • 可能需要检查的是站点的监听端口

注意

本方案是通过babel-loader得plugin可以转到es3 所以不能layout单独引用polyfill.js 那么所有外部库不支持ie8必须引入到babel-loader得脚本得下方 全局外部注入必须在babel-loader得上方

开发

开发只需要修改routes和client两个文件夹

  1. routes为服务器端的开发内容

  2. client下

    • views为服务器渲染的模板和客户端导入的模板
    • js为客户端入口,作为webpack打包入口 还需要在build下的webpack.common.js填写entry
  3. routes 文件

const api = require('../api');
const config = require("../config");
const utils = require("../utils");
var router = utils.Router();

router.get("/", function (req, res, next) {
  utils.render(res, 视图);
});

module.exports = router;

框架

  • render调用是以views文件夹为根
  • layout下的所有视图在构建的时候不会自动引入chunks
  • components下为放入所有组建视图 可拿来做server 和 client的共享

运行

npm i -g ly-supervisor
npm i 
npm start

调试

将调试器附加端口指定为你config下的debugport就可以

npm start 

#bug editor 29276 29296 判断下ci.style,ie8下会边框3像素问题 preview 只能提前渲染好,不能在客户端append iframe 会失败 webupload ie8 覆盖层会塌陷,点不到那个input