Giter Club home page Giter Club logo

npm-template's Introduction

npm-template Continuous Integration License Renovate enabled

A template repository for a publicly published NPM package written in TypeScript with linting, unit tests (including coverage) and publishing from a GitHub Action.

Creating a repository from this template repository

After clicking "Use this template" on this repository, there are some steps you need to take to make it your own.

First, search for and replace all references to jameswilddev/npm-template and npm-template. Update the description in package.json.

Then, ensure that you have a NPM_TOKEN GitHub secret configured with automation access to the package to be published.

Dependency updates

Renovate is configured to automatically merge updates to NPM dependencies once CI passes; this should be safe given that by default, 100% test coverage is required.

Renovate will not be able to detect changes to this template repository, however. To apply updates, you must do (first time):

git remote add template https://github.com/jameswilddev/npm-template

Then, every subsequent time:

git fetch template
git merge template/origin
git push

Developing

After cloning, run npm install to install dependencies. Run npm test to run ESLint, compile TypeScript and run tests. This can be started from Visual Studio Code by pressing (cmd/ctrl) + shift + B.

The expected file structure is that all code will be grouped into a directory per module, with an index.ts or index.tsx file containing the implementation, and a unit.ts or unit.tsx file containing tests. It is recommended to import from the root index.ts or index.tsx file as this will result in full coverage.

Publishing

Create a GitHub release, and the GitHub Action will automatically publish to NPM using the GitHub release's tag name as the NPM package's version.

npm-template's People

Contributors

renovate-bot avatar jameswilddev avatar renovate[bot] avatar

Watchers

 avatar  avatar

npm-template's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/continuous-integration.yaml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • @types/jasmine 4.0.3
  • @typescript-eslint/eslint-plugin 5.31.0
  • @typescript-eslint/parser 5.31.0
  • del-cli 5.0.0
  • eslint 8.20.0
  • eslint-config-prettier 8.5.0
  • eslint-plugin-prettier 4.2.1
  • jasmine 4.3.0
  • npm-run-all 4.1.5
  • nyc 15.1.0
  • prettier 2.7.1
  • typescript 4.7.4
  • node >=12.13.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.