How To Make A Simple AdonisJS 6 Package

Опубликовано: 16 Август 2024
на канале: Adocasts
610
26

We'll learn how to make an AdonisJS 6 package using the Package Starter Kit

👍 If You Enjoy This Video, Consider Hitting The Like Button!

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...

🎯 Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing

🧾 Find The Code For This Lesson Here: https://github.com/adocasts/package-a...

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.

📑 Resources
› AdonisJS 6 Package Starter Kit: https://github.com/adonisjs/pkg-start...
› Scaffolding Docs: https://docs.adonisjs.com/guides/conc...
› Ace CLI Docs: https://docs.adonisjs.com/guides/ace/...
› Tempura Stub Templating Engine: https://github.com/lukeed/tempura
› @adocasts.com/actions: https://www.npmjs.com/package/@adocas...

🕑 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

-------------------------Socials--------------------------

🕸️ Website: https://adocasts.com
🐦 Twitter:   / adocasts  
👍 GitHub: https://github.com/adocasts