Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

larry

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

larry

A packaging tool for bundling project releases

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Larry

Build Status

Larry is a generic packaging tool for applications that need to bundle their source code in packages, ready to be shipped.

Usage

Usage: larry [options]

Options

ParameterDescription
-h, --helpOutput usage information
-V, --versionOutput the version number
-c, --config [path]Path to JSON configuration file. Default './larry.json' in the current directory.
`-q, --quietLet not Larry chatter while he does his job.

Configuration

Configuration of Larry has three main parts - options, components and packages. These configurations need to be put in a JSON file, which is passed to the larry executible with the --config option. A sample configuration file can be seen at tests/fixtures/config/larry.json.

Options

These are general options for Larry, the options object can contain:

KeyDescription
inputBase input directory (required).
outputBase output directory (required).
archiveWhether to turn on archiving for all packages. Default true.

A sample options object will look like:

{
    "options": {
        "input"   : "./src/artefacts",
        "output"  : "./out",
        "archive" : true
    }
}

Components

A component definition contains all the component properties that would be needed while packaging. components in the configuration will be an array of objects where each item in the array will define a new component. A component can be used by multiple packages.

Each item in the components array can contain:

KeyDescription
nameName of the component.
descriptionA description of the component.
includeAn array of paths to be included, relative to options.input.
destinationAn array of destination paths corresponding to items in include.
excludePatternA regex string. Files matching this regex string will be excluded.
enabledIf false, disables the component. Default true.

A sample components object will look like:

{
    "components": [
        {
            "name": "component-1",
            "include": [
                "node_modules/",
                "src"
                ],
            "destination": [
                "bin/ok",
                "files/src"
            ],
            "excludePattern": ".*\\.json"
        },
        {
            "name": "component-2",
            "include": [
                "node_modules/",
                "src"
            ],
            "destination": [
                "bin2/ok",
                "files2/src"
            ]
        }
    ]
}

Packages

A package definition contains a list of all components that will be part of the package. Similar to components, packages option will be an array of objects, where each item will define a new package.

Each item in the packages array can contain:

KeyDescription
nameName of the package.
descriptionDescription of the component.
componentsAn array of component names to include in this package.
archiveWhether to archive the package or not. Overrides options.archive.
archiveRootIf archive is true, this is the name of the root folder within the archive.

A sample packages object will look like:

{
    "packages": [
        {
            "name": "p1",
            "enabled": true,
            "components": [
                "component-1"
            ],
            "archiveRoot": "package1",
            "archive": true
        },
        {
            "name": "p2",
            "enabled": true,
            "components": [
                "component-1",
                "component-2"
            ],
            "archive": false
        }
    ]
}

Roadmap

  • Add support for includePattern in components.
  • Add support to exclude files or folders by path in components.
  • Add preprocess and postprocess hook support for packages.
  • Add package verification support after they have been created.

Analytics

FAQs

Package last updated on 04 Jul 2014

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