Coder Social home page Coder Social logo

Comments (3)

lilactown avatar lilactown commented on June 19, 2024 3

@emmanueljohn1 code-wise, the idea would be to introduce a new macro defnc- which adds :private true to the metadata of the display-name symbol and passes it to defnc.

I should take the time to create contributing docs, but as of now the best way to develop this would be to:

  1. start the dev server via shadow-cljs watch dev
  2. Navigate to http://localhost:8700
  3. Write new macro in helix.core
  4. Test by using defnc- in a new namespace and try and refer to it workshop.core. you should see a compiler warning saying that it's not public

I think you could also add a test for this in helix.core-test:

(defnc- private-comp
  []
  "can't see me outside of this namespace!")

(t/deftest private-component-definition
  (let [metadata (meta #'private-comp)]
    (t/is (:private metadata))))

Not 💯 on that but that's how I would try and tackle it first!

from helix.

emmanueljohn1 avatar emmanueljohn1 commented on June 19, 2024

@lilactown I'm thinking of taking this on. I'm new to the code base. Do you have any tips on how I can tackle this?

from helix.

lilactown avatar lilactown commented on June 19, 2024

Tests can be run via shadow-cljs watch test and navigating to http://localhost:8021

from helix.

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.