GithubHelp home page GithubHelp logo

Comments (4)

tomdavidson avatar tomdavidson commented on May 5, 2024 1

Thanks @bitjson . It does and I appreciate your response and the project's help getting me started with TS. I did end up deviating quite abit, including on the testing - https://gitlab.com/td7x/s6

from typescript-starter.

bitjson avatar bitjson commented on May 5, 2024

Hey @tomdavidson – thanks for opening this issue!

I added a note with some additional explanation in: f78fa8a


Testing

By convention, tests in typescript-starter are co-located with the files they test. The project is configured to allow tests to be written in Typescript and your library to be imported as if it were being used by another project. (E.g. import { double, power } from 'typescript-starter'.) This makes tests both intuitive to write and easy to read as another form of documentation.

Note, tests are compiled and performed on the final builds in the standard Node.js runtime (rather than an alternative like ts-node) to ensure tests pass in that environment. If you are using ts-node in production, you can modify this project to skip test compilation.


Does that answer your question?

from typescript-starter.

bitjson avatar bitjson commented on May 5, 2024

Hey @tomdavidson that looks like a fantastic project, thanks for sharing!

Mind if I link to your project from the readme? f0d349a

I've been hoping to add a section of projects using parts from this starter, and yours has some great examples of alternative configurations!

from typescript-starter.

tomdavidson avatar tomdavidson commented on May 5, 2024

from typescript-starter.

Related Issues (20)

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.