In a node project is common to have a folder structure where files follow some naming convention, to avoid copying and pasting on the folder's name and files you could type ust
to use samples as templates
$ yarn global add ust
Test it by checking the version
$ ust --version
You can also install it on the current project, for developers only.
$ yarn add ust --dev
In this case you'll need to refer to the bin folder
$ node_modules/.bin/ust --version
This project is a work in progess, therefore, it only worries about happy scenarios, so there aren't any exception handling and somethings will change for sure.
We welcome suggestions as issues on github.
On your project's package.json
file create an object ust
, its keys will be considered as 'the name of your samples', and the value the sample itself.
"ust": {
"sampleA": "path\to\file.js",
"sampleB": path\to\directory
}
To duplicate a sample use:
ust use [sample] [name]
You can list all commands from the command line with:
ust list
ust create [sample]
ust delete [sample]