question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Documentation] --use-npm & --scripts-version

See original GitHub issue
  • I have checked the issues & could’t find the mentioned below.

There should be mention of the following;

  • --use-npm in the documentation, if someone want’s to opt out of yarn to use npm instead.
  • How to use --scripts-version when over-riding with your own custom react-scripts.

npx create-react-app --scripts-version CUSTOM_SCRIPT_PATH my-project-name --use-npm

I am more than happy to make a PR for this. (I would need some guideance though 😃)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
adeelibrcommented, Jul 11, 2019

@mrmckeb I made an initial poor draft on --use-scripts flag & wrote it here https://gist.github.com/adeelibr/304da37d0e22a687b1bf6f09c6f10ee6 Can you kindly give me some direction here =)

1reaction
mrmckebcommented, Jun 23, 2019

Hello @adeelibr. We don’t support .template.dependencies.json officially, but the other methods are supported - but not documented.

I think we need to document scripts-version at some point, but we need to do it carefully as that feature is not for beginners.

I’d be happy to accept a PR for the first two (excluding template dependencies for now) if you’d like to raise one. I can work on it with you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

scripts - npm Docs
scripts. How npm handles the "scripts" field. Select CLI Version: ... Scripts from dependencies can be run with npm explore <pkg> -- npm...
Read more >
Documenting build commands with NPM scripts
Alongside a readme, NPM scripts can be used document the different build commands that are available for a particular project.
Read more >
NPM: How to document your package.json scripts
npx why is a tool created to fix the problem of documenting package.json scripts. If we have to run the scripts from the...
Read more >
npm-run-all/run-s.md at master - GitHub
A CLI command to run given npm-scripts sequentially. This command is the shorthand of npm-run-all -s . Usage: $ run-s [--help | -h...
Read more >
npm, pnpm, and Yarn | WebStorm Documentation - JetBrains
Alternatively, open the relevant package.json file in the editor or select it in the Project tool window and choose Run 'npm install' from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found