Skip to content

Prebuilt versions of the ShareDB Client and OT Types

Notifications You must be signed in to change notification settings

gkjohnson/sharedb-builds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharedb-builds

npm version

Repo housing pre-compiled builds of ShareDB and basic OT Types for the browser using WebPack because by default ShareDB requires WebPack or Browserify to use.

Use

<!--
  Loads ShareDB onto "window.ShareDB"
  and registers the "text" OT type
-->
<script type="text/javascript" src=".../sharedb-builds/dist/sharedb-client.min.js"></script>
<script type="text/javascript" src=".../sharedb-builds/ot-text.min.js"></script>
<script>
  console.log(window.ShareDB)               // It's here!
  console.log(window.ShareDBypes.map.text)  // This too!
</script>

Building

Run npm run build to minify and build every entry file in /build

Run npm run update to update all packages and create a new build

Folder Structure

/build

Webpack entry files for the OT types and ShareDB client

/dist

Minified, browser loadable files for each file in /build