GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ngekoding/ts-starter-library: Starter template to create typescript library

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.husky
.husky
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
commitlint.config.js
commitlint.config.js
 
 
eslint.config.js
eslint.config.js
 
 
jest.config.js
jest.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

ts-starter-library

Starter template to create typescript library.

Features

We've already taken care of the configuration so you can dive straight into building your dream library.

  • ESLint: Auto fix for formatting with @antfu/eslint-config.
  • Commitlint: Commit message conventions.
  • Jest: Unit testing.
  • Bumpp: Version management.
  • Output: CommonJS and ESM.

Getting started

  1. Create new repository by clicking Use this template.
  2. Complete creating repository based on the library that will you build like name and description.
  3. Clone the repository to your computer.
  4. Open and modify package.json to fit your library: name, description, author, etc.

Make sure the library name is available on NPM registry. Check it by opening npmjs.com and search for the library name, and if there is no package found, so it is available to use.

The repository name and description is mostly the same as what we use in the package.json, so you can check the availability when creating the repository.

  1. Start building your library

Publishing

Before publishing the library, it is good to make sure the library running well by making a test. You can found the example in test directory.

Publishing to NPM registry needing an account, so if you don't have an account yet, visit the NPM sign up to create one.

  1. Login

Open terminal and run the npm login command.

npm login

Complete the login process as prompted.

  1. Publishing
npm run release

You will prompted to choose the library version. It is good to follow the semantic versioning.

If all goes well, you will get a message telling that the library is successfully published to the NPM registry.

Further more

What we do above is creating unscoped public packages like many general NPM packages. Then you can found detailed about this topic in Contributing packages to the registry.

License

MIT License © 2024-PRESENT Nur Muhammad

About

Starter template to create typescript library

Topics

js-librarylibrary-templatets-library

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.