/**
 * aws - deploys "earth" files to AWS S3
 */

"use strict";

var util = require("util");
var tool = require("./tool");
var aws = require("./aws");

console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");

// UNDONE: delete objects in S3 but not in the list below
// UNDONE: super awesome logic that defines and iterates file sets, to eliminate this list:
[

    "about.html",
    "index.html",
    "natural-earth.png",
    "css/styles.css",
    "css/mplus-2p-light-057.ttf",
    "data/earth-topo.json",
    "libs/d3.geo/0.0.0/d3.geo.polyhedron.v0.min.js",
    "libs/d3.geo/0.0.0/d3.geo.projection.v0.min.js",
    "libs/earth/1.0.0/earth.js",
    "libs/earth/1.0.0/globes.js",
    "libs/earth/1.0.0/layers.js",
    "libs/earth/1.0.0/micro.js",
    "libs/when/2.6.0/when.js"

].forEach(function(key) {
    aws.uploadFile("public/" + key, aws.S3_BUCKET, key).then(function(result) {
        console.log(key + ": " + util.inspect(result));
    }, tool.report);
});

/**
 * aws - deploys "earth" files to AWS S3
 */

"use strict";

var util = require("util");
var tool = require("./tool");
var aws = require("./aws");

console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");

// UNDONE: delete objects in S3 but not in the list below
// UNDONE: super awesome logic that defines and iterates file sets, to eliminate this list:
[

    "about.html",
    "index.html",
    "natural-earth.png",
    "css/styles.css",
    "css/mplus-2p-light-057.ttf",
    "css/mplus-2p-light-sub-1.ttf",
    "data/earth-topo.json",
    "libs/d3.geo/0.0.0/d3.geo.polyhedron.v0.min.js",
    "libs/d3.geo/0.0.0/d3.geo.projection.v0.min.js",
    "libs/earth/1.0.0/earth.js",
    "libs/earth/1.0.0/globes.js",
    "libs/earth/1.0.0/layers.js",
    "libs/earth/1.0.0/micro.js",
    "libs/when/2.6.0/when.js"

].forEach(function(key) {
    aws.uploadFile("public/" + key, aws.S3_BUCKET, key).then(function(result) {
        console.log(key + ": " + util.inspect(result));
    }, tool.report);
});

Define M+ font subset that contains only those characters necessary for the site.
Define M+ font subset that contains only those characters necessary for the site.
