Skip to content

[Proposal] Add Support for profiles #30

Description

@Armaldio

The command line could support profiles config files

This could work as follow:

config.js
config.dev.js
config.prod.js
config.custom.js

config.js

module.exports = {
	"electron": "6.0.1",
	...
}

config.dev.js

module.exports = {
	"electron": "6.0.1",
	"window": {	
	    "fullscreen": false, // no fullscreen on dev
	},
	...
}

config.prod.js

module.exports = {
	"electron": "6.0.1",
	"developer": {
    	"showConstructDevTools": false, // no devtools on prod
	},
	"window": {	
	    "fullscreen": true, // fullscreen on prod
	},
	...
}

config.custom.js

module.exports = {
	"electron": "5.0.0", // custom electron version
	...
}

Then you can specify profile on command:

$ efc build -p custom

That will merge config.js with config.custom.js

$ efc build -p dev

That will merge config.js with config.dev.js

Activity

  1. self-assigned this
    on Aug 30, 2019
  2. added a commit that references this issue on Sep 4, 2019
    5030d18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions