1.0.0 • Published 4 years ago

@graphql-schema/federation-spec v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm-package-template

A template for npm packages built in TypeScript

Setting Up the New Repo

  1. Hit "Use This Template" to create the repository
  2. Enable CircleCI
  3. Enable Change Log Version using My Change Log Version Installation
  4. In Settings
    1. Disable "Wikis"
    2. Disable "Projects"
    3. Disable "Allow merge commits"
    4. Disable "Allow rebase merging"
    5. Enable "Automatically delete head branches"
  5. Create a new branch
  6. Commit initial code to the branch (be sure to replace all refernces to npm-package-template, and remove these instructions from the README)
  7. Push the new branch and create a PR
  8. In Settings -> Branch Protection, create a new rule
    1. Use "master" as the branch name pattern
    2. Enable "Require status checks to pass before merging"
    3. Select the unit tests and changelog as required
    4. Enable "Include administrators"
    5. Enable "Restrict who can push to matching branches"
  9. Merge the PR

Installation

yarn add @forbeslindesay/npm-package-template

Usage

import add from '@forbeslindesay/npm-package-template';

const result = add(2, 3);
// => 5