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.

meta: build flags for plugins?

See original GitHub issue

I was thinking that as the number of plugins for balenaSound grows, it may be that rather than just turning off a plugin using SOUND_DISABLE_PLUGIN options in balenaCloud, it might be better to have it so that you can add some kind of build flags / options that stop the builder from building certain plugins that you don’t need.

For example, by default it could add all plugins, but if you only needed the spotify and bluetooth plugins you could add --plugin spotify bluetooth or something like that. Or if you want to disable some plugins you could use --plugin-disable upnp roon for example.

This would have the added benefit of smaller image sizes being built and pulled down to the devices as well - meaning quicker builds and downloads/updates.

I am not sure if this is possible to do with flags, or perhaps via some environment variables on the application?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shawajcommented, Jan 19, 2021

@tmigone I have a feeling I posted this somewhere in a FD thread about the CLI, but I can’t seem to find it now. Will see if I can dig it out!

1reaction
shawajcommented, Jan 2, 2021

@AlexProgrammerDE yeah I agree I think this has wider use cases than just balenaSound so probably makes more sense in the CLI

Would be nice to somehow deal with this through the balenaCloud dashboard when using the deploy button as well. So you can do it all without touching the terminal at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developing Custom Gradle Plugins
A Gradle plugin packages up reusable pieces of build logic, ... Most plugins offer some configuration options for build scripts and other plugins...
Read more >
rollup/05-plugin-development.md at master - GitHub
A Rollup plugin is an object with one or more of the properties, build hooks ... If a meta object is returned by...
Read more >
MkDocs Plugins
MkDocs Plugins . A Guide to installing, using and creating MkDocs Plugins. Installing Plugins . Before a plugin can be used, it must...
Read more >
Build Options - Vite
The default value is a Vite special value, 'modules' , which targets browsers with native ES Modules, native ESM dynamic import, and import.meta...
Read more >
Documentation - tsc CLI Options - TypeScript
Flag Type Default ‑‑allowJs boolean false ‑‑allowUmdGlobalAccess boolean false ‑‑allowUnreachableCode boolean
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