New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@stridekick/scripts

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stridekick/scripts

A collection of npm scripts

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
5
Created
Source

@stridekick/scripts

A collection of npm scripts

Table of Contents

  • Installation
  • Scripts
  • Publishing

Installation

npm install --save @stridekick/scripts

Scripts

setNpmrc

In order to gain access to private npm modules, a local .npmrc file is created pointing to the npmjs repository with an approved token.

This function creates a .npmrc file with //registry.npmjs.org/:_authToken=${REACT_APP_NPM_TOKEN} as the contents.

The build will replace REACT_APP_NPM_TOKEN with the actual token.

Usage

  • Add an heroku-prebuild npm script (see example)

  • Set the REACT_APP_NPM_TOKEN environment variable in Heroku to an approved token.

Example (within package.json)

"scripts": {
  "heroku-prebuild": "node node_modules/@stridekick/scripts/dist/setNpmrc.js"
}

Publishing

To publish updates to the npm repository:

  • Push all code changes to the code repository

  • npm install

  • Perform one of the following:

  • npm run publish:patch - {major}.{minor}.{patch +1}
  • npm run publish:minor - {major}.{minor + 1}.0
  • npm run publish:major - {major + 1}.0.0

FAQs

Package last updated on 01 Oct 2016

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