The bash script makes use of a few Linux commands and a single npm package that I installed globally called uglifyjs. So this script should only be used in a Linux system that has cat, xargs, and echo which should be more or less all of them as they are common commands. Along with the Linux commands nodejs, and npm installed, and uglifyjs should be installed, if not it should be installed globally.
This will just then be a brief overview of the contents of the other files.
Here is the top.txt file the contains the top part of the desired final html file.
As I continue to work on the example, and add additional plug-ins to the source code I will of course need to update this list. The list is also something that I find myself moving from one project to another, I should make this script at the root of my canvas example folder, but I will still need this file, and also maybe the top and bottom files to be part of each example.
I then have the bottom part of the html file. For now this is just the closing script take, along with the other typically closing tags in an html document. Still I like having control over defining what the bottom of the resulting file should be. Along with the top.txt, and files.txt, this should be part of each project that I use this with.
The shebang at the top of the file will allow for me to just directly call the build.sh file if I make it executable. However the alternative is to call it with bash directly, in any case I can just have the output spit out to the console, or use Linux redirection to create a file.
with that said I have been doing this:
I have been enjoying using this script as a way t automate this aspect of development on top od doing what I was doing before which was taking the time to manually put the build together. I have not ben working on that many projects so far where doing so was that time consuming, but with some projects it was starting to add up a little.