3.1.4 • Published 5 months ago

@usace-watermanagement/groundwork-water v3.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Groundwork Water Components

Getting Started

npm install @usace-watermanagement/groundwork-water --save

Will install the groundwork water components to your local node_modules directory, and add it to your packages.json for future use.

Documentation

You can read the current Groundwork Water Documentation:
https://usace-watermanagement.github.io/groundwork-water/

View Source on Github

Dev Notes

Contribution Guidelines

  • Pull Requests

    • Where possible, commits and pull requests should be atomic:
      Keeping commits and PRs to one topic at a time
      • To ensure reviewers can more easily review code revisions and not miss anything
      • Reduces the frequency of merge conflicts
      • Provides separation of concern (for bugs) when only one issue is merged at a time
    • You must rebase your branch to main before you submit Pull Requests:
      • Terminal From your branch run
        1. git fetch origin
        2. git rebase origin/main
      • GUI In VSCode:
        This can also be done in VSCode using the Version Control menu:
        rebase from main
  • Workflow Recommendations

    • Use npm link to connect your project or the docs to the local generated groundwork-water
      • See the link script in package.json for details
    • Commit Often - Atomic Commits
      • i.e. if you update style of plot, do a commit related to "Update plotxyz style" then move on to next item/commit
    • Use VSCode or Similar Featured Editor to provide advanced features, save time, and integrate various utilities:
  • Extensions

    • TailwindCSS -> Provides you inline tailwind options in your className blocks
    • Prettier -> Industry standard for styling, large community, and works in many programming languages
    • Better Comments -> Highlight TODO and other type comments
    • Code Spell Checker -> Don't let the typos win
    • Git Graph -> Adds a graph icon on your "Source Control" line to let you view a visual representation of your git state
  • Styling / formatting

    • Style often and consider Format on Save for Workspace(Format on Save in Workspace)
    • Use the Prettier extension mentioned before to format with
      1. Press F1 to open command pallette
      2. Type "format", and then select "Format Document with..."
      3. "Select Prettier"

Working Directories

There are two directories of interest in this repository for Groundwork Water developers

/Docs

Documentation Website

The /docs directory contains the source code for the documentation website.

To run the docs you can do the following:

npm install
npm run build

cd docs
npm install
npm run dev

This will first install the dependencies for the library then it npm link's the package in the docs.

When you're making frequent changes you should consider importing the components directly from the package. i.e.

import { CWMSPlot } from "../path/to/lib/path/to/component";

This will install the dependencies, and then run the docs in development mode.

Lib

groundwork-water npm library

The /lib directory contains the source code for the package itself.

These are the components that would be shared with the community but also within the docs themselves for testing and to showcase the components.

Publishing

NOTE: You will first need to be added as a collaborator to the package on NPM.

To publish a new version of the package, run the following command:

npm run publish

This will build the package, and then publish it to NPM.

3.1.3

5 months ago

3.1.2

5 months ago

3.1.4

5 months ago

3.1.1

5 months ago

3.1.0

5 months ago

3.0.0

7 months ago

2.5.2

7 months ago

2.6.0

7 months ago

2.5.1

7 months ago

2.5.0

8 months ago

2.3.2

10 months ago

2.4.0

10 months ago

2.3.1

10 months ago

2.3.0

10 months ago

2.2.0

10 months ago

2.1.0

11 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.1

11 months ago

2.0.0

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago