🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@justeat/f-development-context

Package Overview
Dependencies
Maintainers
53
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justeat/f-development-context

A package to provide development context options for Storybook and WebDriver

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
5
150%
Maintainers
53
Weekly downloads
 
Created
Source

f-development-context

  • f-development-context provides entry points for the WebDriver Demo within components so that they can install the standard context of features
  • You shouldn't manually add this to any of your components; the generator will add the devDependency and wire up the WebDriver test scripts automatically

Contexts Added

  • $logger - The standard way to provide diagnostic output through this.$logger
  • $cookies - The standard way to interact with cookies through this.$cookies
  • i18n - The standard way to localise your components using <i18n>, this.i18n and $t('message')
  • VueX - The standard way to store state information in components
  • $gtm - The standard way to provide GTM access via this.$gtm (note: the variable name gtm is configurable)

$logger Interface

  • logError(message, store, additionalProperties)
  • logWarn(message, store, additionalProperties)
  • logInfo(message, store, additionalProperties)

$cookies Interface

  • Refer to third party documentation: https://www.npmjs.com/package/cookie-universal

i18n Interface

VueX Interface

$gtm Interface

Keywords

fozzie

FAQs

Package last updated on 14 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts