Skip to content

brainpm/bpm-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bpm-publish

The publishing sub-command used by brainpm/bpm.

TODO

  • move all github-specific code here
    • from CLI which still gets its TOC eigenmächtig
    • from web-player
  • rename to bpm-github
  • unpublish
  • clean up publish module
  • repair bpm sub-commands (play, walk, ...)
  • bpm toc should display all meaningful meta-data
  • tell debundler to use new bpm-github API
  • implement new (de)bundler API
    • getMetaData(retrievalObject)
    • getContent(retrievalObject)

Use case web-player:

webplayer on init needs TOC storageAdaper.egtRetrievalStream() returns stream of retrieval objects (name, getFileStream)

webplayer plugs retrieval stream into debundler.getMetaData
    bundler.getMetaData(retrievalObject)
        // bundler does
        return JSON.parse(retrievalObject.getFileStream('paackage.json'))

if an episode needs to be displayed, player requests content from debundler bundler.getContent(getFileStream) returns DocumentFragment (HTML with JS handlers already attached)