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

frn-cli

v0.1.0

Published

使用工具来辅助提升代码质量已经成为软件开发过程中的必备流程,然而数量繁多的工具,复杂的配置流程却会花费开发人员大量时间。

Downloads

6

Readme

介绍

使用工具来辅助提升代码质量已经成为软件开发过程中的必备流程,然而数量繁多的工具,复杂的配置流程却会花费开发人员大量时间。

frn-cli是一个用于创建crn/npm项目的命令行工具,并自动为项目集成babel,commitizen,tslint,typescript,jest,es6-plato等代码质量工具,提高工程师的开发效率。

安装

npm install -g frn-cli
npm install -g commitizen
npm install -g es6-plato

使用

frn-cli init

新建项目或在已有项目上初始化crn/npm项目,安装依赖并添加配置。

frn-cli init [options] <projectName>

Options:

    -n, --npm          创建一个普通的npm package(默认创建crn项目)
    -r, --redux        创建redux项目,该选项只在创建CRN项目时有效,使用该选项会额外安装redux,react-redux依赖,并创建适合redux项目的目录结构
    -e, --exist        在已有项目中写入配置(默认新建一个项目)
    -A, --no-override  在已有项目中写入配置时,不覆写已有配置
    -t, --taobao       使用淘宝npm源安装依赖,这会加快依赖的安装速度
    -v, --verbose      展示详细日志
    -q, --silent       隐藏非关键日志
    -h, --help         output usage information

其他

使用commitizen

commitizen github,commitizen用于规范git commit格式,通过git cz命令使用。

命令

初始化项目成功后,frn-cli在package.json中写入了若干命令,可以通过npm run <script>方式调用。

  • test:通过npm run test使用,运行测试用例。
  • tsc:通过npm run tsc使用,编译ts代码。
  • tsw:通过npm run tsw使用,编译ts代码并watch。
  • lint:通过npm run lint使用,运行tslint检查代码。
  • tsdiagnosis:通过npm run tsdianosis使用,运行tsc检查ts代码语法。
  • check:通过npm run check使用,等同于运行npm run lintnpm run tsdianosis命令。
  • plato:通过npm run plato使用,运行es6-plato检查代码可维护性。