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 🙏

© 2025 – Pkg Stats / Ryan Hefner

aegis-tools

v1.1.7

Published

babel+es6,typescript,react+redux编译工具

Readme

aegis-tools

Amount of Downloads per month Node Version

基于webpack的react项目编译工具,支持babel+es6和typescript,支持less/sass/scss/stylus等样式,内置webpack dev server,支持热加载。内置测试框架karma+mocha+chai+PhantomJS

安装

# 安装在全局,并link到项目中
npm install -g aegis-tools
npm link aegis-tools
# 直接安装到项目中
npm install aegis-tools --save-dev

配置说明

在项目中创建aegis.config 开发版本: aegis.config.dev.js 上线版本: aegis.config.js 单元测试: aegis.config.test.js

开发与线上版本配置说明

{
  web: {
    // 同webpack配置,已内置babel、ts及必要loaders/plugins
    // 此处仅需要配置entry/output等必要自定义配置
    // 若需要使用其他配置,同webpack配置可与默认配置合并,例如CommonChunkPlugin/HtmlWebpackPlugin等
  },
  node: {
    同web配置,内置target: node,为node服务端配置
  },
  autoprefixer: [
    //autoprefixer的配置,以下为默认配置
    'last 2 versions',
    '> 1%',
    'Explorer >= 9',
  ],
  copy: {                       // 复制功能, watch模式时会监听变化
    source: xxx,
    target: xxx
  }
}

单元测试配置说明

{
  testPath: './test',           // 测试代码所在路径,必填
  src: './src',                 // 源码所在路径,必填
  output: './coverage/',        // 测试报告输出路径,必填
  files: ['test/loadTest.js']   // 包含测试代码,必填
  ts: {                         // typescript项目必填,同tsconfig.json配置
    configFileName: "tsconfig.test.json",
  }
}