- Initialises a Yarn repository with jest installed.
-
Now with option to install Typescript!
-
Need to have Typescript globally installed -
npm install -g typescript
- Now with added Inquirer funtimes.
- OPTIONAL Needs Github CLI tools to run https://github.com/cli/cli:
brew install gh-
Need to authorise
GH CLI. -
Can also create a repo and add URL.
- Install:
npm install -g pg-yarn
- Run:
npm run pgyarn <project-name> [<github-url>]- URL is optional.
- If URL is supplid and is a valid Github repo, the project will add, commmit, and push an original commit to the repo.
- If URL is not a valid Github repo, the project will be created without a remote.
- Create update:
npm pack
- Install:
npm install -g ./pgyarn-<version number>.tgz
NB - if installing more than once, --force tag is useful. Can change version and install that instead.
- Then, in the folder you want to create your repo in:
pgyarn <project-name> <valid-empty-github-url>