Git Product home page Git Product logo

domain-changer's Introduction

Domain changer

domain-changer is a node-based CLI, to manage different configurations of your .npmrc .gitconfig and .bowerrc files.

This package is based on symlinks to your home folder. You can create your own folders via file explorer, or let domain-changer create them for you.

This is a tipical folder structure for domain-changer

.
├── ...
├── home                      # Your home folder
│   ├── domains               # The folder where your domains live
│   │    ├── work             # Domain for your work 
│   │    └── home             # Domain for your home
│   │         ├── .npmrc      # .npmrc file with your home configuration
│   │         └── .gitconfig  # .gitconfig file with your home configuration
│   ├── .npmrc                # .npmrc read by the system, will be a symlink to the /domains/ACTIVE_DOMAIN/.npmrc file
│   ├── .gitignore .          # .gitignore read by the system, will be a symlink to the /domains/ACTIVE_DOMAIN/.gitignore file

CONSIDERATIONS

domain-changer needs to create symbolic links to the files in your home folder, so before using it, consider remove the original ones, and move them to a domains folder. If not, it will not work.

Installation

npm install -g domain-changer

Usage

dom

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

ToDo

  • Test on Windows
  • Make testing
  • Allow to delete domains from CLI
  • Add some fancy ascii art
  • Allow to move non-symlinks to a domain folder
  • Create a travis pipeline
  • Add eslint

License

MIT

domain-changer's People

Contributors

vlaraort avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.