
Course Introduction
An overview of Yarn as a Dependency Manager:
A short intro to the lesson structure & prerequisites for following along.
Install Yarn on both Mac or Windows.
Also covers alternative cross-platform installation options.
Learn the most basic add and remove commands to add or remove a project dependency.
Understand the purpose of the package.json file and how to initialise a project from scratch.
An overview of different types of Yarn dependencies and how to selectively install development or production dependencies.
Supplemental Lesson:
Understand the format & purpose of semantic versions, and how to specify semantic version ranges in the package.json file.
Learn to use semantic version ranges in the package.json file and lock project versions using the yarn.lock file.
Assess the version state of dependencies for more reliable and predictable upgrades.
Learn to use the why command for better understanding your dependency structure.
Manage Yarn's configuration via the config command and create project-specific configurations using a .yarnrc configuration file.
Create project-specific scripts in order to execute common project tasks in a consistent and reliable manner.
Remove unwanted dependency files with the autoclean command, and configure automatic cleaning via .yarnclean file.
Use the global command to install packages globally, making use of Yarn as a package manager rather that a dependency manager.
Learn the basics of inspecting, cleaning and configuring Yarn's package cache.
Migrate NPM project to Yarn with the import command and check the resulting dependency structure with the check command.
Initialise a new package, add the package logic and install the required dependencies.
Learn to test a new Yarn package locally, prior to publishing it to a package registry.
Learn the complete process of publishing a new package to the NPM package registry:
Update package versions and push new releases to NPM.
An outro consisting of:
Expected course updates & additions
Course Feedback & Suggestions
Links to more Stackacademy.tv Courses
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.
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.
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:
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.