Socket
Socket
Sign inDemoInstall

@semcore/app-center-js-sdk

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @semcore/app-center-js-sdk

## How to work with NPM in gar


Version published
Weekly downloads
17
decreased by-5.56%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

App center JS SDK

How to work with NPM in gar

Link

Concept

We provide our customers with two ways to use our SDK:

  • downloading from a package manager (NPM, Yarn, etc.)
  • downloading from static

So we have webpack configurations for each method.

Package manager

This configuration (webpack-config-npm.js) builds and puts files to ./dist/npm/.

The final bundle contains:

  • index.js — main js file
  • index.d.ts — typings
  • SM.d.ts — typings

Static

This configuration (webpack-config-sdk.js) builds and puts files to ./dist/sdk/

The final bundle only has js file (sdk_<%SEMVER%>.js).

NPM commands

Requires

node >= 18

Install dependencies

$ npm i

Linting

To lint *.ts files run script

$ npm run lint

also you can run this script with code fix

$ npm run lint:fix

Testing

To test code run script

$ npm run test

Build npm package

$ npm run build:npm

Build SDK for cdn

$ npm run build:sdk

FAQs

Last updated on 09 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc