Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/amir-arad/typescript-boilerplate-library

Generic project boilerplate for TypeScript libraries
https://github.com/amir-arad/typescript-boilerplate-library

Last synced: 4 days ago
JSON representation

Generic project boilerplate for TypeScript libraries

Awesome Lists containing this project

README

        

# Template Typescript library

A library template project

## what's inside
- code written in typescript
- testing done with [Tape](https://www.npmjs.com/package/tape). consider switching to [tape-promise](https://www.npmjs.com/package/tape-promise) for async tests.
- test files are inside the src library
- prettier and eslint
- circleci setup for automatic testing

## Developer instructions

### Installing workspace

to install a development environment, you need to have node.js git installd.
Then, `git clone` this repo locally and run:
```
$ npm install
$ npm test
```
and that's it, you've just installed the development environment!

This project is written with [VSCode](https://code.visualstudio.com/) in mind. specifically configured for these extensions: [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint), [esbenp.prettier-vscode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode). also recommended [CircleCI](https://marketplace.visualstudio.com/items?itemName=jvandyke.vscode-circleci)

### test

`npm run test`

execute all tests.

### clean

`npm run clean`

Removes any built code and any built executables.

### build

`npm run build`

Cleans, then builds the library.

Your built code will be in the `./dist/` directory.