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

brickyard3

v2.2.2

Published

plugin framework for building extendable and flexible web apps or back-end services.

Downloads

3

Readme

brickyard3

Dependency Status DevDependency Status

npm version License

brickyard3 是一个基于插件式架构的前端代码管理与构建框架工具,是面向产品线开发的代码共享与分化的集成解决方案。

简介

此核心库只完成几项核心功能:

  • 作为命令行工具,调用用户指定且已安装的子命令。如brickyard install ****
  • 作为配置收集工具,生成一个运行时配置对象,提供给子命令使用。
  • 提供一个函数工具集。

使用

  1. 用户仓库需要安装此核心库以及需要用到的子命令[可选](dev,release...)
npm install brickyard3 brickyard-command-dev brickyard-command-release brickyard-command-install -S
  1. 用户仓库的代码目录结构需要如下安排(类似)
├─ bricks (name configurable)
│   ├── brickyard-plugins
│   └── awosome-app
├── recipes (name configurable)
│   └── awosome-app (program-specific config)
├── by-conf.js (optional)
└── package.json
  1. 项目开发需按如下步骤:
# 安装插件依赖
brickyard install awesome-app

# 启动开发流程
brickyard dev awesome-app
# 启动发布流程, 不需要预先 install
brickyard release awesome-app
  1. 项目生成文件目录结构
├── dist
│   ├── build-awesome-app
│   │   └── bower_components
│   └── release-wcg
│       ├── bower_components
│       └── www

www目录里面就是可打包的发布目录

Note: 由于开发模式下使用的是内存文件系统,并不会生成目标文件,所以build-***目录下只有安装的bower packages

配置

配置可进行多级覆盖,具体优先级如下(从上到下递增):

framework default config
user config (optional)
program config (optional)
command line config (optional)

user config 默认是运行目录下 by-conf.js,除非用户指定了 config 参数

user config 文件的输出配置中可以定义 commands 属性,用于指定需要加载的命令

	module.exports = {
		commands: [
			'brickyard-command-dev',
			{
				name: 'brickyard-command-test',
				path: '/home/hal/app/lib/test.js' // absolute path
			}
		]
	...
	}

项目插件

/bricks(或者其他指定文件夹内)放置插件,/recipes(或者其他指定文件夹内)放置目标程序的组装计划。

程序由插件组装而成。

插件可以直接是一个npm package,或者以bower管理依赖的package

组装计划需要是以下格式:

module.exports = {
	id: 'awesome-app',
	plugins: [
		'brickyard-plugins',
		'awosome-app'
	],
	config: {
		...(the same as config)
	}
}

如果指定了id,会取代其目录名成为组装计划的名称。

详细设计

参见 设计文档