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

fsk-branches

v1.3.4

Published

切换分支工具

Downloads

22

Readme

如果你的nginx里已经配置了concat请删除,该工具会自动生成concat的相关配置

如果你的nginx里已经配置了concat请删除,该工具会自动生成concat的相关配置

开始使用

示例:

列出本端所有分支
fsk-branches
--------------------------------------------
[PC]1. 20150728_jinjj_localdata
[PC]2. 20150730_zouting_serviceOfficial
[PC]3. 20150810_zouting_onekeyrecommendation
[H5]4. 20150807_jinjj_industry


输入序号切换到相应分支
fsk-branches 1

切换到trunk
fsk-branches trunk

切换到h5的trunk
fsk-branches h5trunk

查看其它端的分支

示例:

fsk-branches lpt
--------------------------------------------
[PC]1. 20150731_crab_canid
[PC]2. 20150731_ligen_compverify
[PC]3. 20150811_crab_search
[H5]4. 20150525_sungw_company

查看帮助

fsk-branches help

如果你的nginx没有启动,或者你的机器重启,输入下面命令,启动nginx

fsk-branches nginx   //windows下不需要

安装方式

mac ==================================================

npm install fsk-branches -g
安装完毕后执行
fsk-branches setpwd yourmacpassword  //将yourmacpassword替换成你的mac登录密码
然后执行
fsk-branches setup
进行相关配置即可

windows ==============================================

npm install fsk-branches -g
安装完毕后执行
fsk-branches setup
进行相关配置即可

高级使用方式 (只适用于mac)

当你选择一个序号时,后面可以连接其它命令,这时候不会切换分支,只会执行相应命令。

如:以往需要把某个分支部署到某个环境下会比较麻烦,通过此工具可以实现快速部署;

示例:

fsk-branches 1 fsk-sync -s -h dev1 --pub
---------------------------------------------------------------------------
sync:: dev/h/pc/branches/20150728_jinjj_localdata/v1/js/page/home.js >>>>>> 
10.10.10.37:/usr/local/fe/dev/h/pc/v1/js/page/home.js >>>>>> success

注:支持一次批量部署 可这么写 fsk-branches 1 fsk-sync -s -h q1-q4 --pub
    使用-d一次部署多个分支,因为文件太多,会显得比较慢,
    而且成功信息只会在完成时一次显示出来,不会显示中间的过程。

打开分支所在的目录

fsk-branches 1 open

查看分支的路径

fsk-branches 1 pwd

编译模版

fsk-branches 1 fsk-cmp
fsk-branches 1 fsk-cmp --watch 
注意:由于技术问题,通过watch编译成功后无法获得成功的文字回调,但确实可用

等等