Build system scaffolding for bundling JS for delivery in a webapge.
- In Terminal, navigate to your projects directory, such as:
cd ~/Projects
NOTE: The path (
~/Projects
) may be different on your machine. Usepwd
to see which directory you are in.
- Clone the repository with:
git clone [email protected]/BenningtonCS/es6-build-kit.git
- Go inside the cloned project with:
cd es6-build-kit
- Download required node modules with:
npm install
- Build the project with:
gulp build
A webpage should open up with "Hello World" text on a white background.
Most of the time you should just need to run gulp build
,
but this runs some additional tasks (which you can see with gulp --tasks
).
- Run
gulp lint
to run a linter on the JavaScript source code (insrc
). - Run
gulp scripts
to bundle the JavaScript source code. - Run
gulp copy
to move the HTML/CSS to the distribution (dist
) directory. - Run
gulp open
to open theindex.html
page in the distribution directory.