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

mabel-wcm

v0.1.0

Published

SDK to consume IBM WCM's REST API

Downloads

11

Readme

Mabel WCM

SDK to consume IBM WCM's REST API

Development

Setup

  1. Install Dependencies:
    • node.js 6+
    • gulp: npm install gulp -g (you may need to run it as root)
    • jspm: npm install jspm@beta -g (you may need to run it as root)
    • typings: npm install typings -g (you may need to run it as root)
  2. cd into the project's root directory
  3. Run npm install && jspm install && typings install
  4. To build the source code run npm start

Publishing the Project

In order for users to use paths like @mabel/core/some-module all the compiled files need to live in the root of the published package. To accomplish this, only the dist folder is published. To publish a new version run:

  1. gulp build
  2. cd into dist
  3. npm publish --access=public You may need to login first https://docs.npmjs.com/cli/adduser

Gulp Tasks

  • build: Same as npm start. Builds the source code and prepares it for production (inside the dist/ folder)
  • build:prepare-npm-package: Prepares the dist folder to be ready for publishing it to npm
  • build:prepare-npm-package:copy-docs: Copies common doc files to the dist folder so they can be published in the npm package
  • build:prepare-npm-package:copy:package-json: Copies a modified version of this project's package.json. This modified version is the one that will be published to npm
  • build:sfx: Bundles the source code into a single sfx executable dist/bundles/core.sfx.js
  • compile:typescript: Compiles all the typescript source code and makes it accessible in the dist folder
  • clean:dist: Cleans the dist folder
  • default: Same as build
  • lint: Lints the whole project to check that the code style is being followed
  • lint:typescript: Lints typescript files

File Structure

  • build: Build related scripts.
    • sfx.js: Main file that feeds the SFX building process. Requires @mabel/core and exposes it in the global environment.
  • dist: Compiled files.
    • bundles: Contains versions bundled for simplicity. core.sfx.js: Bundle that contains the core utilities of mabel and all of its dependencies.
  • node_modules: npm dependencies (don't touch them)
  • src: Source files
  • typings: TypeScript definition files (See typings)
    • typings.d.ts: Main definitions file
  • .gitignore: Git configuration file to mark which files to ignore
  • CHANGELOG.md: File to track changes. Any new addition needs to be added here
  • gulpfile.js: Gulp configuration file
  • jspm.config.js: JSPM SystemJS configuration file. Used by the sfx bundler and the test engine
  • LICENSE: Self explanatory
  • package.json: npm configuration file
  • README.md: === this
  • tsconfig.json: TypeScript compiler configuration file
  • tslint.json: tslint configuration file
  • typings.json: typings configuration file

TODOs

  • Add user documentation
  • Add testing configuration

License

Copyright (c) 2015-present, Base22 Technology Group, LLC.
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.