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

@wannasky/dep

v2.0.0

Published

项目依赖管理

Downloads

51

Readme

dep

管理svn/git项目依赖

为什么需要

在同时使用svn和git进行模块管理的项目,需要对依赖的多个模块进行管理,这时候就需要一个.dep.json的文件来管理项目的依赖及版本。同时亦方便了项目构建及部署。

如何使用

  1. dep init

    初始化,根据提示输入信息后确认生成.dep.json文件

  2. dep config

    添加svn/git用户名和密码

    // 添加svn/git用户名和密码
    dep config -t svn -u username -p password
       
    dep config -t git -u username -p password
      
    // 从env读取并添加svn/git用户名和密码
    dep config -t svn -e -u SVN_USER_NAME -p SVN_PASSWORD
       
    dep config -t git -e -u GIT_USER_NAME -p GIT_PASSWORD
      
    // 查看当前svn/git用户名和密码
    dep config -l
  3. dep add

    添加一个svn/git模块依赖

    // 添加hato模块到hato目录
    dep add hato:https://svn.nsfocus.com/svn/cloud/Hato/trunk/html/tembin/
    
    dep add hato:https://github.com/svn/cloud/Hato/trunk/html/tembin.git
       
    // 添加hato模块到rename目录
    dep add hato:https://svn.nsfocus.com/svn/cloud/Hato/trunk/html/tembin/ ./rename
    
    dep add hato:https://github.com/svn/cloud/Hato/trunk/html/tembin.git ./rename
       
    // 添加指定版本的
    dep add hato:https://svn.nsfocus.com/svn/cloud/Hato/trunk/html/tembin/ -r 86354
    
    dep add hato:https://github.com/svn/cloud/Hato/trunk/html/tembin.git -r 86354
  4. dep remove

    删除一个依赖模块

    dep remove report
  5. dep install

    安装所有项目依赖

  6. dep list

    查看项目依赖