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

qiita-cli

v1.0.4

Published

<p align="left"> <a href="https://badge.fury.io/js/qiita-cli"> <img src="https://badge.fury.io/js/qiita-cli.svg" alt="npm version" height="18"> </a> <a> <img height="20"src="https://img.shields.io/npm/dt/qiita-cli.svg" alt="npm downloads" />

Downloads

9

Readme

qiita-cli

qiita記事管理用のTypeScript製cli

紹介記事

https://qiita.com/antyuntyuntyun/items/278579fd60ecd85f6e4c

インストール

npm install -g qiita-cli

How to use

$ qiita --help

🐥 qiita cli

Command:
  qiita init                    qiitaとの接続設定. 初回のみ実行
  qiita pull:article            既に投稿している記事をローカルにpull(強制上書き)
  qiita new:article             新しい記事を追加
  qiita post:article            ローカルで新規作成した記事を選択的に投稿
  qiita patch:article           ローカルで修正した記事を選択的に投稿
  qiita delete:article(未実装)   選択した記事の削除
  qiita sync(未実装)             ローカルで作成/修正した記事の一括反映および投稿済み記事の取得
  qiita --version, -v           qiita-cliのバージョンを表示
  qiita --help, -h              ヘルプ

Remark:
  コマンドは全て作業フォルダのルートでの実行を想定したものになっています.
  記事の取得・投稿は作業フォルダはコマンド実行場所の作業フォルダ内のarticlesフォルダを基準に実行されます.
  (articlesフォルダはqiita init や qiit pull コマンドで生成されます)

開発環境設定

node仮想環境を用いて開発

# node仮想環境の用意
# ※anyenv: https://github.com/anyenv/anyenv
nodenv install 14.16.0
# パッケージインストール
npm install
# ビルド
npm run build
# package.jsonのbin記載コマンド'qiita'が使えるように
# シンボリックリンクを生成
npm link

VScodeによるホットロード

Ctr + Shift + B でwatch状態に設定可能(設定ファイル: .vscode/tasks.json)

リリースについて

mainブランチに対してのpushをフックにsemantic-releaseを導入している。 npm repositoryへのpublish, GitHubのタグとリリースを自動で生成。

参考: https://dev.classmethod.jp/articles/github-actions-semantic-release-sample/ https://zenn.dev/ucwork/articles/41cf2f20ecd2a0

コミットメッセージの制約

semantic-releaseのために, 以下のコミットメッセージの制約あり. (huskyが現状機能していないので、強制できていないが、強制の必要ないのでよしとする)

|コミットメッセージ|リリースタイプ|バージョン更新例| |:----|:----|:----| |fix(books): 書籍取得関数の取得件数の誤り修正|パッチリリース|v1.0.0 → v1.0.1| |feat(books): 書籍削除関数の追加|マイナーリリース|v1.0.0 → v1.1.0| |perf(books): 取得件数オプションを削除BREAKING CHANGE: これは破壊的変更です|メジャーリリース|v1.0.0 → v2.0.0|

ブランチのマージについて

gitflowに従い開発し、基本的にdevelopに対してはSquash Mergeで、 mainに対しては通常のコミットでマージすること。 developに対してのSquash Merge の際に、コミットメッセージがsemantic releaseが検知できるように、PRタイトルやコミットメッセージを適宜変更すること。

semantic release導入メモ

npm i -D semantic-release semantic-release-cli husky @commitlint/cli @commitlint/config-conventional
npm config get registry  
npx semantic-release-cli setup

参考

qiita api v2
https://qiita.com/api/v2/docs
cli作成参考記事
https://qiita.com/suzuki_sh/items/f3349efbfe1bdfc0c634
https://qiita.com/amay077/items/c19ab5304176326d584a
node-emoji一覧 https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json