@fpg-modules/fk-cp-utils
A npm module, which provides the common implementations of bridge methods, Utils, common components, and other helpers, to be used across all the apps, as a part of node module.
Last updated 3 months ago by sangeetakhan .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @fpg-modules/fk-cp-utils 
SYNC missed versions from official npm registry.

fk-cp-utils

A npm module, which provides the common implementations of bridge methods, Utils, common components, and other helpers, to be used across all the apps, as a part of node module.

The structure of the node_modules looks like below:- react src

react (Temporary there, will be removed once it is incorporated in fk-ui-common npm)

react- All the required common components that are required by the apps can be exposed from here. For now we are just exposing Header as a component. Client can access these common components directly from sdk. For eg. import Header from 'fk-cp-utils/react/components/Header';

src- All the required bridge methods resides here and are exposed to the client. Like MapiApiClient, ImageResolver, OmnitureModule etc:- These can be access like below:- import { MapiApiClient } from 'fk-cp-utils'; import { OmnitureModule } from 'fk-cp-utils';

All the platform related intricacies are taken out from client and are handled in the bridge methods. For ex passing sn and sc in the mapi api call. And to pass sn and sc from where to read the same.

Steps to publish the version:

  1. Create an account in global npm registry : https://www.npmjs.com/

  2. npm login: Comment the flipkart registry and un-comment the global registry entry in .npmrc, to get logged in to the global registry.

    Username: [npmjs created username] Password: [npmjs Password] Email: [flipkart email address].

If 2FA is enabled, there will be one more ask for 2FA OTP Authenticator(OTP) :[add from the Authenticator].

Once user is logged, it will show the registry, where the user is logged as.

  1. npm publish, update the package.json, for the new changes and then run the command. If 2FA is enabled, there will be ask for the OTP, please add and proceed further.

Current Tags

  • 0.0.12                                ...           latest (4 days ago)

12 Versions

  • 0.0.12                                ...           4 days ago
  • 0.0.11                                ...           4 days ago
  • 0.0.10                                ...           4 days ago
  • 0.0.9                                ...           4 days ago
  • 0.0.8                                ...           8 days ago
  • 0.0.7                                ...           8 days ago
  • 0.0.6                                ...           8 days ago
  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           3 months ago
  • 0.0.3                                ...           3 months ago
  • 0.0.2                                ...           3 months ago
  • 0.0.1                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 81
Last Month 81
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |