Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitter-sidecar

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitter-sidecar

An embeddable Gitter client.

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-38.24%
Maintainers
5
Weekly downloads
 
Created
Source

Gitter Sidecar on npm

Sidecar

Gitter embed widget, sidecar.gitter.im

Changelog

Usage

<script>
    ((window.gitter = {}).chat = {}).options = {
        room: 'gitterHQ/sidecar-demo'
    };
</script>
<script src="sidecar.js"></script>

Module Usage

There is also a standalone package available on npm gitter-sidecar that doesn't pollute the global scope.

var Sidecar = require('gitter-sidecar');

var myChat = new Sidecar({
  room: 'gitterHQ/sidecar-demo'
});

API

Build

  • Build the Sidecar library: npm run build, output: ./dist/sidecar.js
  • Build Sidecar module/package: npm run build-module, output: ./dist/sidecar-module.js

Dev

Same as devbuild but also watches the directory and rebuilds on any file changes

npm run devbuild

Build Microsite

npm run build-microsite

Dev

This is currently a work in progress. But I hope to have react-hot-loader and webpack-dev-server working for this:

npm run devbuild-microsite

Deploy: Push Release

We have CircleCI setup, the config is in circle.yml.

To push a new version of the sidecar script, run the following:

  • npm version patch: bump version and tag it
  • git push --tags: Trigger CircleCI build

To push a new release of microsite, just push to the master branch

Manual Deployment

You'll need AWS credentials exported as AWS_KEY and AWS_SECRET. This command is not meant to be run locally, only by the CircleCI deployment step (on every tag).

npm run deploy

Testing

npm test

Contributing

We use git-flow. Merge requests should be made against develop not master.

Please join us in gitterHQ/contributing for questions or to get in touch.

FAQs

Package last updated on 16 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc