observing / square

The last build system you would ever want to use
MIT License
56 stars 9 forks source link

Add support for S3 uploading of builds. #43

Open 3rd-Eden opened 12 years ago

3rd-Eden commented 12 years ago

Instead of writing to the file system we should also be able to write to something else, like a S3 bucket where we can store the assets.

This is nice ways to integrate the squire build system in existing server architectures.

Square currently only supports writing to:

Ideally we should add different storage backends so you can for example add your builds to a database, remote server or anything else you want to hook up.

A simular apporach as observing/devnull transports would be suitable for this: https://github.com/observing/devnull/tree/master/transports


var Square = require('square');

var square = new Square();
square.storage(require('square/storage').stdout);
square.storage(require('square/storage/disk');
square.storage(require('square/storage/s3');

Or something simular to this..

3rd-Eden commented 11 years ago

We could be using nodejitsu/pkgcloud for the cloud provisioning and uploading

3rd-Eden commented 11 years ago

1:20:18 johmanx: kan je iets met een URL parser doen? 11:20:19 johmanx: dist: s3://user:pass@bucket/container/filename.{$type}.js

@johmanx10 told me to do that.