8.1 Compiling the code and developing a build file
To learn about build, See What is the build folder?
Now that we know what a build is all about, let's go ahead and build the newton-raphson simulation.
These are the following steps to make this happen:
Open your terminal (mac) or cmd (windows)
Assuming that the current directory is Desktop and that you have the phetsims directory on your Desktop,
typecd phetsims
to go inside the phetsims directory and then,
typecd newton-raphson
to go inside the newton-raphson directory.
At this point all you have to do is:
typegrunt build --brands=your-brand-name
(Note: put the name of your brand)
This process might take a minute but at the end of it, if you were successful, you should see something like this:
That "Done." means that you're done with building your minified html file and to access it
Just go to yourphetsims
folder
Then open up thenewton-raphson
folder
And look for thebuild
folder:
Open up at
build
folder and then open the folder with your brand name, in this case it wasadapted-from-phet
Inside you’ll find a bunch of files
We are concerned with thehtml
file
However you’ll notice that this folder has 2html
files
The one we’re looking for is this one:
Open it up and voila!