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

lucio

v1.0.0-beta.19

Published

react and dva cli tool

Downloads

108

Readme

Lucio

NPM version NPM downloads

更新日志

开始

安装
$ npm install lucio -g

命令

lucio 是一个丰富的 cli 工具,提供 init、dll、server、build 和 eslint 五个命令,分别用于项目构建,编译dll,本地调试,部署构建,代码检查

项目构建 (待调试)
$ lucio init <pkgname>
编译dll
$ lucio dll
本地调试
$ lucio server
部署构建
$ lucio build
代码检查
$ lucio eslint

配置

默认配置
{
  entry: './src/index.js',
  output: './dist',
  template: './src/index.ejs',
  commons: [],
  prefix: '',
  postcssPlugins: [],
  commonBabelPlugins: [],
  devBabelPlugins: [],
  prodBabelPlugins: [],
  prodBabelPlugins: [],
  babelLoaderDir: [],
  resolvePlugins [],
  proxy: {},
  svgSpriteDir: undefined
}
entry
指定 webpack 入口文件
output
配置输出路径
template
配置 HtmlWebpackPlugin 的 template 属性。
commons
公共库,用于本地调试时构建dll以及部署构建时提取
prefix
请求url前缀
postcssPlugins
配置额外的 postcss 插件
默认 postcss 配置
{
  autoprefixer({
    browsers: [
      '>1%',
      'last 4 versions',
      'Firefox ESR',
      'not ie < 9',
    ]
  })
}
commonBabelPlugins
公共的 babel plugins 配置
默认 babel plugins 配置
{
  plugins: [
    'add-module-exports',
    'react-require',
    'syntax-dynamic-import',
  ]
}
devBabelPlugins
本地调试环境下额外的 bebel plugins 配置配置
prodBabelPlugins
部署构建环境下额外的 bebel plugins 配置配置
babelLoaderDir
babel loader 目录
resolvePlugins
配置 webpack 的 resolve 属性。
proxy
代理
svgSpriteDir
svg-sprite 目录