Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

snowpack-plugin-run

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowpack-plugin-run

[npm]: https://img.shields.io/npm/v/snowpack-plugin-run [npm-url]: https://www.npmjs.com/package/snowpack-plugin-run [size]: https://packagephobia.now.sh/badge?p=snowpack-plugin-run [size-url]: https://packagephobia.now.sh/result?p=snowpack-plugin-run

Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

npm size libera manifesto

snowpack-plugin-run

Snowpack plugin that executes shell commands sequentially when the bundle is generated

Requirements

This plugin requires an LTS Node version (v8.0.0+) and Snowpack v2.0.0+.

Install

Using npm:

npm install --save-dev snowpack-plugin-run

Usage

Create a snowpack.config.js configuration file and execute shell commands sequentially before the bundle is generated:

const dsv = require('snowpack-plugin-run');

module.exports = {
  mount: {
    public: { url: '/', static: true },
    src: { url: '/dist' },
  },
  plugins: [
    [
      'snowpack-plugin-run',
      {
        cmd: ['echo "this is a line"', 'echo "this is the second line"'],
      },
    ],
  ],
};

Meta

LICENSE (MIT)

FAQs

Package last updated on 23 May 2021

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