Git Product home page Git Product logo

Comments (7)

jinwoo avatar jinwoo commented on May 5, 2024

Doesn't something like this work?

npm run check -- src/foo.ts src/bar.ts ...

from gts.

JustinBeckwith avatar JustinBeckwith commented on May 5, 2024

Not really. I want to run npm run check after npm test, just like we set up with init.

from gts.

ofrobots avatar ofrobots commented on May 5, 2024

In my experiments it was around 24 seconds, not minutes :p. Here's a profile that shows something interesting:

image

Why so much idle?

I think it would be better to fix this idle time issue before diving into keeping track of changed files between runs.

from gts.

JustinBeckwith avatar JustinBeckwith commented on May 5, 2024

I am guilty of exaggerating. When you add up the many times I run tests, it hits minutes quick though 😂

from gts.

ofrobots avatar ofrobots commented on May 5, 2024

Okay, so the 'idle' time is actually clang format. It seems that checking format takes longer than running lint, even though clang-format is implemented in C++.

from gts.

usergenic avatar usergenic commented on May 5, 2024

Is it a design choice to suppress the details of tslint and/or clang-format errors?

clang-format reported errors... run `gts fix` to address.

I feel like a default "show all the errors" behavior would be preferable with an option to suppress?

from gts.

ofrobots avatar ofrobots commented on May 5, 2024

We have switched to prettier via #259 (on the next branch). If this is still an issue, it probably belongs on the prettier repo.

@usergenic the details of the formatting errors are now shown in detail.

from gts.

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.