Modules with NPM packages

Keyboard Shortcuts

In this video, Emmanuel Henri goes through the basics of creating an NPM package. He first shows you how to create an account, log in on the command line interface, create a package, publish it to NPM, and finally test the package.

- [Instructor] If you've installed a dependency…on a project,…then you know what an NPM package is…and how it can be used.…But what if you need to split your project…into different modules…and new to create your own NPM package?…Splitting your project into different NPM packages…as a dependency can significantly reduce…the size of your project when sharing…and allows easy reuse of your code.…You can either make that package private…or make it public like many popular packages.…Let me demonstrate.…The first thing that I want you to do…is go to npmjs.com…and once you get there, if you don't have an account,…I need you to sign up.…

If you do have an account, let's go ahead and log in.…So signing up is as easy entering email…and then your public name and then your password…and then you can create a new profile.…So if you're not using any NPM enterprise features…or if you're not creating any private packages,…then it's free.…So let's go ahead and log in.…Okay, so once you're logged in,…just leave it open, we'll come back to that page…

Resume Transcript Auto-Scroll

Author

Released

8/21/2017

React was built for large and intricate applications. If you want to build bigger and bolder apps with React, you need make its flexibility work for you. That means managing your project, your components, and your application state. Emmanuel Henri explores tools that make building and deploying at large scale easier, and let you see what is happening in your React application well above what you can determine with a typical debugger. Learn best practices for project organization, state management, testing, continuous integration, progressive web apps, and server-side rendering.