Yarn Dependency Management: The Complete Guide
4.5 (132 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4,167 students enrolled

Yarn Dependency Management: The Complete Guide

Learn to use Yarn for project Dependency Management and Publish your own packages via the NPM registry.
Bestseller
4.5 (132 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4,167 students enrolled
Created by Ray Viljoen
Last updated 5/2020
English
English [Auto-generated]
Current price: $70.99 Original price: $109.99 Discount: 35% off
13 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 1.5 hours on-demand video
  • 3 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Manage project dependencies with Yarn
  • Understand Semantic Versioning
  • Create & Publish JavaScript modules/packages to the NPM registry
  • Migrate projects from NPM to Yarn
Course content
Expand all 22 lectures 01:26:34
+ Overview
4 lectures 10:32

Course Introduction

Preview 01:45

An overview of Yarn as a Dependency Manager:

  • Why dependency managers are used
  • Differences between Dependency managers & Package managers
  • What makes Yarn unique
Preview 04:25

A short intro to the lesson structure & prerequisites for following along.

Course Structure & Prerequisites
01:22

Install Yarn on both Mac or Windows.

Also covers alternative cross-platform installation options.

Installing Yarn
03:00
+ Yarn Basics
7 lectures 34:13

Learn the most basic add and remove commands to add or remove a project dependency.

Adding & Removing Packages
02:13

Understand the purpose of the package.json file and how to initialise a project from scratch.

Preview 04:23

An overview of different types of Yarn dependencies and how to selectively install development or production dependencies.

Dependency Types
04:11

Supplemental Lesson:

Understand the format & purpose of semantic versions, and how to specify semantic version ranges in the package.json file.

Semantic Versioning
06:56

Learn to use semantic version ranges in the package.json file and lock project versions using the yarn.lock file.

Lock file & Dependency Versions
08:19

Assess the version state of dependencies for more reliable and predictable upgrades.

Assessing Dependency Upgrades
03:18

Learn to use the why command for better understanding your dependency structure.

Exploring Dependencies
04:53
+ Advanced Features
6 lectures 21:37

Manage Yarn's configuration via the config command and create project-specific configurations using a .yarnrc configuration file.

Yarn Config
04:22

Create project-specific scripts in order to execute common project tasks in a consistent and reliable manner.

Scripts
04:37

Remove unwanted dependency files with the autoclean command, and configure automatic cleaning via .yarnclean file.

Autoclean
04:26

Use the global command to install packages globally, making use of Yarn as a package manager rather that a dependency manager.

Global Packages
02:11

Learn the basics of inspecting, cleaning and configuring Yarn's package cache.

Yarn Cache
02:13

Migrate NPM project to Yarn with the import command and check the resulting dependency structure with the check command.

Migrating from NPM
03:48
+ Publishing Packages
4 lectures 19:22

Initialise a new package, add the package logic and install the required dependencies.

Preview 04:40

Learn to test a new Yarn package locally, prior to publishing it to a package registry.

Testing Packages
05:42

Learn the complete process of publishing a new package to the NPM package registry:

  • Create a GitHub repo for the package
  • Sign up to NPM
  • Authenticate & Publish the new package to NPM
Publishing to NPM
06:24

Update package versions and push new releases to NPM.

Publishing New Package Versions
02:36
+ Outro
1 lecture 00:50

An outro consisting of:

  • Expected course updates & additions

  • Course Feedback & Suggestions

  • Links to more Stackacademy.tv Courses

Bonus Lecture: Feedback & Stackacademy.tv Courses
00:50
Requirements
  • Beginner level JavaScript, NodeJS & JSON
  • Basic usage of the command line
  • A text editor and the latest version of NodeJS
Description

Learn modern dependency management with Yarn.
Gain all the skills needed to manage, migrate and publish your own JavaScript packages or projects.

This course is suitable for ANY developer wanting to learn Yarn or gain expert knowledge in managing and publishing JavaScript packages.

  • Learn to use Yarn at an expert level
  • Manage project dependencies
  • Learn aspects of dependency management such as Semantic Versioning
  • Cover the near-entire Yarn command line API, learning one module at a time
  • Learn to migrate NPM managed projects or packages to Yarn


An invaluable skill for any JavaScript Developer looking to improve coding skills and expand career opportunities.

Yarn is an extremely popular and relatively new dependency/package manager for JavaScript projects that solves common issues with dependency management. The project was released by Facebook and is maintained by a group of top JavaScript developers with clear goals for the future of Yarn.

This course will teach you every aspect of the Yarn command line API and related concepts.

You will be able to start using Yarn in you projects immediately. You will also learn to publish and maintain your own JavaScript modules/packages.


Content and Overview

With 20 concise and practical lectures, this course will provide a COMPLETE understanding of Yarn and Dependency Management as a whole.

  • It is suitable for anyone with experience of working on JavaScript projects.
  • Basic command line usage and an understanding of core JavaScript-related concepts is required. (JSON, Basic Node.js etc.)

The course starts with a short introduction and overview of Yarn and also the development environment used in lessons.

The main body of the course then covers the 3 individual sections of the Yarn Command Line API and some supplemental lessons in-between.

These 3 sections include:

  1. Foundational Yarn Commands and Concepts
  2. Advanced Commands and Features
  3. Publishing JavaScript Packages/Modules to the NPM registry

Upon completion of this course you will have the practical skills to immediately start implementing Yarn as your primary dependency manager and also publish your very own projects to the NPM package registry.

This course is to the point and everything is demonstrated in the most simple, yet practical ways, to help you become an expert at Yarn and JavaScript dependency management.

Who this course is for:
  • Developers looking to learn the concepts of dependency management and dependency versioning
  • All developers NOT already using a dependency manager in their projects.
  • Anyone already using NPM, wanting to switch to a more modern alternative in Yarn
  • Node module developers wanting to publish their packages to the NPM registry