npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

reveal-sdk

v2.1.0

Published

This project compiles and bundles the Reveal SDK into `reveal-sdk.js` (IIFE) and `reveal-sdk.esm.js` (ESM), then copies the output to `Web/GeneratedJavaScript/` for consumption by the ASP.NET samples and other web projects.

Downloads

2,103

Readme

Reveal TypeScript SDK Build

This project compiles and bundles the Reveal SDK into reveal-sdk.js (IIFE) and reveal-sdk.esm.js (ESM), then copies the output to Web/GeneratedJavaScript/ for consumption by the ASP.NET samples and other web projects.

How it fits into the build pipeline

The C# translator emits TypeScript files into each project's bin/ folder. This project picks those up, compiles them with tsc, bundles with rollup, and copies the result to Web/GeneratedJavaScript/. The ASP.NET sample (Web/AspNetCoreSdk/Sample.AspNetCore) then copies from GeneratedJavaScript/ into its wwwroot/Reveal/ folder via the CopyGeneratedJS MSBuild target on every build.

Full build order

Run these steps whenever translator source (C# Translated/ files) has changed or when the TS Source in src has changed.

1. Clean translator bins and GeneratedJavaScript

npm run clean-translator-bins

Discovers and removes the translator's TypeScript output from every contributing project's bin/ folder and wipes Web/GeneratedJavaScript/. This ensures no stale files carry over into the next build.

2. Build the C# translation projects in Visual Studio

Build the following projects:

  • Reveal.UI.Sdk.TS

This re-runs the translator and regenerates the TypeScript output in each project's bin/ folder.

3. Install dependencies (only when dependencies change)

npm install

Only required when package.json dependencies have been modified (e.g. a new package was added). Skip this step on routine builds.

4. Build the SDK bundle

npm run build

This runs three steps in sequence:

  • compile — runs the gulp preprocessing pipeline (copies translator output from bin/ folders into reveal-src/src/) then compiles with tsc
  • bundle — bundles with rollup into dist/reveal-sdk.js and dist/reveal-sdk.esm.js
  • finalize — copies the bundle and locale files to Web/GeneratedJavaScript/

5. Build Sample.AspNetCore

Build the Web/AspNetCoreSdk/Sample.AspNetCore project in Visual Studio. The CopyGeneratedJS MSBuild target runs automatically and copies the updated files from Web/GeneratedJavaScript/ into wwwroot/Reveal/.

Other useful scripts

| Script | Description | |--------|-------------| | npm run build:prod | Same as build but minifies the output | | npm run clean | Removes dist/, compiled intermediate folders, and GeneratedJavaScript bundle files | | npm run clean:full | Same as clean plus removes node_modules | | npm run clean-translator-bins | Removes translator bin/ output and GeneratedJavaScript |