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

wcsmap-v2

v3.0.16

Published

WCS Map Component, developed by ICA

Downloads

70

Readme

WCS Map Component

Description

The WCS Map Component is a React component that provides a map interface for displaying and interacting with data from the WCS. The component is built using the ArcGIS Maps SDK for JavaScript and provides a variety of features for interacting with the map and the data displayed on it. It is intended to be included as a library in other projects and used to interact with the WCS's CMS.

Development began on this project in Q2 2022 and is ongoing, with new feature being released periodically at the request of the WCS's Convservation Technology team. The project is developed and maintained by ICA and is intended to be used exclusively by the WCS.

Features

For a detailed list of features, see the official documentation.

Git Branching Strategy

The project uses the following branching strategy:

  • main - The main branch where the source code of HEAD always reflects a production-ready state. This branch is used for deployment to npm and the live demo site.
  • develop - The default branch where the source code of HEAD always reflects a state with the latest delivered development changes for the next release. This branch is used for deployment to the QA environment.
  • feat/feature-name - Feature branches are used to develop new features for the upcoming or a distant future release. When starting development on a feature, the branch is created from the develop branch. Feature branches should be merged back into the develop branch when the feature is complete using a pull request. Use of rebase is mandatory for merging feature branches.
  • fix/fix-name - Bugfix branches are used to fix bugs from the develop or main branch. When starting development on a bugfix, the branch is created from the corresponding branch. Bugfix branches should be merged back into the origin branch when the fix is complete using a pull request. Use of rebase is mandatory for merging bugfix branches.

Code Style

The project uses ESLint and Prettier for code style and formatting. The configuration is based on the Airbnb style guide. The project uses Husky and Lint-Staged to run ESLint and Prettier on staged files before committing.

Testing

Testing for this project is done manually. Automated testing is not implemented at this time. There is a QA environment where the project is deployed for testing. There are custom events that can be triggered from the browser console to test the different features of the map component.

Deployment

The project is deployed to npm as a library manually when a new version is ready for release. The project is deployed to the QA environment as a standalone site using the library automatically using Azure Pipelines when changes are merged into the develop branch. The QA environment is hosted on an Azure App Service.

Dependencies

  • Node.js
  • npm
  • Docker (optional)
  • React
  • ArcGIS Maps SDK for JavaScript
  • Mantine
  • DndKit
  • Redux Toolkit
  • Vite

Usage

Installation and running locally

  1. Clone the repository
  2. Run npm install
  3. Run npm run dev
  4. Open http://localhost:5173 in your browser.

Build library for release

  1. Update the version in package.json and in the codebase.
  2. Run npm run build
  3. Run npm publish

Build for QA testing

  1. Run npm run build:qa
  2. Run npm run serve

Building and running in Docker

  1. Run docker build -t wcsmap .
  2. Run docker run -p 80:80 wcsmap
  3. Open http://localhost in your browser.

License

This project is licensed to the Wildlife Conservation Society under the terms of its contract with ICA. Unauthorized use, reproduction, or distribution is strictly prohibited.

Developers