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

playground-custom-ads-library

v0.6.16

Published

This is a space where plugins for our formats can be built in a reusable, maintainable and component-based fashion.

Downloads

5

Readme

Playground Ads Library

This is a space where plugins for our formats can be built in a reusable, maintainable and component-based fashion.

Get Started

  1. Clone the Repo in your local machine git clone https://github.com/playground-xyz/ads-library.git
  2. Install NPM package manager if it hasn't been installed before. https://www.npmjs.com/get-npm
  3. Install required node modules by running npm install in your terminal.
  4. Punch git checkout -b {origin_branch} {new_dev_branch} to start your own branch for your app.
  5. Punch npm run start to start your local development.
  6. Once development is completed, run npm run build. It will create a minified bundled JavaScript file in the /dist folder which will be ready to be used in our ads.

Directory Layout

This library uses a Component Based Architecture(CBA), all components used in the app is indivisual and has its own responsibility. The struture of the top level Application is shown as below, feel free to use whatever structure you want in your sub-applications.

.
├── build                   # Configuration Files for building the dev enviroment. ie. (Webpack Configs)
├── src                     # Source files for the top level builder interface
├── router                  # Navigation thru different Apps
├── apps                    # Where all the actual application sits
├── dist                    # Webpack generates the bundled file for each application
└── README.md

Deployment

Check in your code and create a new version using npm version <patch|minor|major>...

Not sure whether it's a patch / minor / major? From https://semver.org/:

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards-compatible manner, and PATCH version when you make backwards-compatible bug fixes.

Deploy the project in #dev-deploy using the command hubot deploy ads-library and your new library will be available at https://static.playground.xyz/adlib/x.x.x/bundle_name.min.js.

X-Range URLs

The deployment script creates x-range URLs such that e.g. the following URL:

https://static.playground.xyz/adlib/4.x.x/bundle_name.min.js

will resolve to the LATEST published bundle with a major version of 4.

Note that cache headers are currently set to 4 hours, which means that some devices MAY continue to use a stale x-range bundle for up to 4 hours.