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

spfx-pkgdeploy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spfx-pkgdeploy

SPFX package deploy made easy

latest
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

spfx-pkgdeploy

Set up your gulpfile.js like this:

'use strict';

const gulp = require('gulp');
const spfxPkgDeploy = require('spfx-pkgdeploy').default;
const build = require('@microsoft/sp-build-web');
const packageSolution = require('./config/package-solution.json');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

spfxPkgDeploy(build, packageSolution, {
    username: "",
    password: "",
    tenant: "",
    catalogSite: ""
});

build.initialize(gulp);

Then add a new task to your package.json called deploy:

gulp clean && gulp default --ship && gulp deleteAppPkg --ship && gulp package-solution --ship && gulp uploadAppPkg --ship && gulp deploySppkg --ship

Like this:

{
  "scripts": {
    "build": "gulp bundle",
    "clean": "gulp clean",
    "test": "gulp test",
    "deploy": "gulp clean && gulp default --ship && gulp deleteAppPkg --ship && gulp package-solution --ship && gulp uploadAppPkg --ship && gulp deploySppkg --ship"
  }
}

NOTE: The reason deleteAppPkg is included in the npm deploy script is that we've experienced some issues with upgrading an app package without removing the app package file first.

FAQs

Package last updated on 25 Mar 2019

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