Giter Site home page Giter Site logo

Comments (3)

bahmutov avatar bahmutov commented on May 29, 2024

Look at the code in https://github.com/facebook/create-react-app/blob/0ee4765c39f820e5f4820abf4bf2e47b3324da7f/packages/react-scripts/bin/react-scripts.js#L21-L33 and trace what happens when you call react-scripts -r moduleName start for example - it runs Node with -r moduleName then the react scripts JS file

from instrument-cra.

zorgick avatar zorgick commented on May 29, 2024

Yes, I see now. I lack knowledge in node arguments. Apparently, I thought that the flag belongs to react-scripts, not directly to node. Thanks for the help!

from instrument-cra.

zorgick avatar zorgick commented on May 29, 2024

@bahmutov Although, I have a problem that have already been mentioned in issues. Here, nyc.exclude rule in package.json is ignored, when this package is used with react-scripts.

However, if I use react-app-wired with customize-cra and babel-plugin-istanbul in a separate .babelrc file, everything works as expected, and the coverage is not collected for excluded files.

from instrument-cra.

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.