Giter Site home page Giter Site logo

typescript-config's Introduction

@eik/typescript-config

Shared config for TypeScript, used in Eik projects to generate type definitions from JSDoc and test them.

Install

npm install --save-dev typescript @eik/typescript-config

Usage

Create two files in your root directory.

tsconfig.json (assuming source in lib/):

{
  "extends": "@eik/typescript-config/module.json",
  "include": ["./lib/**/*.js"],
  "compilerOptions": {
    "outDir": "types"
  }
}

tsconfig.test.json (assuming tests in tests/):

{
  "extends": "@eik/typescript-config/test.json",
  "include": ["./tests/**/*.js"]
}

You should have a similar setup in your package.json:

{
  "scripts": {
    "types": "run-s types:module types:test",
    "types:module": "tsc",
    "types:test": "tsc --project tsconfig.test.json"
  },
  "dependencies": {
    "npm-run-all": "4.1.5"
  }
}

typescript-config's People

Contributors

wkillerud avatar semantic-release-bot avatar

Watchers

Trygve Matland Amundsen  avatar Trygve Lie avatar Tor Brekke Skjøtskift avatar flatoy avatar

typescript-config's Issues

Dependency Dashboard

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

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @eik/eslint-config to v1.0.2
  • chore(deps): update dependency eslint to v9.9.0
  • chore(deps): update dependency semantic-release to v24.1.0

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @eik/eslint-config 1.0.0
  • @eik/prettier-config 1.0.1
  • @eik/semantic-release-config 1.0.0
  • eslint 9.8.0
  • prettier 3.3.3
  • rimraf 6.0.1
  • semantic-release 24.0.0
  • typescript >= 5

  • 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.