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

@ndustrial/contxt-sdk

Package Overview
Dependencies
Maintainers
6
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndustrial/contxt-sdk

## Building the package

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

contxt-sdk

Building the package

rollup.js is used to build the source code into CommonJS and ES6 modules that can be used for distribution. These modules are both built by running one command: npm run build. If you'd like to continuously create builds as files are changed (i.e. if you are developing new features and have set things up correctly with npm link to serve the newly updated files to your app), you can run npm run watch.

Testing & Code Quality

Some important NPM tasks for running the test suite:

  • npm test - Lints, sets up tracking for Istanbul coverage reports, and runs the test suite
  • npm run test:js - Runs the test suite
  • npm run test:js:dev - Runs the test suite in watch mode, where the tests are re-run whenever a file changes
  • npm run test:js:inspect - Runs the test suite in inspect/inspect-brk mode. Insert a debugger somewhere in your code and connect to the debugger with this command. (Node 8: visit chrome://inspect to connect. Node 6: Copy and paste the blob provided in the terminal into Chrome to connect. Older versions also have ways to connect.)
  • npm run lint - Lints the source code
  • npm run coverage - Sets up tracking for Istanbul coverage reports and runs the test suite
  • npm run report - Parses the Istanbul coverage reports and writes them to file (in ./coverage) and displays them in terminal

Some tools used for testing and ensuring code quality include:

Additionally, some globals have been added to the testing environment to streamline the process slightly:

  • expect - Corresponds with require('chai').expect. Info
  • faker - Corresponds with require('faker'). Info
  • sandbox - Corresponds with require('sinon').sandbox. Should be used anytime when wanting to create a sinon.spy or sinon.stub as it can be easily used to reset/restore multiple spys and stubs. Info

FAQs

Package last updated on 26 Feb 2018

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