# @sachinvedaraj/my-pkg-test

> A template for revvsales npm packages

Latest version **1.0.5** (published 2020-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sachinvedaraj/my-pkg-test
pnpm add @sachinvedaraj/my-pkg-test
yarn add @sachinvedaraj/my-pkg-test
bun add @sachinvedaraj/my-pkg-test
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-09-15 |
| First published | 2020-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ajai J |
| Maintainers | sachinvedaraj |

## Links

- npm: https://www.npmjs.com/package/@sachinvedaraj/my-pkg-test
- Repository: https://github.com/revvsales/revv-pkg
- Homepage: https://github.com/revvsales/revv-pkg#readme
- Issues: https://github.com/revvsales/revv-pkg/issues
- npm.io page: https://npm.io/package/@sachinvedaraj/my-pkg-test

## Dependencies (2)

- [husky](https://npm.io/package/husky.md) ^4.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Recent versions

- 1.0.5 (latest) — 2020-09-15
- 1.0.4 — 2020-09-15
- 1.0.3 — 2020-09-15
- 1.0.2 — 2020-09-15

## README

<h1 align="center">📦 revv-pkg</h1>

> A template for revvsales npm packages

[![NPM](https://img.shields.io/npm/v/revv-pkg.svg)](https://www.npmjs.com/package/revv-pkg) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Getting started
   - Install node **v12.16.0** in your system using NVM. [How to guide](https://itnext.io/nvm-the-easiest-way-to-switch-node-js-environments-on-your-machine-in-a-flash-17babb7d5f1b)
  - Open a terminal & execute the below cmd one by one from the root path
      - `npm install -g yarn`
      - `git clone https://github.com/revvsales/revv-pkg.git`
      - `cd revv-pkg`
  - Comment all the lines in `example/src/App.js` path and save the file.
  - Now go back to terminal & execute the below cmd.
      - `yarn install`
      - `yarn start`
        - Once the app starts successfully, you should get something like this **Watching source, compiling to dist:**,
        - Now stop the process by entering `ctrl+c` for windows or `cmd+c` for mac.
      - `cd example`
      - `yarn install`
        - If the install is not successfull and you are getting an error like this **An unexpected error occurred: "ENOENT: no such file or directory**
        - Enter `yarn install` again in the terminal.
      - `cd ..`
      - `yarn link`
      - `yarn link revv-pkg`
  - Un-comment all the lines in `example/src/App.js` path and save the file. (Lint will throw error & prevent running of the app because `dist/` folder is not generated & git ignored. To hande, this step is done).
  - Open Visual Studio Code & install the following plugins.
      - https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
      - https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
      - https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
      - https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
  - Open **User** settings.json in vscode editor by hitting **(cmd+,)** in case of **mac** and **(ctrl+,)** in case of **windows** and add the following code and save the file.
    - *Note: You can add your own setting to customize editor, but these are mandatory settings needed to run the app*
```bash
{
  "breadcrumbs.enabled": true,
  "better-comments.tags": [
    {
      "tag": "!",
      "color": "#FF2D00",
      "strikethrough": false,
      "backgroundColor": "transparent"
    },
    {
      "tag": "?",
      "color": "#3498DB",
      "strikethrough": false,
      "backgroundColor": "transparent"
    },
    {
      "tag": "//",
      "color": "#474747",
      "strikethrough": true,
      "backgroundColor": "transparent"
    },
    {
      "tag": "todo",
      "color": "#FF8C00",
      "strikethrough": false,
      "backgroundColor": "transparent"
    },
    {
      "tag": "*",
      "color": "#98C379",
      "strikethrough": false,
      "backgroundColor": "transparent"
    },
    {
      "tag": "::",
      "color": "#f78c6c",
      "strikethrough": false,
      "backgroundColor": "transparent"
    }
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.fixAll.stylelint": true
  },
  "editor.fontSize": 14,
  "editor.tabSize": 2,
  "eslint.enable": true,
  "window.zoomLevel": 0,
  "workbench.activityBar.visible": true,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "diffEditor.ignoreTrimWhitespace": false,
  "javascript.validate.enable": false,
}

```

## Development

Local development is broken into two parts (ideally using two tabs).

First, navigate to root path where project is cloned.

```bash
yarn start # runs watch flag of the npm library
```

The second part will be running the `example/` create-react-app that's linked to the local version of your module, navigate to root path where project is cloned

```bash
# (in another tab)
cd example
yarn start # runs create-react-app dev server
```

If all goes well, you should see the blow image in the browser.
![alt text](https://imgur.com/5nxsf9L.jpg)

Now, anytime you make a change to your library in `src/` or to the example app's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.

## Guidelines
**Branch Name**
 - Creating a branch for a
	 - feature  `feat/<branchName>`
	 - bug fix `fix/<branchName>`
	 - refactor `refactor/<branchName>`
	 - performance `perf/<branchName>`
     - css updates `style/<branchName>`

**Commit Message**
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>type</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>feat</td>
<td>A new feature</td>
</tr>
<tr>
<td>fix</td>
<td>A bug fix</td>
</tr>
<tr>
<td>docs</td>
<td>Documentation only changes</td>
</tr>
<tr>
<td>style</td>
<td>Css changes</td>
</tr>
<tr>
<td>refactor</td>
<td>A code change that neither fixes a bug nor adds a feature</td>
</tr>
<tr>
<td>perf</td>
<td>A code change that improves performance</td>
</tr>
<tr>
<td>test</td>
<td>Adding missing or correcting existing tests</td>
</tr>
<tr>
<td>chore</td>
<td>Changes to the build process or auxiliary tools and libraries such as documentation generation</td>
</tr>
</tr>
</tbody>
</table>

**Example Code**

*For Feature:*

    feat: Integrated custom table feature 

*For Fix:*

    fix: Fixed table hover issue
    fix(701134547): Handled else condition  // For bug raised from monday.com
    fix(ODIN-1JZ): Fixed 'length' of null   // For bug raised from sentry

## Pull Request Rules
- *The **Title** and **Commit Message** should follow [Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines), only then you can merge your PR.*
## Release Types

<table class="table table-striped table-bordered">
<thead>
<tr>
<th>commit msg conventions</th>
<th>description</th>
<th>release type</th>
</tr>
</thead>
<tbody>
<tr>
<td>feat</td>
<td>A new feature</td>
<td>minor</td>
</tr>
<tr>
<td>fix</td>
<td>A bug fix</td>
<td>patch</td>
</tr>
<tr>
<td>docs</td>
<td>Documentation only changes</td>
<td>/</td>
</tr>
<tr>
<td>style</td>
<td>Css and changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)</td>
<td>/</td>
</tr>
<tr>
<td>refactor</td>
<td>A code change that neither fixes a bug nor adds a feature</td>
<td>/</td>
</tr>
<tr>
<td>perf</td>
<td>A code change that improves performance</td>
<td>patch</td>
</tr>
<tr>
<td>test</td>
<td>Adding missing or correcting existing tests</td>
<td>/</td>
</tr>
<tr>
<td>chore</td>
<td>Changes to the build process or auxiliary tools and libraries such as documentation generation</td>
<td>/</td>
</tr>
<tr>
<td colspan="3">If the body contains `BREAKING CHANGE`, `BREAKING CHANGES` or `BREAKING` it will result in a a new major release</td>
</tr>
<tr>
<td colspan="3">The highest release type will determine the global release type when multiple commits are made</td>
</tr>
</tbody>
</table>

## Example Code:
*Resulting in a patch release:*

    fix(dish): don't overcook rare steaks

*Resulting in a minor release:*

    feat(dish): add mac and cheese

Resulting in a major release:

    feat(chef): add chef Bob
    BREAKING CHANGE:   
    Chef Louis has been fired, all dishes must go to chef Bob

## Install

```bash
yarn install --save revv-pkg
```

## Usage

```jsx
import React, { Component } from 'react'

import { MyComponent } from 'revv-pkg'
import 'revv-pkg/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## Documentation
Coming soon.


## License

MIT © [Ajai J](https://github.com/AjaiJ)

---
_Source: https://npm.io/package/@sachinvedaraj/my-pkg-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
