https://github.com/endel/library-template.ts
Template for authoring TypeScript modules/libraries. Uses Webpack + Karma + Mocha for testing.
https://github.com/endel/library-template.ts
typescript typescript-library
Last synced: about 1 year ago
JSON representation
Template for authoring TypeScript modules/libraries. Uses Webpack + Karma + Mocha for testing.
- Host: GitHub
- URL: https://github.com/endel/library-template.ts
- Owner: endel
- License: mit
- Created: 2016-06-17T22:26:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T21:28:02.000Z (about 9 years ago)
- Last Synced: 2025-04-01T13:38:55.653Z (about 1 year ago)
- Topics: typescript, typescript-library
- Language: JavaScript
- Homepage: https://medium.com/@endel/authoring-typescript-javascript-libraries-e9ac8a9d1add
- Size: 39.1 KB
- Stars: 38
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TypeScript Library Template
===
Template for authoring TypeScript modules for the browser. This template
includes:
- TypeScript as authoring language
- Mocha as testing framework
- Karma for browser testing
- Webpack for bundling your static library.
Usage
---
Clone and install the dependencies:
```
git clone https://github.com/endel/library-template.ts.git
cd library-template.ts
npm install
```
Start [karma](https://github.com/karma-runner/karma) test-runner and watch for
changes.
```
npm start
```
Run `mocha` in node environment.
```
npm test
```
Generate distribution files and typing definitions.
```
npm prepublish
```
Bundling your static library
---
```
npm run bundle
```
License
---
MIT