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

@dx-samples/common-ui-components

v7.0.2

Published

This project serves as a starting point to build WCH UI component libraries.

Downloads

15

Readme

common-ui-components

Container project to bundle WCH data records and UI components as an npm module. Such a module can then be used as a dependency by single page application projects to populate a tenant with data.

Changes

CHANGELOG

Usage

This library is meant to be used in an Angular based application.

Use as a template

Use this project as a template for custom bundles.

  • Set this as an upstream project, so you can easily consume changes: git remote add upstream [email protected]:DX-Components/common-ui-components.git
  • Pull changes from upstream git pull upstream master

Deploy the application and WCH artifacts

The library bundles the WCH content types, layouts and layout mappings. Deploy these artifacts to WCH, e.g. by using the following command of the CLI:

ibm-wch-sdk-cli application push --data ./data/ --override --aggregated

The --aggregated flag makes sure to not only deploy the application data but also the bundled dependencies.

Note: In order to successfully execute the command make sure to meet me prerequisites mentioned in the documentation of the CLI.

Development

The component library built with this project produces an NPM Package for WCH UI components. This package needs to be included in an application to be useful.

For convenience this project contains a simple test application that you can run locally to directly test the module. The source code of the application is part of the repository but will not be packaged.

Run the following command to launch the test application.

npm run start

Scripts

The bundle comes with a number of useful scripts:

  • build: builds the library module. The output will be in the dist folder.
  • build:development: builds the test application for this library module in development mode.
  • `build:packagr": comiles the libary module
  • build:production: builds a test application for this library module in production mode (to test the AOT build aspects).
  • build:deploy: builds and deploys the test application for the library module.
  • deploy:delete: deletes all data from the tenant. Useful for testing a fresh install, afterwads. Note use with case, your data will be gone.
  • deploy:purge: deletes the application files from the tenant. This is typically executed prior to pushing new files.
  • deploy:push: Pushes the application files and all data records (including the dependencies)
  • gen:canonicalize: Canonicalizes the JSON data records to produce a comparable set of data.
  • gen:components: Generates UI component for all layouts and also creates an Angular module per component.
  • gen:layouts: Generates layouts and layout mappings (the JSON data records) for the types.
  • gen:pagetype: Generates a new (empty) content type that can be used to create pages.
  • gen:pull: Pulls the data records from your WCH tenant into a temporary directory. Use a merge tool to selectively add the desired artifacts to your project.
  • run:wchtools: Executes the embedded version of WCH tools. Pass the desired parameters after a -- separator.
  • show:url: Displays the live URL that serves your test application.
  • start: Starts the local development server with the test application.