npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

epictoolkit

v1.2.22

Published

epictoolkit CLI

Downloads

127

Readme

epictoolkit CLI v1.2.22

A CLI created by Epic Quest TI for internal use by the Epic Quest TI team

installation

$ npm i -g epictoolkit

update

$ npm update -g epictoolkit

Available commands

To run a command start with etk followed by one of the following commands and options

init

$ etk init --api OR --next OR --nextron

Start epic toolkit by creating the epic toolkit config file. File required for the operation of the cli. The init option must be executed indicating one of the valid and mandatory project options. They are --api, --next and --nextron.

controller

$ etk controller "controllerName"

Creates a new "Controller" with the name entered after the controller command.

$ etk controller "controllerName" --inject

Creates a new "Controller" with the name inserted after the controller command, also inserts the import line of a new service at the top of the file and injects this service in the constructor parameter of the class

service

$ etk service "serviceName"

Creates a new "Service" with the name entered after the service command.

$ etk service "serviceName" --inject

Creates a new "Service" with the name inserted after the service command, also inserts the import line of a new repository at the top of the file and injects this repository in the constructor parameter of the class

provider

$ etk provider "serviceName"

Creates a new "Provider" with the name entered after the provider command.

repository

$ etk repository "repositoryName"

Creates a new "Repository" with the name entered after the repository.

usecase

$ etk usecase "usecaseName"

Create a complete use case with the name entered as the first parameter, which is mandatory. A complete use case consists of creating all the necessary files (controller, validations, service, repository) with the name provided as a parameter and with the necessary functions to contemplate a CRUD (create, read, update, delete).

epictoolkitconfig

epictoolkitconfig.json contains definitions that will be used by the aforementioned commands.

epictoolkitconfig {
    "database": {
    "artifactDatabaseName": "client",                       //name that is used to call database client
    "artifactDatabaseLocation": "../../lib/backend/prisma", //location where database client is
    "type": "prisma"                                        //database type that project use. Available options: "prisma", "papr"
  },
  "type": "api",                                            //project type. Available options: "api", "next" and "nextron"
  "usecases": "src/usecases",                               //usecase folder location
  "defaultResponseLocal": "../../types/defaultResponse"     //default response type used in controller, service and provider.
}

The settings directly affect the operation, epictoolkitconfig.database.artifactDatabaseLocation determines the location that will be used in all your repositories as well as epictoolkitconfig.database.artifactDatabaseName will determine the name of your database client import also in all your repositories. We also have epictoolkitconfig.defaultResponseLocal which determines where the default type used by controller.

License

MIT - see LICENSE