Just learned this:

mkdir -p new-project/{src,doc,tst}

tree new-project

new-project/
├── doc
├── src
└── tst

@DrOps HOWTO make a tiniest project skeleton: `mkdir -p new-project && cd new-project && echo '{name: "new-project", version: "0.0.0"}' > package.json`

@zyabin101 I made it a little bit more tiny:
mkdir -p new-project && cd $_ && echo '{name: "'$_'", version: "0.0.0"}' > package.json

@zyabin101 $_ means most recent parameter, so it is always the name used in the mkdir

@DrOps

`mkdir $1 && cd $_ && echo '{name: "'$_'", version: "0.0.0"}' > package.json`

I should put this up on GitHub and call it `smolproject`

@zyabin101
For all kind of projects that need some kind of scaffolding, I prefer "cookiecutter"

github.com/audreyr/cookiecutte

Sign in to participate in the conversation
Mastodon

Invite-only Mastodon server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!