startmeup
v0.1.7
Published
Jumpstart coding by downloading any git repo (sub)folder
Downloads
1
Readme
startmeup
Jumpstart coding by downloading any git repo (sub)folder
$ npx startmeup repo[:branch] [repoSubfolder] [localFolder]
(see Usage)
$ npx startmeup starter [localFolder]
(see Starters)
Features
✓ Download from any git repo - Github, Bitbucket, Gitlab and custom git servers supported
✓ Repo subfolder support - Keep multiple starters in one repo
✓ (Optional) No git clone needed - If you bundle code as startmeup.bundle.zip
✓ (Optional) Shorthand support - Run $ npx startmeup <starter>
for starters registered in starters.json (see below)
Starters
Just run
$ npx startmeup <starter>
(Add your own starters)
CDK
- cdk-stack-starter - Sensible, minimalistic CDK Stack Starter (TS)
NPM
- ts-npm-starter - Self-publishing Typescript NPM package starter
Typescript
- ts-starter - Typescript starter with nodemon & jest
Usage
1. The universal way
$ npx startmeup github.com/aGuyNamedJonas/cdk-stack-starter
Works for Github, Gitlab, Bitbucket and any git repository.
2. The fast way
$ npx startmeup github.com/aGuyNamedJonas/cdk-construct-starter
Startmeup automatically checks for the presence of a startmeup.bundle.zip
in the repo (subfolder). If a bundle is present this avoids a time consuming git-clone.
Creating a startmeup.bundle.zip
3. The convenient way
$ npx startmeup cdk-stack-starter
For any startmeup.bundle.zip
bundle registered in /starters
, you can simply run $ npx startmeup <starter>
.
Full usage
Run startmeup without args to see usage ($ npx startmeup
)
Usage:
$ npx startmeup repo[:branch] [repoSubfolder] [localFolder]
$ npx startmeup starter [localFolder]
Options:
repo Repository to download from - has to be one of:
github.com/<user>/<repo>
gitlab.com/<user>/<repo>
bitbucket.org/<user>/<repo>
https://<path to repo>.git
https://<path to bundle>/startmeup.bundle.zip
starter Starter name of registered starter
branch (Optional) Branch to use (default: main)
repoSubfolder (Optional) Repository subfolder (default: .)
localFolder (Optional) Local folder to download to (default: CWD)
Creating a startmeup.bundle.zip
Only works on Github, Gitlab and Bitbucket (not on custom or self-hosted git servers)
By adding a startmeup.bundle.zip
file to your repo (or subfolder), you can significantly speed-up the usage of your starter (avoids having to run git-clone):
How to create a startmeup.bundle.zip
cd
into your starter's (sub)folder- Run
$ zip -r startmeup.bundle.zip . -x ".git/*" -x "startmeup.bundle.zip"
(Includes hidden files, excludes .git folder) - Commit & Push
- Run
$ npx startmeup github.com/your-user/your-repo <subfolder>
- startmeup will now detect your bundle and download that instead of doing a full git clone
Register your starter
After your created a startmeup.bundle.zip
bundle (see above), you can make it even more convenient for people to use by adding to /starters
.
Now everyone can download your starter by simply running $ npx startmeup <starter>
.
Starters are auto-merged upon validation & automatically added to the growing list of starters at the top of this README.
See Registering your starter in the /starters
README.
Why?
I love the convenience that tools like create-react-app
and cdk init
provide by downloading starter-templates for you, that let you quickly start coding.
I wanted the same convenience for building, reusing & sharing my own starter-templates.
Contribute
License
MIT