1.0.0 • Published 7 years ago

bm.npm.common v1.0.0

Weekly downloads
6
License
-
Repository
github
Last release
7 years ago

Berlingske Media NPM Modules

This repository contains source files for private BM NPM modules.

Solution Overview

diagram

Module Registry (npmjs.org) contains publically available modules as well as private modules available at the @berlingske-media scope. In order to access the private modules, required to obtain correspondent credentials and/or use authentication tokens.

The modules follow the CommonJS convention.

On application level the modules could be installed as npm dependencies, for example:

npm i @berlingske-media/boilerplate --save

which will save the module at the node_modules directory and add it as a dependency record to the package.json file, for example:

"dependencies": {
    "@berlingske-media/boilerplate": "1.0.0"
}

As shown on the diagram, in order to integrate the modules with the web apps (www.b.dk, etc...) and use in a web browsers, the final build script should be bundled with such tools as Browserify, or Webpack.

List of modules

  • Boilerplate: An example to be used as the boilerplate template for new modules.
  • Login Tools: Utility handlers for user login.
  • Load More: Handling click on the 'Load more' button and dynamically loading list data.
  • Google Tag Manager: Utilities for Google Tag Manager

Development

Detailed development workflow is described in the Developers Guide.

1.0.0

7 years ago