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.

Install dependencies in production mode before deploying

See original GitHub issue

Right now we are just deploying the app as it is, but npm supports installing the deps in production mode, which halves the size of the zip at least by half.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
NickSeagullcommented, Oct 12, 2020

@sanskar-p then I’d change the type of config to BoosterConfig.

The project dir would process.cwd() because its where the user will use the tool. We cannot assume that the name will be booster because we don’t know the project name of the user in that point, but we can assume that it will be executed from the root of the project

1reaction
NickSeagullcommented, Oct 12, 2020

Yes, what @Fecony said it is right. The scripts folder doesn’t exist when the user installs the CLI tool, it has to be inside of the command like @Fecony pointed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install Node.js Dependencies for Production ...
NPM offers an option which allows to only install app dependencies required for production environment. Use one of the following commands to ......
Read more >
Installing Dev Dependencies with npm: Beginners' Guide
Dependency is an object that contains the library, which your project requires for production environments and functioning effectively.
Read more >
How do you prevent install of "devDependencies" NPM ...
The npm install command will install the devDependencies along other dependencies when run inside a package directory, in a development environment (the ......
Read more >
Do npm dependencies and devDependencies effect your ...
A: Both dependencies and devDependencies are installed to the local node_modules folder on a yarn install or npm install , but only dependencies...
Read more >
Installing dependencies | Yarn
yarn install is used to install all dependencies for a project. The dependencies are retrieved from your project's package.json file, and stored in...
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