https://github.com/anandchowdhary/node.ts
🏷️ Opinionated TypeScript starter for server-side Node.js libraries
https://github.com/anandchowdhary/node.ts
javascript library nodejs starter typescript
Last synced: about 1 year ago
JSON representation
🏷️ Opinionated TypeScript starter for server-side Node.js libraries
- Host: GitHub
- URL: https://github.com/anandchowdhary/node.ts
- Owner: AnandChowdhary
- License: mit
- Created: 2020-03-19T06:50:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T20:31:43.000Z (about 2 years ago)
- Last Synced: 2025-04-23T10:52:23.384Z (about 1 year ago)
- Topics: javascript, library, nodejs, starter, typescript
- Language: TypeScript
- Homepage: https://anandchowdhary.github.io/node.ts/
- Size: 452 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🏷️ Node.ts
Opinionated starter for server-side Node.js libraries, with [TypeScript](https://github.com/microsoft/TypeScript), tests with [Jest](https://github.com/facebook/jest), automated releases with [GitHub Actions](https://github.com/features/actions) and [Semantic Release](https://github.com/semantic-release/semantic-release), and coverage reporting from [Travis CI](https://travis-ci.org) to [Coveralls](https://coveralls.io).
[](https://github.com/AnandChowdhary/node.ts/actions)
[](https://travis-ci.org/AnandChowdhary/node.ts)
[](https://coveralls.io/github/AnandChowdhary/node.ts?branch=master)
[](https://libraries.io/npm/@anandchowdhary%2Fnode.ts)
[](https://github.com/AnandChowdhary/node.ts/blob/master/LICENSE)
[](https://snyk.io/test/npm/@anandchowdhary/node.ts)
[](https://github.com/AnandChowdhary/node.ts)
[](https://unpkg.com/browse/@anandchowdhary/node.ts/dist/index.d.ts)
[](https://www.npmjs.com/package/node.ts)
[](https://www.npmjs.com/package/node.ts)
[](https://github.com/AnandChowdhary/node.ts/graphs/contributors)
[](https://github.com/semantic-release/semantic-release)
[](https://www.npmjs.com/package/@anandchowdhary/node.ts)
## ⭐ Using Node.ts
### Setting up repository
To get started, first generate your new repository. There are two ways to do this:
1. [Generate a repository with Node.ts template](https://github.com/AnandChowdhary/node.ts/generate) is GitHub's preferred way
2. [Import this repository](https://github.com/new/import) keeps the commit history, which you may want
### Updating `README.md`
Make the following changes to this `README.md` (note that these changes are **case-sensitive**):
1. Replace "Node.ts" with your project name
2. Replace "AnandChowdhary/node.ts" with your GitHub "username/repository"
3. Replace "@anandchowdhary/node.ts" with your npm package name
4. Replace "@anandchowdhary%2Fnode.ts" with your npm package name, [URL-encoded](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI)
### Updating `package.json`
Make the following changes to `package.json`:
1. Replace "@anandchowdhary/node.ts" with your npm package name
2. Change the version to "0.0.0" for Semantic Release to take over
3. Replace the description with your npm package description
4. Replace "AnandChowdhary/node.ts" with your GitHub "username/repository"
5. Replace "Anand Chowdhary " with you as the author
6. Replace "anandchowdhary.github.io" with "username.github.io"
### Last steps
1. Add your npm token (`NPM_TOKEN`) as a GitHub secret in your repository ([more details](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/github-actions.md))
2. Log in or sign up on [Coveralls](https://coveralls.io) and [add your repository](https://coveralls.io/repos/new)
3. Remove this section ("Using Node.ts"), keeping the "Usage" section below
4. Replace "AnandChowdhary/eject-dependencies" with your GitHub "username/repository" in `.releaserc.json`
5. [Set up GitHub Pages with `master` branch](https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#choosing-a-publishing-source)
6. Write commits messages using [Gitmoji](https://gitmoji.carloscuesta.me)
## 💡 Usage
Install the package from [npm](https://www.npmjs.com/package/@anandchowdhary/node.ts):
```bash
npm install @anandchowdhary/node.ts
```
Import and use;
```ts
import { nodeTs } from "@anandchowdhary/node-ts";
nodeTs();
```
## 👩💻 Development
Build TypeScript:
```bash
npm run build
```
Run unit tests and view coverage:
```bash
npm run test-without-reporting
```
## 📄 License
[MIT](./LICENSE) © [Anand Chowdhary](https://anandchowdhary.com)