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.

Separate build config from package.json

See original GitHub issue
  • Version: latest
  • Target: mac, win, linux

I think it might be nice thing to consider to separate the build from package.json to a separate file, e.g. build.json. It could be optional in a way that either build key in package.json or build.json would apply if present, similar to what ava has. What do you think?

It could make large package.jsons more readable. If we already have 250 lines in package.json another 50-100 lines for build config make it quite unreadable.

I did a quick search in issues and couldn’t find anything related, so sorry if this has already been discussed here.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
develarcommented, Jan 16, 2017

I am going to add support for json and json5 to be sure that users are happy 😃

0reactions
jakubzitnycommented, Feb 1, 2017

Hi @develar, are there any plans to add --config parameter so the config YAML can have different locations?

Read more comments on GitHub >

github_iconTop Results From Across the Web

When building an application using package.json, how can I ...
One option, is to have two separate deployments of your application - one for development, and one for production. If the source code...
Read more >
Should I put every kind of configuration in package.json file in ...
One way is to store their configuration in package.json . Another way is store this configuration in their special config file, ...
Read more >
package.json - npm Docs
Dependencies are specified in a simple object that maps a package name to a version range. The version range is a string which...
Read more >
How to Create Configurations for Different Environments in ...
Basic setup · Create your package.json file using npm init. · Save the config dependency in your application. · Create your index.js file,...
Read more >
npm, pnpm, and Yarn | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA also lets you run and debug npm, Yarn, and pnpm scripts. ... package.json files in your project, you can build a...
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