GithubHelp home page GithubHelp logo

rainzhaojy / spark-js-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webex/webex-js-sdk

0.0 1.0 0.0 15.24 MB

Home Page: https://ciscospark.github.io/spark-js-sdk/

License: MIT License

JavaScript 97.16% Shell 0.83% HTML 0.09% CSS 1.93%

spark-js-sdk's Introduction

spark-js-sdk

Monorepo containing the Cisco Spark JavaScript SDKs (both current and legacy).

ciscospark is a collection of node modules targeting our external APIs. Its core libraries take inspiration from our web client's Legacy SDK.

This README primarily discusses the tooling required to develop the Cisco Spark SDK.

Table of Contents

Install

Install tooling dependencies with

npm install

Install module dependencies with

npm run bootstrap

(This installs dependencies to packages/*/node_modules)

Usage

The following commands should be run from the SDK root directory. Tooling dependencies are typically defined only in the root node_modules directory to avoid duplicates. (eslint is installed in each package directory because many editors, or at least Atom, get confused by the monorepo layout and which eslint binary to use).

Build

PACKAGE=PACKAGENAME npm run grunt:package -- build

Run tests

PACKAGE=PACKAGENAME npm run grunt:package -- test

Run just unit tests

Handy during early plugin development when you can write a bunch of unit tests.

UNIT_ONLY=true PACKAGE=PACKAGENAME npm run grunt:package -- test

Run the tests, but only in nodejs

Usually faster, and can build on the fly, thus no need to rebuild everything between test runs

PACKAGE=PACKAGENAME npm run grunt:package -- express:test test:node

Run tests in-browser in debug mode

Keeps the browser open so that you can reload set break points and reload the page

KARMA_DEBUG=true PACKAGE=PACKAGENAME npm run grunt:package -- express:test test:browser

Serve the package

This is mostly useful for the the example app(s), but also comes in handy when debugging the credentials plugins automation tests.

PACKAGE=PACKAGENAME npm run grunt:package -- serve

Run unit tests in watch mode

OK, this one's a handful and requires a global package, but there were too many possible variants to hardcode it any where.

npm install -g nodemon
nodemon -w packages/PACKAGENAME/src -w packages/PACKAGENAME/test -x "UNIT_ONLY=true PACKAGE=PACKAGENAME npm run --silent grunt:package express:test test:node"

Contribute

Pull requests welcome. Please see CONTRIBUTING.md for more details.

License

© 2016 Cisco and/or its affiliates. All Rights Reserved.

spark-js-sdk's People

Contributors

adamweeks avatar aimeex3 avatar arun3528 avatar bzang avatar glhewett avatar good-joe avatar ianwremmel avatar josh-dykstra avatar mattnorris avatar nickclar avatar saurjai3 avatar tran2 avatar

Watchers

 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.