0.0.1-227 • Published 1 month ago

@doctorlogic/react-components v0.0.1-227

Weekly downloads
208
License
ISC
Repository
gitlab
Last release
1 month ago

doctorlogic.react-components pipeline status

DoctorLogic's react component library. See the storybook.

Node Version

This project uses .node-version file to indicate the correct node version to use for this project. You can use a tool like NVS (Node Version Switcher) to manage the Node.js version on your machine. NVS is a cross-platform tool for switching between different versions and forks of Node.js.

How to Use NVS

  1. Install NVS by following the instructions on the NVS GitHub page.

  2. Once NVS is installed, you can switch to the Node.js version required for this project by running the following command in your terminal:

    nvs use

npm Scripts

npm run build

Cleans and builds the project into the dist directory.

Sub scripts:

  • build:ts - builds the .tsx? files
  • build:assets - copies the .scss and .svg assets into dist

npm run clean

Deletes the build output.

npm t[est]

Tests the project. Please add more!

We use jest with the ts-jest preset.

npm run storybook

Starts storybook locally.

npm run build-dl-storybook

Builds a static storybook site. See exporting storybook.

Storybook

The master branch is automatically deployed with GitLab Pages.

Versioning

We do all of our versioning using npm version. You should never modify the package.json:version manually.

Version Scheme

Because this project is still a work in progress, all versioning will be done with npm version prerelease. It is preferable to add a message with the -m flag. There is currently no standard template for the message, but consider something like Upgrade to %s <reason for upgrade>. (Note %s leaving %s in message will automatically be replaced with new version number)

After running npm version, be sure to run the git push and git push --tags commands (or simply git push --follow-tags).

Future Version Scheme

This is an initial plan and should be reviewed by the team

