So I said over in the rebase readme file that you don't need an installer. You don't. You don't need this shit at all. Don't fucking clutter your system with yet another thing that you're not gonna use.
Alright man chill! You wanna use this go for it.
Ok, first things first, this is a global installer. You can't run this local to your project because this will literally install your project. Don't even ask for that feature. It would have to literally eat itself to work that way. Do this:
$ npm install rebase-installer -g #global bitches
So let it do its thing, it won't take long. Once it's done you're ready to start using it.
There's literally one command here. I didn't even make a --help
because that would have taken more time than I gave a shit to do for this thing.
$ re:new <folder> --<yarn|npm>
By default I assume you use NPM, but you can use yarn if you'd like too.
That's it.
Yeah, ok. Assume you want to install a new Re:Base project on a folder called sites
that happens to be located in your users
folder on your computer. Here's what you do:
$ cd ~/sites
# from the ~/sites folder
$ re:new silly-project
Done. That's it.
Now you'll have a new folder called ~/sites/silly-project
with all your shit ready to go.
$ re:new silly-project --yarn
Srly?
$ re:new
That'll just drop everything in an empty folder.
Oy! Yes!
$ re:new --yarn
That uses yarn
and drops everything in the current directory.
Nope. The installer will kick you out. The folder needs to be empty, we're not going to overwrite stuff you gotta manually clone the rebase project in this case.
Fin.
The MIT License (MIT) Copyright (c) 2018 Joe Cianflone
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.