Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cham11ng/ts-package-starter

A simple boilerplate starter kit for express api in typescript
https://github.com/cham11ng/ts-package-starter

bun hacktoberfest husky starter typescript

Last synced: about 2 months ago
JSON representation

A simple boilerplate starter kit for express api in typescript

Awesome Lists containing this project

README

        

# @cham11ng/ts-package-starter

Mono-repo collection of utils, library, common and interfaces.

## Setup

1. Generate a GitHub access token with `read:packages` and `write:packages` access.
![image](https://user-images.githubusercontent.com/18543860/66896057-e6477b80-f013-11e9-850d-70c6dedd9881.png)

2. Log in to `npm` with your **GitHub account username** in `Username` and the **generated github access token** in `Password` .
```bash
$ npm login --registry https://npm.pkg.github.com
Username:
Password:
Email: (this IS public)
Logged in as on https://npm.pkg.github.com/.
```

3. :tada: You can now fetch packages from GitHub Registry.

## Usage

To use packages from the private GitHub registry in your repository.

1. Create `.npmrc` file with scope and registry mapping.
```
@cham11ng:registry=https://npm.pkg.github.com
```
2. Install the package
```
yarn add @cham11ng/ts-package-starter
```

## Installation

```sh
bun install
```

## Publish

```sh
yarn publish
```