Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burke/minidev
Like dev, only lots worse!
https://github.com/burke/minidev
Last synced: 3 days ago
JSON representation
Like dev, only lots worse!
- Host: GitHub
- URL: https://github.com/burke/minidev
- Owner: burke
- License: mit
- Created: 2019-11-06T01:40:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-02T16:53:32.000Z (4 months ago)
- Last Synced: 2024-10-26T21:33:17.835Z (16 days ago)
- Language: Ruby
- Homepage:
- Size: 195 KB
- Stars: 66
- Watchers: 7
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minidev
`minidev` is a *reeaaaaallly* limited public replacement for Shopify's internal `dev` tool.
Where most of `dev` is concerned with `dev up`, which provisions dependencies and various other
things, there's a little bit of accessory function that's pretty easy to replicate, which is what's
been done here.## install
```bash
curl https://raw.githubusercontent.com/burke/minidev/master/install.sh | bash
```this writes minidev to ~/.local/minidev and sources it from your .profile
## notes
`minidev` implements:
* `dev cd`
* `dev clone`
* Project-local commands (`dev {build,style,console,server,test,etc.}`).`minidev` does not:
* Implement `dev up` at all
* have adequate help
* try very hard to prevent randomly crashing
* be goodUse `minidev` by adding `source /path/to/minidev/dev.sh` to your shell config.
Everything this does is far more limited than `dev`, including that it won't self-update.
If you want to use the same dotfiles at home and at work, you may enjoy something like:
```bash
if [ -f /opt/dev/dev.sh ]; then
source /opt/dev/dev.sh
elif [ -f ~/src/github.com/burke/minidev/dev.sh ]; then
source ~/src/github.com/burke/minidev/dev.sh
fi
```You can config the default directory for `dev clone` and `dev cd` by calling `dev config set default.github_root `, otherwise it defaults to `~/src/github.com`.
## contributing
Are you ex-Shopify? Feel free to send patches to implement the thing the way you
remember it working.Are you current Shopify? There's really very little I could point to in `dev`
itself that couldn't be made open source. You can pretty much feel free to copy
code directly over here, just try not to introduce a whole lot of complexity.In general we don't want minidev to do _different_ things than `dev`, except to
the extent necesary for simplicity or a bit less Shopify-specificness.