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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sdl/delivery-ish-dd-webapp-gui

v2.2.11

Published

GUI of the SDL Dita Delivery Web Application.

Downloads

7

Readme

Dynamic Documentation GUI

GUI of the SDL Dynamic Documentation.

Building

In order to build make sure you have Node.js installed (v6 or higher).

Installing the necessary packages

npm install gulp-cli -g
npm install

You may need to install 'dita-ot' manually. For this download [dita-ot] (https://github.com/dita-ot/dita-ot/releases/download/2.5.4/dita-ot-2.5.4.zip), then unpack / copy to /gui/node-modules/dita-ot and run gradlew.bat manually. After that you may set file's attributes to read-only to prevent from being removed.

Gulp tasks

# Build (debug)
gulp build

# Build everything and setup a server (debug)
gulp serve

# Build everything and setup a server (release)
gulp serve:dist

# Build (release)
gulp

# Test (debug)
# Default browser is PhantomJS
gulp serve:test
gulp serve:test --browsers Chrome
gulp serve:test --browsers "Chrome,IE,Firefox,PhantomJS"

# Test (release)
# Default browser is PhantomJS
gulp test
gulp test --browsers Chrome
gulp test --browsers "Chrome,IE,Firefox,PhantomJS"

# Measure test coverage
# Default browser is PhantomJS
gulp test-coverage
gulp test-coverage --browsers Chrome
gulp test-coverage --browsers "Chrome,IE,Firefox,PhantomJS"

Setting Up GUI Development

Development over existing data

There is ability to develop over existing data. To do this you need to have DXA Web Application with Dynamic Documentation Module installed and connected to appropriate Content Delivery. Dynamic Documentation exposes particular REST API that GUI can consume. To setup that you need:

  1. Open gulpfile.js. In CD Layout it lies in /[path to cd layout]/cd-layout-net/modules/DynamicDocumentation/web/gui/ or next to this readme.md file.
  2. Find proxies section in buildOptions object definition. proxies section is a list of proxy definitions
  3. Add proxy definition:
var buildOptions = {
    ...
    proxies: [{
        from: "/api",
        to: "http://url.to.your.api/api"
    }]
}
  1. Where from is a route(e.g. ), and to is the REST API root url where all requests will be rerouted to.

  2. Open file src/index.html and check if window.SdlDitaDeliveryMocksEnabled setting is set to false so that the data gets retrieved from real api end point configured by buildOption.proxies configuration section.

Setting up Visual Studio Code

Preffered IDE for GUI development is Visual Studio Code.

Some extensions you should install (Managing extensions):

  1. TSLint: get linting feedback as you type
  2. Editor Config: adds support for the .editorconfig file
  3. Document this: automatically generates detailed JSDoc comments in TypeScript and javascript files