You’ll be required to set up a Gulp build process to prepare the website for deployment.
@Esteban-Towerz -- @milestake 💌 👍
-
As a developer, I should be able to run the
npm install
command to install all of the dependencies for the build process. -
As a developer, I should be able to run the
gulp scripts
command at the command line to concatenate, minify, and copy all of the project’s JavaScript files into an all.min.js file that is then copied to the dist/scripts folder. -
Source maps will be generated. Also, all of the project’s JavaScript files will be linted using ESLint and if there’s an error, the error will output to the console and the build process will be halted.
-
As a developer, I should be able to run the
gulp styles
command at the command line to compile the project’s SCSS files into CSS, then concatenate and minify into an all.min.css file that is then copied to the dist/styles folder. -
As a developer, when I run the
gulp scripts
orgulp styles
commands at the command line, source maps are generated for the JavaScript and CSS files respectively -
As a developer, I should be able to run the
gulp images
command at the command line to optimize the size of the project’s JPEG and PNG files, and then copy those optimized images to the dist/content folder. -
As a developer, I should be able to run the
gulp clean
command at the command line to delete all of the files and folders in thedist
folder. -
As a developer, I should be able to run the
gulp build
command at the command line to run theclean
,scripts
,styles
, andimages
tasks with confidence that theclean
task completes before the other commands. -
As a developer, I should be able to run the
gulp
command at the command line to run the "build" task. -
As a developer, I should be able to run the
gulp serve
command on the command line build and serve the project using a local web server. -
As a developer, I should be able to run the
gulp watch
command, thescript
task should run and the current page should be reloaded in the browser when a change is made to any JavaScript (*.js) file.
- As a developer, when i run the
gulp scripts
command at the command line, all of my project’s JavaScript files will be linted using ESLint and if there’s an error, the error will output to the console and the build process will be halted.