@lopatnov/sample-library

Demonstrates a sample library template


Keywords
TypeScript, JavaScript, library, typescript-library, javascript-library, jest, rollup, template
License
Apache-2.0
Install
npm install @lopatnov/sample-library@1.0.0

Documentation

@my-templates/sample-library Twitter

npm NPM version License GitHub issues GitHub forks GitHub stars GitHub top language

Build and Test package Publish NPM package Libraries.io dependency status for latest release

Patreon sobe.ru LinkedIn

The TypeScript library template. Click "Use this template on GitHub".

Install

https://nodei.co/npm/@my-templates/sample-library.png?downloads=true&downloadRank=true&stars=true

npm install @my-templates/sample-library

Browser

<script src="//my-templates.github.io/TypeScript-Library/dist/library.min.js"></script>

Import package to the project

TypeScript

import sampleLibrary from "@my-templates/sample-library";

JavaScript

var sampleLibrary = require("@my-templates/sample-library");

package.json

Change variables:

  • name
  • description
  • umdName
  • libraryFile
  • main
  • module
  • types
  • homepage
  • repository
  • bugs
  • keywords

GitHub publish configurations

  • npm_token
  • github_token

Configure commands

npm run build

npm run watch

npm run test

Demo

See, how it's working: https://runkit.com/lopatnov/sample-library

Test it with a runkit: https://npm.runkit.com/@my-templates/sample-library

Rights and Agreements

License Apache-2.0

Copyright 2019–2021 Oleksandr Lopatnov