Giter Site home page Giter Site logo

Comments (16)

aMarCruz avatar aMarCruz commented on August 20, 2024

@davidpelaez , thanks. riot-compiler v2.3 already has parser detection, we are working in improve this.

@GianlucaGuarini , I think it is better include a user-friendly message in the cli for one-time detection. what do you think?

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

I think it is better include a user-friendly message in the cli for one-time detection. what do you think?

@aMarCruz yes of course but I need to know the errors coming from the compiler, is there a way to make that method public? And how do I know that es6 requires [email protected] ? I think we can find a really smooth solution here ;)

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

@GianlucaGuarini , parsers._req is called with the type (es6, coffee, etc) and returns the function, or null without throw error if require fails, and babel has a version property.

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

Ok I will try to implement this feature in the riot-cli thank you

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

BTW @aMarCruz I would also like to implement 3 new options to export only css, js or html from the tags compiled. Do we have already a method in the compiler to get these strings?

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

no, but is easy in the compile function if you pass an option for this, returns an object instead a string. But for multiple tags?
Edit: maybe an array of objects.

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

It sounds great!
Basically the only thing I need is to get any of these variables. I will let you decide what's the best way to achieve it

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

ok, an object with html, css, js...attributes too? and the name for the option?

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

@aMarCruz What do you mean?

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

with an option, e.g. opts.separate, compile() can return an array of objects instead a js string

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

Yeah it 's ok thanks

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

I push the code in the feature/parts branch

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

you can call the option opts.entities = true

from compiler.

aMarCruz avatar aMarCruz commented on August 20, 2024

done. I complet the test and merge tomorrow. good night/day :)

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

I will work on it this weekend so take it easy

from compiler.

GianlucaGuarini avatar GianlucaGuarini commented on August 20, 2024

This issue was fixed in the riot-cli

from compiler.

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.