Join Ray Villalobos for an in-depth discussion in this video Creating a package.json file, part of Gulp.js, Git, and Browserify: Web Project Workflows.
…So it's time to set up our project and there's a couple of ways to do this.…We could start it either locally, or on GitHub.…Now, I tend to start all my projects locally.…So I'm going to show you how to do it that way.…I'll start by creating a folder on my Desktop.…I'll call this workflows and whenever you're working on…a project, it's customary to add a packag.json file.…This will store some basic information about the application we're working on.…Things like the name, description and diversion number.…Now, we could create this file ourselves, but no JS…has a convenient generator that will do it for us.…
Now, to do this we need to go into our terminal application.…Remember that on a Windows machine, you want to…do a search for the node.js command prompt.…From there we want to switch to the folder that we just created.…On a Mac you can do this a variety of different ways.…If the terminal application is not running, the easiest…way is to drag the folder into the terminal.…That opens up the terminal inside that folder, and…
- Why workflow management?
- Processing tasks with gulp-coffee
- Importing libraries with Browserify
- Processing Sass and Compass
- Issuing tasks in sequence
- Watching changes to files
- Adding static reloads
- Setting up environment variables
- Minifying HTML
- Compressing images
Skill Level Intermediate
Q: When using the exercise files with the "git add" command on a PC, why do I receive warnings saying "LF will be replaced by CRLF"?
A: When running Unix files on a Windows workstation, the text formats are not exactly the same. Line Feeds (LFs) have to be converted to "Carriage Returns + Line Feeds.”