Code Monkey home page Code Monkey logo

fullstack-typescript-boilerplate's Introduction

Moin ๐Ÿ‘‹, I'm geisterfurz007

I code a lot, some say too much. I love TypeScript and Flutter!

  • ๐Ÿ”ญ Iโ€™m currently working on some Discord bot for a happy bunch of people and a small community website that is launching soon (or already has, depending on when you read this) ๐Ÿ‘€

  • ๐ŸŒฑ Iโ€™m currently learning Next.js and properly managing a project certainly too big for me...

  • ๐Ÿ’ฌ Ask me about anything web and app development related!

Connect with me:

6707985

I consider myself proficient in these things:

react javascript typescript css3 html5 dart flutter docker csharp dotnet nodejs git

I also use this stuff a lot:

cypress jest kubernetes nginx graphql postgresql sass tailwind

ย geisterfurz007

I worked on Appwrite during 2021, 2022, and 2023 Hacktoberfest!

I also worked on Novu during 2022 Hacktoberfest!

Stuff built with passion, a lot of music and no caffeine!

fullstack-typescript-boilerplate's People

Contributors

geisterfurz007 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fullstack-typescript-boilerplate's Issues

Automatically pick up resolvers to avoid having to manually export them

Currently you have to export all classes and then collect them in an array to pass to typegraphl's resolvers option.

Ideally these are picked up automatically so you don't have to specify all of them. This could be done with a custom decorator which internally calls the original Resolver from typegraphql.

Implement the @emotion/jest serializer for storyshots to include the style information

Why

Currently snapshots look like this:

  <button
    type="button"
    label="Button"
    class=".chakra-button .css-oqfhsh"
  >
    Button
  </button>

With chakra-button supposedly containing the default chakra styling and css-oqfhsh containing additional style information processed by emotion. Getting to know this additional style information is desirable since it allows for more subtle changes in colors to be detected that Chromatic doesn't seem to pick up.

How?

Following https://emotion.sh/docs/testing, this should be as easy as adding the @emotion/jest/serializer to the snapshotSerializer array, however in tests that didn't seem to suffice.

From my understanding the order of operations needs to be:

  1. Preact renders story to object
  2. Emotion serializer resolves the styles
  3. Preact object is rendered to HTML
  4. Emotion serializer replaces the styles

Step 2-4 should "just" function within the emotion serializer given that the correct snapshot serializer is used from the provided array, getting the story rendered to an object however has been proven to be a bigger issue in earlier attempts.

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.