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

omg-rc-cli

v1.2.4

Published

webpack for react build cli

Downloads

18

Readme

介绍

omg-rc-cli 是一套可以快速新建React项目的脚手架,基于webpack二次开发,进行了大量预设配置和功能扩展。

每次我们编写新项目时,都会为配置webpack而烦恼,而且针对不同的目录结构,也会有不同的配置方式,大大影响我们的开发效率,omg-rc-cli就是为了解决这一系列问题而开发的一套React脚手架,能帮助团队能快速的投入开发,并且互相遵从一些目录结构的规范进行页面开发。

更详细的文档可以访问官网

特性

  • 基于webpack构建,并带有合理的默认配置。
  • 集成了前端生态中较好的构建插件。
  • 是一个可全局安装的npm包。
  • 让开发者可专注在撰写应用上,无需再纠结配置问题。

使用环境

node v8.9及以上

功能

  • [x] ES6 | ES7
  • [x] SCSS | CSS
  • [x] Svg
  • [x] React(JSX | TSX)语法转换
  • [x] ESlint
  • [x] TypeScript
  • [x] handlebars
  • [x] html资源自动注入
  • [x] 自动资源切割
  • [x] 图片智能优化,支持使用(png,jpg,jpeg,webp,gif)
  • [x] babel编译缓存
  • [x] 压缩缓存
  • [x] webpack资源依赖高速缓存
  • [x] 多线程编译压缩

起步 && 安装

npm install -g omg-rc-cli

提供命令

# 快速新建项目
omg create

# 快速构建项目
omg build 

# 在指定路径下找找入口文件 匹配方式 **/js/*.(js|jsx)
omg build [targetPath]

# 构建指定目录的代码 匹配方式 js/*.(js|jsx)
omg build [targetPath] [targetDir]