Code Monkey home page Code Monkey logo

Comments (8)

rocktimsaikia avatar rocktimsaikia commented on May 18, 2024

@talentlessguy Is this issue still open? If it is can I work on it ?

from tinyhttp.

talentlessguy avatar talentlessguy commented on May 18, 2024

@rocktimsaikia yes it is, made this one for myself, but it's ok if you do it.

I want to setup a pre-commit hook that would run a linter and tests before commiting

So we should make a lint npm script with eslint ./**/*/src/*.{ts,js} (or any other glob to match all ts and js code)

Also make a script to run linter and tests, e.g. pre-commit script maybe (any other name would fit)

Then, install husky, and run this script on pre commit

from tinyhttp.

rocktimsaikia avatar rocktimsaikia commented on May 18, 2024

@talentlessguy Right. I also had the same idea. Currently, it does not have a separate script for linting so I was gonna create the script and add it to the pre-commit hook along with the test script. But I was not sure about adding the build scripts so waited for your comment before doing any more work on that

from tinyhttp.

rocktimsaikia avatar rocktimsaikia commented on May 18, 2024

@talentlessguy For some reason, most of the tests are failing even tho I haven't even changed any of the code yet. Just running the test script alone logs a ton of failing tests. Also, I did follow the installation guide provided here so not sure what's causing the tests to fail. Can you tell what might be causing these errors ?

Screenshot_15

from tinyhttp.

talentlessguy avatar talentlessguy commented on May 18, 2024

@rocktimsaikia the reason why tests fail is that I need to update the contributing guide...

try running pnpm i -r and pnpm build -r, these should work

from tinyhttp.

rocktimsaikia avatar rocktimsaikia commented on May 18, 2024

@talentlessguy I already tried all of the command solutions. But still the same. Do I need to specifically set some env file configs to run it locally? I think some of the packages are not building upon running the build command. Probably that's why It can't find its corresponding type declarations !!

Screenshot_1

from tinyhttp.

talentlessguy avatar talentlessguy commented on May 18, 2024

@rocktimsaikia try reloading TS Server (Ctrl + Shift + P -> Reload TS Server) in VS Code

from tinyhttp.

talentlessguy avatar talentlessguy commented on May 18, 2024

Closed with #53 🚀

from tinyhttp.

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.