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

generator-rock

v1.0.7

Published

Nodejs fullstack generator, using Express, Webpack, with React or Vue as client framework

Readme

Rock

Rock is a Javascript fullstack generator equipped with following techs: Express, Ejs, Webpack and Gulp. You can choose React, Vue, or jQuery for client frameworks as you wish because webpack configuration has been ready for that.

Rock是一个Express + Webpack 脚手架。可生成简单,稳定的Node服务。

提供了基础的 Server架构,详尽的 Webpack配置,最佳实践,使用者可自由选择前端框架如 React, Vue。

上手简单,文档详尽,开发者友好。

演示

Get Start

支持配置

使用方式

  1. 安装 yorock

     npm install -g yo generator-rock
  2. 使用rock生成一个项目

     yo rock
  3. 启动服务

     npm run dev
  4. 访问 http://localhost:8081

其他命令

  • 生成前端组件

      yo rock:component

yo rock:component

开发文档

  1. Configuration vs. Definition
  2. Directory
  3. Client Module System
  4. Webpack Configuration
  5. Effective Ops
  6. Tests
  7. Let's Rock

项目示例

├── client
│   ├── common
│   │   ├── index.js
│   │   ├── libs
│   │   │   ├── jquery.js
│   │   │   ├── log.js
│   │   │   └── require.js
│   │   └── style.less
│   └── index
│       ├── index.js
│       └── style.less
├── config
│   ├── default.js
│   ├── development.js
│   └── production.js
├── gulpfile.js
├── index.js
├── package.json
├── scripts
│   ├── build
│   │   ├── jenkins.sh
│   │   └── release.sh
│   ├── crontab.sh
│   ├── deploy
│   │   ├── production.sh
│   │   └── test.sh
│   ├── deploy.sh
│   ├── process.production.json
│   └── test
│       ├── coverage.sh
│       └── unit.sh
├── server
│   ├── controllers
│   │   └── index.js
│   ├── server.js
│   └── views
│       ├── index.ejs
│       └── layout.ejs
├── webpack
│   ├── development.config.js
│   ├── production.config.js
│   └── webpack-dev-server.js
└── webpack-assets.json

Dependencies

  • express: Fast, unopinionated, minimalist web framework
  • ejs-mate: Express 4.x locals for layout, partial.
  • morgan: HTTP request logger middleware for node.js
  • winston: A multi-transport async logging library for Node.js

Dev Dependencies

  • babel: Turn ES6 code into readable vanilla ES5 with source maps
  • eslint: An AST-based pattern checker for JavaScript.
  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • mocha: simple, flexible, fun test framework
  • less: Leaner CSS
  • gulp: The streaming build system
  • webpack: Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.
  • webpack-dev-server: Serves a webpack app. Updates the browser on changes.

Thanks