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 installcommand to install all of the dependencies for the build process. -
As a developer, I should be able to run the
gulp scriptscommand 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 stylescommand 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 scriptsorgulp stylescommands 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 imagescommand 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 cleancommand at the command line to delete all of the files and folders in thedistfolder. -
As a developer, I should be able to run the
gulp buildcommand at the command line to run theclean,scripts,styles, andimagestasks with confidence that thecleantask completes before the other commands. -
As a developer, I should be able to run the
gulpcommand at the command line to run the "build" task. -
As a developer, I should be able to run the
gulp servecommand 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 watchcommand, thescripttask 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 scriptscommand 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.
