Build system scaffolding for bundling JS for delivery in a webapge.
- In Terminal, navigate to your projects directory, such as:
cd ~/ProjectsNOTE: The path (
~/Projects) may be different on your machine. Usepwdto 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 buildA 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 lintto run a linter on the JavaScript source code (insrc). - Run
gulp scriptsto bundle the JavaScript source code. - Run
gulp copyto move the HTML/CSS to the distribution (dist) directory. - Run
gulp opento open theindex.htmlpage in the distribution directory.