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

@evkj/bugatti-notify

v1.0.0

Published

通知布加迪版本信息

Downloads

2

Readme

打通布加迪示例

step1: 安装npm包

npm install @qianmi/bugatti-notify --save-dev --registry=http://registry.npm.qianmi.com 

step2:package.json配置

设置postpublish钩子函数,当项目发布npm包时自动通知布加迪;

{
  "name": "@qianmi/official-pc",
  "version": "1.0.0-RELEASE",
  "description": "千米官网项目",
  "scripts": {
    "postpublish": "./node_modules/.bin/bugattiNotify"
  },
  "publishConfig": {
    "registry": "http://registry.npm.qianmi.com"
  }
}

命令执行时, 可以指定version或从package.json中取默认值

#读取package.json中的配置
./node_modules/.bin/bugattiNotify

#指定id及版本号; 
./node_modules/.bin/bugattiNotify -v 1.0.0-RELEASE -id official-pc -name official-pc

实践项目:

官网静态页

魔方建站

前端项目部署套路一二

前端项目较轻.但该有的路数不能少,在部署与运维时常会遇到这下面的问题:

Q1 如何部署;

Q2 如何做到版本控制;

Q3 静态页项目如何与布加迪结合;

下面分针对两个场景进行演示

场景1: nodeWeb项目部署流程;

TODO

场景2: 静态页项目部署流程;

通过bugatti,把静态页直接放到tengine

1.使用布加迪模板ansible_static_server模板, alt text

  1. 在项目中配置package.json
{
  "name": "@qianmi/official-pc",
  "version": "1.0.0-BETA-notify.1",
  "description": "千米官网项目",
  "scripts": {
    "build:test": "fis3 release test",
    "build:prod": "fis3 release prod",
    "build:watch": "fis3 release test -wL",
    "postpublish": "DEBUG=* ./node_modules/.bin/bugattiNotify"
  },
  "publishConfig": {
    "registry": "http://registry.npm.qianmi.com"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@qianmi/bugatti-notify": "^0.0.1",
    "fs-extra": "^5.0.0"
  }
}

官网静态页

3.最终结果

布加迪控制页面 alt text 访问官网

TODO

版本发布与控制应该在服务端打包 发布版本;

参考文档

2016-09-22 布加迪-对接记录