Thursday, April 2, 2020

What is NPM??

NPM stands for Node Package Manager and is a software registry for javaScript packages. NPM comes "packaged" with NodeJS, so you have to install node before you can use npm.  Once node is installed npm comes with its own CLI (command line interface) we will use to access, manage and install 3rd party packages we will need for our project.

If we are creating a new project, we will need to initialize the project by typing the init command below into the command line terminal in the root location of our project.




 $ npm init


This will walk us through the process of creating a package configuration file. This file holds all the configurations for our new node project. Below is an example of how the file will look after you have completed the npm init process

Wednesday, April 1, 2020

How to Deprecate a React Component

Deprecating a react component is a big decision, and you need to be careful not to leave our developer clients in a conundrum. To off set the pain level i have come up with some pointers that can be used to deprecate a component in a graceful way that will minimize the impact on dependent code.

Document, document, document...

It can not be overstated, you need to document your code. The first level of documentation should happen in your Wiki, newsletter, rss feed, or what have you.