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

@globalfishingwatch/map-components

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalfishingwatch/map-components

Set of components used in global fishing watch world

latest
Source
npmnpm
Version
3.8.15
Version published
Maintainers
2
Created
Source

⚠️ LEGACY ⚠️ GFW map components

npm version

All components has been moved to a monorepo and are now available at @globalfishingwatch/ui-components.

This repo only contains now legacy components used in data-portal and map-client

  • Timebar (2.2 branch)
  • MapModule

Using the components

Check out the online documentation

Components structure

component
│   component.js    // Component logic
│   component.css   // Component styles
│   component.mdx   // Generates component documentation
│   index.js // Optional file that generates a new folder below the components one
│            // and exports component code and any possible child component dependencies
│            // This makes possible components code splitting easily with
│            // import Component from '@globalfishingwatch/map-components/components/[component-name]
│
└───subcomponent
│       subcomponent.js
│       subcomponent.css
└───────────────────────

Develop with components

In order to do easier edits on the components while developping parent apps, use this repo locally:

git clone git@github.com:GlobalFishingWatch/map-components.git
cd map-components
yarn install
yarn link
yarn start
cd sandbox
yarn install
yarn link "@globalfishingwatch/map-components"
yarn start

Documentation

Docz is used to include live components documentation using mdx.

This playground could be used locally to test the components running:

yarn docz:dev

Release

Using zeit release to make our life easier, so just run

npx release major|minor|patch

and it will update the package.json, generate the github release and push your changes and finally:

npm publish

(⚠️ don't forget to bump dependency version on parent project if needed!)

FAQs

Package last updated on 08 Feb 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