New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pruno

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pruno

Mix up gulp tasks like prison hooch.

  • 1.1.2
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-40.91%
Maintainers
1
Weekly downloads
 
Created
Source

pruno

Mix up gulp tasks like prison hooch. Pruno is a package that lifts heavily (takes most of the code) from Laravel Elixer. Some slight tweaks were made to allow for it to run tasks that build more complex front-end applications.

Installation

Simply run npm install -D pruno gulp in your terminal.

Sample Gulpfile

'use strict';

/**
 * You must pass an instance of the projects local gulp so that the gulp cli
 * will take advantage of the pruno defined tasks.
 */

var gulp = require('gulp');
var pruno = require('pruno').use(gulp);

pruno(function(runner) {
  // Publish npm files.
  runner.publish('./node_modules/font-awesome/fonts/*', '/fonts/');

  // Copy and optimize image assets.
  runner.images('/assets/images/**/*', 'images');

  // Move other assets
  runner.assets(['!/assets/images/**/*', '/assets/**/*']);

  // Spin up the specified koa server.
  runner.koa('api/index.js')

  // Compile stylus files.
  runner.stylus('index.styl');

  // Run browserify.
  runner.browserify();

  // Use livereload to refresh koa server when files change.
  runner.livereload(['./public/**/*']);
});

Module support

  1. Stylus
  2. SASS
  3. LESS
  4. React (through browserify)
  5. 6to5 (es6 support through browserify)
  6. imagemin
  7. livereload
  8. koa

Writing custom modules

Writing custom modules is easy, just follow the boilerplate:

var pruno = require('pruno');
var config = pruno.config;
var gulp = config.gulp;

pruno.extend('mytask', function(src, output, params) {
    gulp.task('mytask', function() {
      // Do some stuff
    });

    config.registerWatcher('mytask', './path/to/files/**/*.ext');
    return config.queueTask('mytask');
});

Keywords

FAQs

Package last updated on 07 Jan 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc