Giter VIP home page Giter VIP logo

ws's People

Contributors

rbuck avatar rbuck-som avatar

Watchers

 avatar

Forkers

rbuck-som

ws's Issues

Add feature to add post-checkout (activation) hooks

Feature Request

The original version of ws has .once and .activation scripts. Provide a means to add activation scripts to a repo, provide an online list of supported activations.

Problem

Some programming languages require specific environment setup. Examples include:

  • Go with GOPATH
  • Python with pyenv
  • Ruby with rbenv
  • Node.js with NPM

Each of these options provide the means to separate and isolate development environments. What better way to manage these than on a per workspace basis.

Proposed Solution

Have users declare a .post-checkout-config.yaml file in their project, and wire this into a post-checkout Git hook.

Having a YAML file and following idioms found in pre-commit satisfy static dependencies (such as updating pip, npm, rb, godeps) but it won't resolve the environment variable issues. The best I can think of to resolve this is to place an activation script into the ws etc directory so that upon workspace refresh it will be picked up.

Implement the hook in simple Python to apply the changes to the workspace as required.

The YAML syntax for the implementation can be simple, such as that used in precommit.

Adding activation hooks is simple as adding a new section to the file.

The implementation can largely be forked from the fantastic pre-commit project.

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.