If you’re trying to use https://github.com/csnover/dojo-boilerplate and are getting the following error in the terminal when trying to build:
“-bash: build.sh: command not found”
You probably need to add “./” to “build.sh”. As someone not very Unix savvy this caused me hours of frustration.
So, to elaborate on the instructions under “Quick Start” found in the dojo-boilerplate github project –>
- Clone the repository using git clone –recursive.
[My addition: Or click “clone in desktop” on the right hand side of the git hub page]
- Develop your project in src/ until it is amazing.
- Run build.sh, which will create an awesome optimised build in dist/.
[My addition: Do the following:
- Open the Terminal (assuming you’re on a Mac – sorry, can’t really help if you’re not)
- cd to the boilerplate directory – specifically, you can type “cd” and then, drag the dojo-boilerplate directory into the terminal. This is a shortcut to cd to that directory. Alternatively, you can explicitly type out the directory path, as in “cd /User/uName/dojo-boilerplate”, where “/User/uName/dojo-boilerplate” is the path to your dojo-boilerplate.
- then type “./build.sh” into the terminal.
- you should then see a ton of logs showing that something is happening. Be patient, after about a minute, you will see “Build complete”. Now everything should be compiled in the “dist” folder that was created.
- Upload dist/ for millions of people the world over to enjoy.