Set-up the ribbit build and ribbit b commands to change their build process based on different environment flags.
Details
At the moment ribbit build / ribbit b is only capable of building a default set-up. The reality is that many engineers require different configurations for different node environments. The env configuration structure can be found here https://github.com/team-bimmer/ribbit/issues/15#issuecomment-453666899.
The build script should check for the node environment process.env.NODE_ENV and use the configuration in correlation to the current node environment.
The environments are: production, development, test
The default environment is: development
Task
Set-up the
ribbit build
andribbit b
commands to change their build process based on different environment flags.Details
At the moment
ribbit build
/ribbit b
is only capable of building a default set-up. The reality is that many engineers require different configurations for different node environments. The env configuration structure can be found here https://github.com/team-bimmer/ribbit/issues/15#issuecomment-453666899.The build script should check for the node environment
process.env.NODE_ENV
and use the configuration in correlation to the current node environment. The environments are:production
,development
,test
The default environment is:development