npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

grunt-bundle-wrapper

v0.0.2

Published

Wrapper around the `bundle` CLI tool. http://bundler.io

Downloads

5

Readme

grunt-bundle-wrapper

Build status

Build Status: Linux

Install

Install with npm

npm install grunt-bundle-wrapper --save-dev

Tasks

bundle-check

Wrapper around the bundle check command.

Configuration

With the default options the

grunt bundle-check

is equivalent to

bundle check

bundle-install

Wrapper around the bundle install command.

Configuration

With the default options the

grunt bundle-install

is equivalent to

bundle install

Configuration

options.rubyExecutable

Type: String

Default value: ''

options.bundleExecutable

Type: String

Default value: 'bundle'

options.outputNameFailed

Type: String

Default value: ''

options.inputNameFiles

Type: String

Default value: ''

options.args

Type: Object

Default value: {}

All argument is same as the CLI counterpart. You can check them with the $ bundle help {check|install} command.

options.args.gemFile

Type: String

Default value: null

options.args.path

Type: String

Default value: null

options.args.retry

Type: Number

Default value: null

options.args.dryRun

Type: Boolean

Default value: false

options.args.noColor

Type: Boolean

Default value: false

options.args.verbose

Type: Boolean

Default value: false

options.args.system

Type: Boolean

Default value: false

options.args.without

Type: String

Default value: null

options.args.local

Type: Boolean

Default value: false

options.args.deployment

Type: Boolean

Default value: false

options.args.binStubs

Type: String|Boolean

Default value: null

options.args.standalone

Type: String|Boolean

Default value: null

options.args.trustPolicy

Type: String|Boolean

Default value: null

options.args.jobs

Type: Number

Default value: null

options.args.noCache

Type: Boolean

Default value: false

options.args.quiet

Type: Boolean

Default value: false

options.args.clean

Type: Boolean

Default value: false

options.args.fullIndex

Type: Boolean

Default value: false

options.args.noPrune

Type: Boolean

Default value: false

options.args.shebang

Type: String

Default value: null

files

For more information see the Grunt documentation Configuring tasks/files

Flags

You can modify the options.args by Flags

Flag dry-run

Override the value of the options.args.dryRun argument with true.

Flag no-color

Override the value of the options.args.noColor argument with true.

Flag verbose

Override the value of the options.args.verbose argument with true.

Flag system

Override the value of the options.args.system argument with true.

Flag local

Override the value of the options.args.local argument with true.

Flag deployment

Override the value of the options.args.deployment argument with true.

Flag no-cache

Override the value of the options.args.noCache argument with true.

Flag quiet

Override the value of the options.args.quiet argument with true.

Flag full-index

Override the value of the options.args.fullIndex argument with true.

Flag no-prune

Override the value of the options.args.noPrune argument with true.

Examples

Basic

require('jit-grunt')(
  grunt,
  // Mapping.
  {
    'bundle-check': 'grunt-bundle-wrapper',
    'bundle-install': 'grunt-bundle-wrapper'
  }
);

grunt.initConfig({
  'bundle-check': {
    'my-01': {
      files: {
        src: ['path/to/Gemfile']
      }
    }
  },
  'bundle-install': {
    'my-01': {
      files: {
        src: ['path/to/Gemfile']
      }
    }
  }
});

grunt.registerTask('bundle-check-install', [
  'bundle-check',
  'bundle-install'
]);
grunt bundle-check-install
echo 'is equivalent to'
bundle check
bundle install

Custom options

grunt.initConfig({
  'bundle-check': {
    options: {
      bundleExecutable: '/home/foo/.rvm/gems/ruby-2.1.3/bin/bundle',
      arguments: {
        verbose: true,
        noColor: true
      }
    },
    'my-01': {
      files: {
        src: ['path/to/Gemfile']
      }
    }
  }
});
grunt bundle-check
echo 'is equivalent to'
/home/foo/.rvm/gems/ruby-2.1.3/bin/bundle check --verbose --no-color

Arguments and flags

grunt.initConfig({
  'bundle-check': {
    'my-01': {
      files: {
        src: ['path/to/Gemfile']
      }
    }
  }
});

grunt.registerTask('my-bundle-check', [
  'bundle-check:my-01:verbose:no-color'
]);
grunt bundle-check:my-01:verbose:no-color
echo 'is equivalent to'
bundle check --verbose --no-color
echo 'is equivalent to'
grunt my-bundle-check

Piping

Poor man's piping.

The bundle-check collects the directory names where the check was failed instead of throw a fatal error. The bundle-install uses this array of directory names to run bundle install only where it is necessary.

grunt.initConfig({
  'bundle-check': {
    options: {
      outputNameFailed: 'bundleWrapper.output.check.failed'
    },
    'my-01': {
      files: {
        src: ['path/to/Gemfile']
      }
    }
  },
  'bundle-install': {
    options: {
      inputNameFiles: 'bundleWrapper.output.check.failed'
    },
    'check-fallback': {}
  }
});

grunt.registerTask('bundle-check-install', [
  'bundle-check',
  'bundle-install'
]);
grunt bundle-check-install

Author

Andor Dávid

Release History

  • v0.0.1 - 2015-05-25
    • First release.

License

Copyright (c) 2015 Andor Dávid, contributors.
Released under the GPL2 license


This file was generated by grunt-verb on May 26, 2015.