All Projects → popomore → Projj

popomore / Projj

Licence: mit
Manage repository easily.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Projj

Nexus Oss
Sonatype Nexus OSS
Stars: ✭ 240 (+16.5%)
Mutual labels:  repository, repository-management
Nexus Public
Sonatype Nexus Repository Manager; Open-source codebase mirror
Stars: ✭ 902 (+337.86%)
Mutual labels:  repository, repository-management
ferryd
Fast, safe and reliable transit for the delivery of software updates to users.
Stars: ✭ 43 (-79.13%)
Mutual labels:  repository, repository-management
Docker Nexus3
Dockerized version of Nexus Repo Manager 3
Stars: ✭ 917 (+345.15%)
Mutual labels:  repository, repository-management
Yona
Project Hosting SW, DEMO:
Stars: ✭ 418 (+102.91%)
Mutual labels:  project-management, repository
Dcrm
Darwin Cydia Repo Manager - v4 redesigned in Django.
Stars: ✭ 188 (-8.74%)
Mutual labels:  repository, repository-management
Vscode Kanban
Kanban board for Visual Studio Code.
Stars: ✭ 191 (-7.28%)
Mutual labels:  project-management
Jira Dependency Graph
Graph visualizer for JIRA tickets' dependencies
Stars: ✭ 194 (-5.83%)
Mutual labels:  project-management
React Antd Admin
Management system with react and ant-design.
Stars: ✭ 190 (-7.77%)
Mutual labels:  hooks
Iosapphook
专注于非越狱环境下iOS应用逆向研究,从dylib注入,应用重签名到App Hook
Stars: ✭ 2,196 (+966.02%)
Mutual labels:  hooks
Taskcafe
An open source project management tool with Kanban boards
Stars: ✭ 2,848 (+1282.52%)
Mutual labels:  project-management
Voyager Hooks
Hooks system integrated into Voyager.
Stars: ✭ 200 (-2.91%)
Mutual labels:  hooks
Use Async Effect
🏃 Asynchronous side effects, without the nonsense
Stars: ✭ 193 (-6.31%)
Mutual labels:  hooks
Scheduler
GPL version of JavaScript Event Calendar
Stars: ✭ 190 (-7.77%)
Mutual labels:  project-management
Git template
Automating your workflow with git
Stars: ✭ 198 (-3.88%)
Mutual labels:  hooks
Decoda
A lightweight lexical string parser for BBCode styled markup.
Stars: ✭ 190 (-7.77%)
Mutual labels:  hooks
Flooks
🍸 A state manager for React Hooks
Stars: ✭ 201 (-2.43%)
Mutual labels:  hooks
Alldemo
🍑 2020全栈学习Demo大合集 包含最新 hooks TS 等 还有umi+dva,数据可视化等实战项目 (持续更新中)
Stars: ✭ 189 (-8.25%)
Mutual labels:  hooks
Reto
Flexible and efficient React Store with hooks.
Stars: ✭ 194 (-5.83%)
Mutual labels:  hooks
Yadm
Yet Another Dotfiles Manager
Stars: ✭ 2,982 (+1347.57%)
Mutual labels:  hooks

Projj

Manage repository easily.

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Why?

How do you manage git repository?

Maybe you create a directory and clone to it. However if you want to clone repository that has same name? Or Do something in every directory like clean?

Projj provide a structure making it easy.

$BASE
|- github.com
|  `- popomore
|     `- projj
`- gitlab.com
   `- popomore
      `- projj

And you can DO everything in repository by Hook.

Feature

  • ✔︎ Add repository using projj add
  • ✔︎ Command Hook
  • ✘ Buildin Hook
  • ✔︎ Custom Hook
  • ✔︎ Run Hook in All Repositories
  • ✔︎ Git Support

Installation

Install projj globally.

$ npm i projj -g

Usage

Initialize

$ projj init

Set base directory which repositories will be cloned to, default is ~/projj.

You can change base directory in ~/.projj/config.json.

Add Repository

$ projj add [email protected]:popomore/projj.git

it's just like git clone, but the repository will be cached by projj. You can find all repositories in ~/.projj/cache.json

also support alias which could config at alias of ~/.projj/config.json:

$ projj add github://popomore/projj

Importing

If you have some repositories in ~/code, projj can import by projj import ~/code.

Or projj can import repositories from cache.json when you change laptop by projj import --cache

Find Repository

projj provide a easy way to find the location of your repositories.

$ projj find [repo]

You can set change_directory in ~/.projj/config.json to change directory automatically.

Sync

projj sync will check the repository in cache.json whether exists, the repository will be removed from cache if not exist.

Hook

Hook is flexible when manage repositories.

Command Hook

When run command like projj add, hook will be run. preadd that run before projj add, and postadd that run after projj add.

Config hook in ~/.projj/config.json

{
  "hooks": {
    "postadd": "cat package.json"
  }
}

Then will show the content of the package of repository.

Only support add now

Define Hook

You can define own hook.

{
  "hooks": {
    "hook_name": "command"
  }
}

For Example, define a hook to show package.

{
  "hooks": {
    "show_package": "cat package.json"
  }
}

Then you can use projj run show_package to run the hook in current directory.

Command can be used in $PATH, so you can use global node_modules like npm.

{
  "hooks": {
    "npm_install": "npm install"
  }
}

Write Hook

Write a command

// clean
#!/usr/bin/env node

'use strict';

const cp = require('child_process');
const cwd = process.cwd();
const config = JSON.parse(process.env.PROJJ_HOOK_CONFIG);
if (config.node_modules === true) {
  cp.spawn('rm', [ '-rf', 'node_modules' ]);
}

You can get PROJJ_HOOK_CONFIG from projj if you have defined in ~/.projj/config.json.

{
  "hooks": {
    "clean": "clean"
  },
  "clean": {
    "node_modules": true
  }
}

Run Hook

projj run clean in current directory.

projj runall clean in every repositories from cache.json

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].