GithubHelp home page GithubHelp logo

Comments (8)

jogelin avatar jogelin commented on May 24, 2024 1

It is also useful for typescript but it doesn't generate index.TS...

from create-index.

gajus avatar gajus commented on May 24, 2024

By the looks of it, this change would affect only a few lines of code:

./src/utilities/readDirectory.js:36:        return !_.includes(files, fileName + '.js');
./src/utilities/readDirectory.js:67:        if (!isDirectory && !_.endsWith(fileName, '.js')) {

As long as this feature is implemented sticking to principles of functional programming (without use or global state variables and tested), I don't have any objections against a PR.

from create-index.

gausie avatar gausie commented on May 24, 2024

I figured I would just replace with fileName.matches(/\.jsx?$/)
On 19 Mar 2016 11:05, "Gajus Kuizinas" [email protected] wrote:

By the looks of it, this change would affect only a few lines of code:

./src/utilities/readDirectory.js:36: return !.includes(files, fileName + '.js');
./src/utilities/readDirectory.js:67: if (!isDirectory && !
.endsWith(fileName, '.js')) {

As long as this feature is implemented sticking to principles of
functional programming (without use or global state variables and tested),
I don't have any objections against a PR.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#6 (comment)

from create-index.

gajus avatar gajus commented on May 24, 2024

No, that could have unwanted side-effects, e.g. someone could have Foo.js as entry file and Foo.jsx to contain a template. Not saying it is a good thing to do, but I have seen worse and it is a fairly likely scenario.

from create-index.

Someguy123 avatar Someguy123 commented on May 24, 2024

What's the status of this? @gajus ?

Would be great to just do --filetype=jsx, or if it would just natively do JSX by default.

from create-index.

gajus avatar gajus commented on May 24, 2024

What's the status of this? @gajus ?

Not a priority for me. Will happily accept a PR.

from create-index.

gajus avatar gajus commented on May 24, 2024

It is also useful for typescript but it doesn't generate index.TS...

Would accept a PR.

from create-index.

FDiskas avatar FDiskas commented on May 24, 2024

already implemented

from create-index.

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.