پی اچ پی

Pull Up a Seat: Season 1

Pull Up a Seat: Season 1

Real-life programming isn't always glamorous. You're not always launching fancy new interactive features backed by weeks of marketing and hype. In fact, that's rarely the case. Instead, much of the time, we work on boring fixes and general maintenance of packages and tools that, frankly, not many people use. This is the reality.

In that spirit, for season one of our new "Pull Up a Seat" series, come along as I work on extending the API for my laracasts/cypress package. We'll cover everything from the initial tinkering, all the way up to tagging a new release.

سطح متوسط 7 جلسه آموزشی 00:06:00 ساعت
01
قسمت 1

Game Plan and Cypress Overview

Before we get started tinkering, let's discuss the basic game plan for this mini-series. As part of this discussion, we'll set up a fresh Laravel project and pull in both Cypress and my Laravel integration package.

02
قسمت 2

Begin the Spike

I'm not yet ready to work on the actual package source code. For now, within a demo application, let's spike out the API that I want to offer. Think of this spiking as a way to tinker around, all while knowing that everything we write will be thrown in the trash.

03
قسمت 3

Create a New Cypress Command

Now that we've exposed an API endpoint that returns a list of all named routes for our Laravel app, the next step is to create a new Cypress command that makes a request to this endpoint.

04
قسمت 4

Punch a Duck

In this lesson, we'll override the Cypress visit command to allow for optionally passing a route name to it. We'll use a technique jokingly referred to as "duck punching" to allow for this.

05
قسمت 5

Test and Implement the New Feature

Now that we fully understand what's required, let's switch over to the laracasts/cypress package, itself, and begin implementing the new feature.

06
قسمت 6

How to Test Composer Package Changes Locally

When making changes to a Composer package, it's always important to manually test your changes locally before tagging a new release. In this episode, I'll show you how to instruct Composer to install a package that is local to your machine.

07
قسمت 7

Tag the New Release

We're ready to deploy this new feature! To wrap up this series, let's use the GitHub UI to tag a new release. Once we do this, it will quickly be reflected on the Packagist page for the package.

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.