GithubHelp home page GithubHelp logo

Add ES6 -> ES5 build step about favicons HOT 5 CLOSED

davewasmer avatar davewasmer commented on July 21, 2024
Add ES6 -> ES5 build step

from favicons.

Comments (5)

haydenbleasel avatar haydenbleasel commented on July 21, 2024

Ughhh I hoped nobody would pick up on this and just upgrade to Node 4.x haha. But yeah you're right. Do you reckon you could help out with a PR on this? I'm not sure the best way of doing it. Otherwise I can probably figure it out next week sometime.

from favicons.

davewasmer avatar davewasmer commented on July 21, 2024

Sorry 😉

Happy to PR if I can find the time. I'd suggest something like https://github.com/jmeas/es6-node-boilerplate - I've used similar boilerplates in the past. Basic idea is to setup gulp (or something similar) to compile (as well as test/lint/code coverage if you'd like) everything from src/ into dist/. Then you .gitignore the distributed files, and .npmignore the source files.

Can't promise when I'll get to it exactly, but hopefully soon ish

from favicons.

haydenbleasel avatar haydenbleasel commented on July 21, 2024

Hey @davewasmer, fixed in [email protected]. Just require('favicons/es5'). The helpers file is still in ES6 though. Not sure how to go about that.

from favicons.

davewasmer avatar davewasmer commented on July 21, 2024

I haven't been able to test it yet, but my guess is that won't work. Unless the consuming app has done something like require('babel/register'), when your es5.js file attempts to require('./helpers'), it's going to try to parse that file, and will hit errors on the es6 syntax.

from favicons.

haydenbleasel avatar haydenbleasel commented on July 21, 2024

@davewasmer I've updated Favicons to use an ES5 helpers file until ES6 is completely supported.

from favicons.

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.