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

@salespreso/deck-gulp-tasks

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salespreso/deck-gulp-tasks

Gulp Task for Salespreso Deck Projects

latest
npmnpm
Version
3.8.0
Version published
Maintainers
4
Created
Source

Deck Gulp Tasks

This project allows you to compile your SalesPreso deck projects.

Installation

yarn add @salespreso/deck-gulp-tasks

Usage

In order to run the gulp tasks you should create a gulpfile.js file at the root of your project.

You should then import the following:

var  gulp  =  require("gulp");
var  deck_gulp  =  require("@salespreso/deck-gulp-tasks");

Deck gulp tasks acts as a constructor for the tasks and allows you to pass in some options.

deck_gulp(gulp, {
    //options
});

Options

OptionUsageDefault
srcUsed to point to the source of your deck files"src/"
distThe location you want the compiler to output the files to"dist/"
impostorAllows for slides to be moved between sections in the applicationfalse
excludesPaths which the javascript compiler should ignore["sections/**/*.js"]
htmlExcludesPaths which the html compiler should ignore["partials/**/*.*"]
logInjectionsTurns on/off logging for gulp-injectfalse
notificationsTurns on/off toast notifications in the operating system{
  error: true,
  success: true,
  sounds: true
}
sassPathsAllows passing in paths to sass files in node_modules[]
nunjucksAllows compilation of .njk files into htmlfalse
nunjucksOptionsPasses options through to the nunjucks compiler options{}
emojisTurn on/off emojis in toast notifications (can cause issues on windows machines)true
autoprefixCssTurns on/off autoprefixing in sass filesfalse
autoprefixerOptionsSee here{}

Injection

You can inject files into html files (Cannot nest injections, currently!). The current allowed files are .svg .js and .html.

You must use full paths from the root of the project, not relative to the html file.

<!-- inject:{{path}}.{{html|js|svg}} -->
<!-- endinject -->

Inside those templates you have access to the name of the slide folder as {{slide_id}}. If you use this make sure the id of your slide matches the name of the folder.

FAQs

Package last updated on 21 Oct 2022

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