Skip to content

danlangford/repo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the idea here is that you could use your browsers console as sort of a command line interface to your environment. this specific piece, repo.js, sets forth some ideas around populating a local repository, browsing and searching your repo, and loading scripts from your repo into your current environment for use.

repo.add( {catalog:[{name:'myLibName',url:'http://my.lib.com/min.js'}]} );

repo.list()

repo.load('myLibName')

in these tools we will FAVOR dislaying content to the console as if it where a command line. to facilitate that all functions should return a summary String so that it appears in the console also functions will use console.log, hopefully in a manner that wont blow up

the lib itself, repo.js, will not modify the DOM in anyway, except to add a SCRIPT tag thus loading the lib

things to consider: adding version numbers and min identifiers to the catalog look at patterns that already exist in CDNs like ajax.googleapis.com (http://code.google.com/apis/libraries/devguide.html#Libraries) add dependency resolution

About

my first repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published