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

@co2-lab/mws

v1.0.13

Published

A command line to organize some repositories under a centralized repository.

Downloads

12

Readme

MWS - Modular Working Space

A command line to organize some repositories under a centralized repository.

One More Option

  • Different from git submodules you can manage every project as a normal git repo.

  • Different from mono repo you can create some repositories for you project and manage them centralized.

Install

using npm

$ npm i -g @co2-lab/mws

using yarn

$ yarn global add @co2-lab/mws

using pnpm

$ pnpm add -g @co2-lab/mws

How it works

You wanna create some repositories for your project...

example:

https://github.com/co2-lab/module-1
https://github.com/co2-lab/module-2

but you wanna manager all of then on the same IDE instance like a workspace, then you can create a centralizer repo.

You can create a git repo using the mws cli or using a existing git repo. For now let's consider the scenario of you create a git repo using the mws cli...

In any folder run the command mws create and answer the questions...

example:

$ mws create --verbose
$ What will be the workspace name ? my-project-workspace
$ What will be the name of the repositories folder ? modules
$ Do you want to push it to github ? yes
$ What Github password or Personal Access Token can I use ? *******
$ What will be the Github project name ? my-project-workspace
$ Do you want to make the repo private ? no
$ Starting workspace creation...
$ Creating github repo...
$ Done...

This command will create a folder named my-project-workspace with the mws config file inside, create a git repo named my-project-workspace (https://github.com/co2-lab/my-project-workspace) and push the content to the created repository.

Now, all you need to do is add the modules to your new workspace.

example:

$ mws add-repo --verbose
$ What is the git url of the repo that you want to clone ? https://github.com/co2-lab/module-1
$ What should be the folder name where it should be cloned ? module-1
$ Connect to ... ? Branch
$ pull from ... ? main
$ Starting to add a repo...
$ Done...

$ mws add-repo --verbose
$ What is the git url of the repo that you want to clone ? https://github.com/co2-lab/module-2
$ What should be the folder name where it should be cloned ? module-2
$ Connect to ... ? Branch
$ pull from ... ? main
$ Starting to add a repo...
$ Done...

This commands will clone the git repos within the my-project-workspace/modules folder.

example:

my-project-workspace
 ├─ modules
 │   ├─ module-1
 │   │   └─ ...
 │   └─ module-2
 │       └─ ...
 └─ mws.json

If you prefer use a existing git repo, run the command mws init.