This repository provides a template to simplify creating
new TypeScript NPM packages.
This template has the following properties:
Source files are treated as modules.
For example, if you have a class "SomeClass" in file
"src/some-folder1/some-folder2/SomeClass.ts", then you can import it from
the resulting NPM library via:
It has a code generator script built over
json-schema-to-typescript
,
making it easy to create TypeScript interfaces
based on your json schema and load JSON files into them.
You can check for problems in your code via
ESLint
You can keep your code formatting consistent using
Prettier.
You can debug via
Jest.
Example test files are in "__tests__" folders under the src folder.
You can generate documentation for your project via
Typedoc.