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

odin-apps

v1.0.0

Published

test

Downloads

2

Readme

一,oclif 框架

oclif 是一个框架,创建cli框架,可以实现单行命令也可以实现多行命令cli

二,oclif环境

 要求:Node 12+ 环境, 在cli 引入插件的方式

  "oclif": {
    "commands": "./lib/commands",
    "bin": "ck",
    "plugins": [
      "@oclif/plugin-help",
      "odin-cockpit-cli-plugin-snippet",
      "odin-cockpit-cli-plugin-build"
    ],
    "topicSeparator": " ",
    "topics": {}
  },

地址:https://github.com/oclif/oclif npx oclif generate mynewclis

三,lerna

定义:一个工具管理前端项目多个packges管理工具 地址:https://www.npmjs.com/package/lerna 实现内联:lerna bootstrap 实现全局内联: "lerna exec npm link --scope odin-cockpit-cli --parallel --include-dependencies"

四,我们简单查看下我们的业务代码

packges-cli npm run freezePkgVer ** 此命令的用户固定packge的版本号,此开发者说,不控制版本号时,版本自动升级引起开发者的库与之冲突 继续 。。。 packges-cli-plugin-build npm run build .... 代码不逐一讲解 在这里推荐掘金发现一个比较好的wenpack配置分享给大家,基础,优化,这么写loader,plugin很棒 webpack:https://juejin.cn/post/6844904031240863758
作用:webpack-chain:能将本地配置build的相关信息根据引入的 project.config.js 进行二次配置 webpack-chain: https://www.npmjs.com/package/webpack-chain,相关文档 .... 知识点 .... 1,webpack-plugin:可以定义全局插件,definePlugin 2, // 灯塔监控要求所有按需加载js需要允许跨域访问,才能监控错误

        crossOriginLoading: 'anonymous',
        <br />

3,njk模版具有继承的属性,好处:用户继承了之前的属性,同时也可以自定义模版
.... npm run dev
cas:实现本地单点登录,不需要hobber