Git Product home page Git Product logo

grifter's Introduction

Grifter - The Gallery Module Stealer

This is HIGHLY experimental and probably shouldn't be installed, just saying.

This package is not published to NPM yet, since it's highly specific and still under development

Install

Clone this repo, then sudo npm link (probably best to do it this way)

Setup

Create a .grifter.json file under $HOME similar to this:

{
    "master": "[email protected]:yui/yui3-gallery.git"
}

Authenticate with both the API and Github with yogi:

// api auth
yogi login

// github auth
yogi gh

Your API tokens will be stored in .yogi.json.

Usage

You must have authenticatd with yogi before doing this. (yogi login and yogi gh)

mkdir ~/tmp/gallery-build
cd ~/tmp/gallery-build

// test-run for the build
grifter

// build and post results to api
grifter --post

In order to successfully run grifter --post, you will need to have both .grifter.json and .yogi.json in your path! You can optionally merge .yogi.json into .grifter.json.

What it does

grifter attempts to do the following:

  • Query the Gallery CDN Queue API (yogi cdn queue)
  • Assemble the URL's and Paths to the modules with that data
  • Batch fetch the module files from GitHub
  • Build a proper filesystem (based on YUI) from the remote files
  • Walks each changed module and runs a custom yogi build --test
  • Stores all the output into log files.
  • Collects all the logs an mixed that into a JSON blob.
  • Zips up the results into a valid CDN deployment
  • Checks the changes into the provided GIT repo
  • Posts the data back to the Gallery API (if --post is passed)

This is what we currently use to publish the Gallery builds weekly.

Future

A lot of this could potentially be rebuilt into grunt tasks and this is what I recommend.

grifter's People

Contributors

davglass avatar ekashida avatar ericf 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.