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

sina-bp

v4.1.2

Published

初始化新浪的项目

Downloads

7

Readme

sina-bp

sina构建活动页项目脚手架

node版本需求

node>7.0.0

版本环境介绍

  1. 基于webpack4
  2. 模板引擎更改为mustache
  3. 支持es6 推荐采用es6的包引入规范,可以使用webpack的tree shaking来减少包的体积
  4. 支持ts
  5. 支持pc的雪碧图合成
  6. 支持图片压缩

安装

$ npm install sina-bp -g

用例

//输出用法用例
sina-bp -h

//读取配置文件方式
sina-bp --conf /d/conf/blog-build.conf --name helloworld

//直接根据参数生成
sina-bp --dir /d/workspace 

//也可以直接运行sina-bp,根据提示进行补充属性。
sina-bp

参数说明

  1. conf:配置文件地址,相对路径与绝对路径均可。
  2. name:项目名称。(在没有指定github项目的时候,生效)
  3. dir:在conf存在的情况下,无效,项目生成目录地址。
  4. devHost:测试环境下的host地址
  5. prodHost:资源文件线上地址
  6. prodImgHost:图片类型资源文件线上地址,如果不填默认和prodHost地址一致
  7. tinyPngKeys: 图片压缩服务所需要的key值。数组类型,获取图片压缩服务的key值的地址:https://tinypng.com/developers

config文件说明

# workspace 地址 (必填|暂时仅支持绝对路径)
workspace=/Users/jilong5/playground
# 测试host地址 (必填|需要在host文件中绑定该host。127.0.0.1 test.sina.cn)
devHost=test.sina.cn
# 线上域名地址 (必填)
prodHost=mjs.sinajs.cn
# 线上域名图片地址 (必填)
prodImgHost=img.mjs.sinajs.cn
# qb线上路径地址 (选填)
qbDir=blog/items/
# tinyPngKeys (必填)
tinyPngKeys=key1,key2,key3,ke4