1.0.0 • Published 5 years ago
@graphql-schema/federation-spec v1.0.0
npm-package-template
A template for npm packages built in TypeScript
Setting Up the New Repo
- Hit "Use This Template" to create the repository
- Enable CircleCI
- Enable Change Log Version using My Change Log Version Installation
- In Settings
- Disable "Wikis"
- Disable "Projects"
- Disable "Allow merge commits"
- Disable "Allow rebase merging"
- Enable "Automatically delete head branches"
- Create a new branch
- Commit initial code to the branch (be sure to replace all refernces to npm-package-template, and remove these instructions from the README)
- Push the new branch and create a PR
- In Settings -> Branch Protection, create a new rule
- Use "master" as the branch name pattern
- Enable "Require status checks to pass before merging"
- Select the unit tests and changelog as required
- Enable "Include administrators"
- Enable "Restrict who can push to matching branches"
- Merge the PR
Installation
yarn add @forbeslindesay/npm-package-template
Usage
import add from '@forbeslindesay/npm-package-template';
const result = add(2, 3);
// => 5
1.0.0
5 years ago