How To Make A Simple AdonisJS 6 Package

In this lesson, we'll learn how to use AdonisJS' Package Starter Kit to create a simple package where we can configure and add a make:action Ace CLI command to generate action class files, similar to the make:service command.

Published
Aug 02
Duration
25m 24s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

Chapters

00:00 - Our Goal With This Lesson
01:01 - The Package Starter Kit
02:22 - What Is Giget?
03:02 - Reading Recommendations
03:55 - Getting Started With Our Package
04:45 - Filling Out Our Package.json Details
08:14 - Creating Our Make Action Ace Command
13:03 - Defining Our Action Stub
16:19 - Setting Up Our Package Configuration
17:25 - Building Our Package
18:18 - Writing A Japa Test For Our Package
21:50 - Testing Our Package Locally Using NPM Link
24:40 - Wrapping Up

Cloning the Package Starter Kit Using Giget

npx giget@latest gh:adonisjs/pkg-starter-kit
Copied!

Resources

Below you can find the resources mentioned throughout this lesson.

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!

Playing Next Lesson In
seconds