GithubHelp home page GithubHelp logo

freight's Introduction

# Freight ### Experimental Bundling Server for [NPM](https://www.npmjs.org/) and [Bower](http://bower.io/)

Try it out

Install npm install -g freight.

Get the sample project:

git clone https://github.com/vladikoff/freight-sample.git && cd freight-sample

Run freight -u http://freight.vf.io, you will now have the NPM and Bower modules!

Features

  • Tiny command line tool with a speedy install. Uses one NPM module request.
  • Works with package.json and bower.json dependencies and devDependencies.
  • No configuration files required.
  • Works great with continuous integration environments.
  • Dashboard to manage bundle files and bundle queues:

How it works

Freight consists of two components: a command line tool and a hosted cache server. See the Freight Server README to help you setup a Freight Server.

Create bundles

Freight Server saves node_modules and bower_components into compressed tar.gz bundles. The bundles are created based on your package.json and bower.json, using the --create command. This action requires the server password. You can use --force to recreate the bundle.

Run the command below from a project directory with a package.json or bower.json file:

freight -u http://YOUR_SERVER.com --create -p=SERVER_PASSWORD
************

Bundle does not exist for this project.
Freight Server will now generate a bundle.
Monitor your Freight at http://YOUR_SERVER.com/freights/active

************

Download bundles

You can monitor created and queued bundles using the web interface available at http://YOUR_SERVER.com. The web interface is protected with the same Freight server password.

To download the bundle that was created earlier just use the freight -u=http://YOUR_SERVER.com command from the project directory. This will extract node_modules and bower_components from the bundle.

$ freight -u http://YOUR_SERVER.com
Downloading bundle: ||||||||||||||||||| 100% 0.0s 4.2 MB
Extracting bundle...
Freight is done in 3.613 seconds.

CLI Options

$ freight --help

--help
 -h Display help.

--url
 -u Freight Server URL. Example: "http://example.com"

--verbose
 -v Verbose mode. A lot more information output.

--create
 -c Create a bundle on a remote server. Requires password.

--password
 -p Remote Freight Server password to create Freight bundles.

--force
 -f A way to force create a bundle. Requires password and create commands.

--silent
  No output.

Author

twitter/vladikoff
Vlad Filippov

Release History

See the CHANGELOG.

freight's People

Contributors

vladikoff avatar

Watchers

Navid Nikpour avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.