The current plan is to follow Semantic Versioning, with a slight caveat. While we will be using major, minor, patch, and prerelease, they will have slightly different meaning.

  • major - Same as SemVer. Will start at 1 and only be incremented if incompatible API changes are made. Would require a major change in the way our components work. A breaking change for a single component will not trigger a major version bump.
  • minor - Incremented at the beginning of each sprint. Will start at 1. While it is tied to the sprint, the actual number will not be related to the sprint number. At the end of each sprint (before the deploy), the new minor version (containing all of the sprint's changes) will be published.
  • patch - Used for bug fixes. If fixes are needed between sprints, a patch version will be published with the fixes for the previous sprint's minor version.
  • prerelease - Used for tickets. As tickets are merged, a new prerelease version will be published to be available in dependent projects.

Publishing


First time User

After getting access to npm pakage you will need to add your user locally - https://docs.npmjs.com/cli/v6/commands/npm-adduser


The project can be published by simply running npm publish. You do not need to build before publishing. The prepublishOnly script will be run to test and build the project before the publish is run.

Make sure to follow the instructions in versioning.

How to deploy changes to npm

  1. make sure you are on the master branch
  2. run git status to make sure your local is in sync
  3. run npm run build && npm test and visit dist folder to ensure scss files are there
  4. run npm version prerelease -m "Upgrade to %s <reason for upgrade>"
  5. run git push --follow-tags
  6. run npm publish
0.0.1-227

1 month ago

0.0.1-223

7 months ago

0.0.1-222

8 months ago

0.0.1-221

9 months ago

0.0.1-226

7 months ago

0.0.1-225

7 months ago

0.0.1-224

7 months ago

0.0.1-220

10 months ago

0.0.1-219

11 months ago

0.0.1-218

12 months ago

0.0.1-217

1 year ago

0.0.1-197

1 year ago

0.0.1-196

1 year ago

0.0.1-195

1 year ago

0.0.1-199

1 year ago

0.0.1-198

1 year ago

0.0.1-201

1 year ago

0.0.1-200

1 year ago

0.0.1-205

1 year ago

0.0.1-204

1 year ago

0.0.1-203

1 year ago

0.0.1-202

1 year ago

0.0.1-209

1 year ago

0.0.1-208

1 year ago

0.0.1-207

1 year ago

0.0.1-206

1 year ago

0.0.1-212

1 year ago

0.0.1-211

1 year ago

0.0.1-210

1 year ago

0.0.1-216

1 year ago

0.0.1-215

1 year ago

0.0.1-214

1 year ago

0.0.1-213

1 year ago

0.0.1-193

1 year ago

0.0.1-192

1 year ago

0.0.1-194

1 year ago

0.0.1-191

2 years ago

0.0.1-189

2 years ago

0.0.1-190

2 years ago

0.0.1-188

3 years ago

0.0.1-187

3 years ago

0.0.1-186

3 years ago

0.0.1-185

3 years ago

0.0.1-182

3 years ago

0.0.1-184

3 years ago

0.0.1-183

3 years ago

0.0.1-181

3 years ago

0.0.1-180

3 years ago

0.0.1-179

3 years ago

0.0.1-178

3 years ago

0.0.1-177

3 years ago

0.0.1-176

3 years ago

0.0.1-175

3 years ago

0.0.1-174

3 years ago

0.0.1-173

3 years ago

0.0.1-172

3 years ago

0.0.1-171

3 years ago

0.0.1-170

3 years ago

0.0.1-169

3 years ago

0.0.1-168

3 years ago

0.0.1-164

3 years ago

0.0.1-167

3 years ago

0.0.1-166

3 years ago

0.0.1-165

3 years ago

0.0.1-163

3 years ago

0.0.1-162

3 years ago

0.0.1-160

3 years ago

0.0.1-161

3 years ago

0.0.1-157

3 years ago

0.0.1-156

3 years ago

0.0.1-155

3 years ago

0.0.1-159

3 years ago

0.0.1-158

3 years ago

0.0.1-153

3 years ago

0.0.1-152

3 years ago

0.0.1-154

3 years ago

0.0.1-151

3 years ago

0.0.1-150

3 years ago

0.0.1-149

3 years ago

0.0.1-148

3 years ago

0.0.1-147

3 years ago

0.0.1-146

3 years ago

0.0.1-145

3 years ago

0.0.1-144

3 years ago

0.0.1-143

3 years ago

0.0.1-142

3 years ago

0.0.1-141

3 years ago

0.0.1-140

3 years ago

0.0.1-139

4 years ago

0.0.1-137

4 years ago

0.0.1-136

4 years ago

0.0.1-135

4 years ago

0.0.1-134

4 years ago

0.0.1-133

4 years ago

0.0.1-132

4 years ago

0.0.1-131

4 years ago

0.0.1-130

4 years ago

0.0.1-129

4 years ago

0.0.1-128

4 years ago

0.0.1-127

4 years ago

0.0.1-126

4 years ago

0.0.1-125

4 years ago

0.0.1-124

4 years ago

0.0.1-123

4 years ago

0.0.1-122

4 years ago

0.0.1-121

4 years ago

0.0.1-120

4 years ago

0.0.1-119

4 years ago

0.0.1-118

4 years ago

0.0.1-117

4 years ago

0.0.1-116

4 years ago

0.0.1-115

4 years ago

0.0.1-114

4 years ago

0.0.1-113

4 years ago

0.0.1-112

4 years ago

0.0.1-111

4 years ago

0.0.1-110

4 years ago

0.0.1-106

4 years ago

0.0.1-105

4 years ago

0.0.1-104

4 years ago

0.0.1-109

4 years ago

0.0.1-108

4 years ago

0.0.1-107

4 years ago

0.0.1-103

4 years ago

0.0.1-102

4 years ago

0.0.1-101

4 years ago

0.0.1-100

4 years ago

0.0.1-991

4 years ago

0.0.1-99

4 years ago

0.0.1-98

4 years ago

0.0.1-97

4 years ago

0.0.1-96

4 years ago

0.0.1-95

4 years ago

0.0.1-94

4 years ago

0.0.1-93

4 years ago

0.0.1-92

4 years ago

0.0.1-91

4 years ago

0.0.1-90

4 years ago

0.0.1-89

4 years ago

0.0.1-88

4 years ago

0.0.1-87

4 years ago

0.0.1-86

4 years ago

0.0.1-85

4 years ago

0.0.1-84

4 years ago

0.0.1-83

4 years ago

0.0.1-82

4 years ago

0.0.1-81

4 years ago

0.0.1-74

4 years ago

0.0.1-76

4 years ago

0.0.1-75

4 years ago

0.0.1-78

4 years ago

0.0.1-77

4 years ago

0.0.1-79

4 years ago

0.0.1-80

4 years ago

0.0.1-72

4 years ago

0.0.1-73

4 years ago

0.0.1-71

4 years ago

0.0.1-70

4 years ago

0.0.1-69

4 years ago

0.0.1-68

4 years ago

0.0.1-67

4 years ago

0.0.1-66

4 years ago

0.0.1-65

4 years ago

0.0.1-64

4 years ago

0.0.1-63

4 years ago

0.0.1-62

4 years ago

0.0.1-61

4 years ago

0.0.1-60

4 years ago

0.0.1-59

4 years ago

0.0.1-58

4 years ago

0.0.1-57

4 years ago

0.0.1-5

4 years ago

0.0.1-4

4 years ago

0.0.1-52

4 years ago

0.0.1-51

4 years ago

0.0.1-54

4 years ago

0.0.1-53

4 years ago

0.0.1-56

4 years ago

0.0.1-55

4 years ago

0.0.1-3

4 years ago

0.0.1-2

4 years ago

0.0.1-1

4 years ago

0.0.1-0

4 years ago

0.0.0

4 years ago