Skip to content

Plugins/ Entering different modes using node instead of glad

Compare
Choose a tag to compare
@charliemitchell charliemitchell released this 09 May 00:03
· 20 commits to master since this release

This release implements a plugin system for use with glad, and it now supports entering into console/run/interactive mode using node app s -i or node app c. The previous usage is still supported glad s -i or glad c. The reason for this change is that you may have different projects using different versions of glad. If you run glad [args] then it is actually using the glad version from your global install, not the version local to your project. This could potentially cause some issues, as well as some confusion.

Breaking Changes

If you upgrade a pre v0.6.4 version you will need to change a few lines of code.

1: app.js

This should now be.

require('glad').__boot();

2: Deployments

Your existing deployment strategy could be broken. This is because previously, you may have used something like pm2 to deploy your app with a command like pm2 start app.js --name="myapp". This will no longer work, because you need to pass in the mode you want to enter into. that same pm2 script should now be pm2 start app.js --name="myApp" -- s.

3 : Development

As with deployments, you will need to ensure that if you are using something like nodemon etc... that you supply the proper arguments for glad to start if you are starting it with node app instead of glad s -i