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

pursuit-cli

v0.2.1

Published

CLI for the PURSUIT framework.

Downloads

54

Readme

PURSUIT CLI

CLI for the PURSUIT framework.

PURSUIT: A Fast, Advanced and Componentized Front-end Framework, which integrated with:

es6 + babel + webPack + gUlp + Regular + mcsS + rgUI + eslinT + stateman + karma + mocha + expect.js + spritesmith + fontcustom + ...

NPM Version Dependencies NPM Download

http://rainfore.me/pursuit is not only a home page for PURSUIT but also a simple demo built by PURSUIT.

Install

npm install -g pursuit-cli

QuickStart

pursuit init demo
cd demo
npm install
pursuit dev

Commands

  • pursuit help:查看帮助
  • pursuit init <repo>:初始化一个仓库

以下命令在仓库目录下运行:

  • pursuit build:构建项目。需要将入口MCSS文件和JS文件放置在src/page目录中。

  • pursuit doc:生成文档(待完善)。需要将Markdown文档写在每个组件的demo目录中。

  • pursuit lint:验证代码风格。需要在运行目录中配置.eslintrc文件。

    • -f, --fix:验证时自动修复
  • pursuit icon:生成雪碧图(CSS Sprites)和字体图标(Font Icons),为了支持大型项目,所以按照多组图标来生成。在src/icons/png目录中的每一个文件夹为一组雪碧图的原始图标,在src/icons/svg目录中的每一个文件夹为一组字体图标的原始图标,生成的文件名和选择器都按此文件夹命名。比如将一组雪碧图的原始图标放在src/icons/png/sprite/目录中,运行命令后,雪碧图会生成为dest/img/i-sprite.png,对应的CSS会生成为src/icons/css/i-sprite.css;将字体的原始图标放置在src/icons/svg/font/目录中,运行命令后,字体和预览网页会生成在dest/fonts目录中,对应的CSS会生成为src/icons/css/i-font.css

    • 雪碧图也支持Retina@2x图,只需在每组原始图标文件夹中放入与@1x图对应的@2x图即可。比如在src/icons/png/sprite/目录中有若干*.png,再放入对应2倍大小的*@2x.png图,数量一定要保持一致。
    • 字体图标只支持在Mac和Linux环境下生成,并且需要安装以下包,详见:FontCustom
    # On Mac
    brew install fontforge --with-python
    brew install eot-utils
    brew install woff2
    gem install fontcustom
  • -w, --watch:监听文件变更。以上命令都可以配置此选项(默认不会监听)。

  • -v, --verbose:输出详细信息

  • -V, --version:当前版本

集成命令:

  • pursuit dev:构建项目+生成文档+验证代码风格,始终监听文件,自动修复lint问题。相当于pursuit build,doc,lint --watch --fix。考虑到icon命令使用频率不高,并且某些开发者在Windows下无法使用,所以暂不加入dev命令中。
  • pursuit clean:手动清理所有pursuit命令生成的文件(以上命令默认不会清理生成的文件)。相当于pursuit build-clean,doc-clean,icon-clean
  • pursuit online:清理文件->生成图标->构建项目->运行测试->验证代码风格,永不监听文件。相当于pursuit clean->icon->build->lint