Warning
This package has been deprecated in favor of @form8ion/github
VCS scaffolder for projects to be hosted on GitHub
- Features
- Usage
- Contributing
When authentication is provided, a repository will be created on GitHub, assuming one does not already exist.
This tool configures repository settings by generating the settings file for use by probot/settings. The settings in the file will be applied, along with those in the account-level file, once the generated file is pushed to GitHub in the default branch.
Issues will be created in the repository for tasks that should be completed after acaffolding is complete
$ npm install @travi/github-scaffolder --prod
This plugin leverages the .netrc strategy for octokit. Be sure to add your personal access token to leverage the GitHub API integration benefits of this plugin.
- Be sure to install for the user or organization account that you are scaffolding the new project for.
- Enable the settings app for all repositories in the account
The settings file generated by this tool assumes that it is extending an account level config
- Ensure that you have created a
.github
repository in your account - Create an account-level settings file
in the
.github
repository at the location.github/settings.yml
within the repository- for an organization account, this is a good example
- for a user account, this is a good example
import {scaffold} from '@travi/github-scaffolder';
(async () => {
await scaffold({
projectRoot: process.cwd(),
name: 'foo',
owner: 'travi',
description: 'This is my awesome project',
homepage: 'https://github.com/travi/foo#README',
visibility: 'Public',
tags: ['foo', 'bar'],
nextSteps: [
{summary: 'Do not forget to do this!'},
{
summary: 'Remember to do that',
description: `Take these steps:
- [ ] step 1
- [ ] step 2`
}
]
});
})();
path to the root of the project
Name for the repository
Name of the account for the repository
Short description of the project
URL of the project homepage
Whether the repository should be public or private. If provided, must be 'Public' or 'Private'.
List of tags to be used as repository topics
TODO list to be filed as issues
String to be used as the title of the created issue
Markdown content for the in-depth description of the issue
$ nvm install
$ npm install
$ npm test