🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@strapi/sdk-plugin

Package Overview
Dependencies
Maintainers
9
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strapi/sdk-plugin

Simple tools for developing Strapi plugins

Source
npmnpm
Version
5.2.4
Version published
Weekly downloads
23K
11.71%
Maintainers
9
Weekly downloads
 
Created
Source

sdk-plugin

Everything you need to develop an awesome Strapi plugin


Chat on Discord


sdk-plugin is a set of command line utilities for developing a Strapi plugin

Getting Started

If you're setting up a brand new plugin we recommend you use the init command to get started:

npx @strapi/sdk-plugin@latest init my-plugin

That will create a directory with all your plugin project files.

Once your project has been installed, several commands are available to you.

Commands

All of the following comands have the following options available:

-- -d, --debug – Enable debugging mode with verbose logs (default: false) -- --silent – Don't log anything (default: false) -- -h, --help – Display help for command

init [path]

Creates a new plugin at the given path.

build

Builds your current package based on the configuration in your package.json.

  • --minify – minifies the output (default false).
  • --sourcemap – generates sourcemaps for the output (default true).
yarn run build

watch

Watch & compile your strapi plugin for local development.

yarn run watch

Recompiles your plugin automatically on changes and runs yalc push --publish

yarn run watch:link

verify

Verifies the output of your plugin before publishing it

yarn run verify

Keywords

strapi

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts