ribbitjs / ribbit

Standalone CLI for easy static file generating and route management.
MIT License
33 stars 1 forks source link

Set-up process.ENV builds #19

Open mrbut opened 5 years ago

mrbut commented 5 years ago

Task

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