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.json
s 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:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am going to add support for
json
andjson5
to be sure that users are happy 😃Hi @develar, are there any plans to add
--config
parameter so the config YAML can have different locations?