"npm init" script to create a new folder and repository for an Octokit JavaScript module (plugin, authentication strategy, or otherwise)
npm init octokit-project- Creates a new folder on your machine
- Inits git in the new folder
- Add
LICENSE,CODE_OF_CONDUCT.mdandREADME.mdfiles - Creates a repository
- Adds repository as
git remote add origin <url> - Push the 3 files to main
- Creates a new local branch called
initial-version - Creates a
package.jsonandpackage-lock.json. Installs dev dependencies. - Creates
.gitignore,tsconfig.json - Creates
test/smoke.test.ts - Creates actions for tests and automated releases
- Creates a pull request with further instructions
- Adds branch protection
Pull requests welcome! My longer term goal is to make this script useful for Octokit Plugin developers.