Hemanth's Scribes

node

Publish Packages to NPM with Yeoman

Author Photo

Hemanth HM

Thumbnail

Yeoman makes creating and maintaining node packages easy with generator-node.

Getting Started

npm install -g generator-node
mkdir exmp && cd $_
yo node

Answer the prompts and get a complete scaffold:

create lib/exmp.js
create test/exmp_test.js
create .jshintrc
create .gitignore
create .travis.yml
create README.md
create Gruntfile.js
create package.json

## Directory Structure

.
├── Gruntfile.js
├── README.md
├── lib
   └── exmp.js
├── package.json
└── test
    └── exmp_test.js

The Gruntfile’s default task is ['jshint', 'nodeunit'] with nodeunit for testing.

#node#npm#yeoman
Author Photo

About Hemanth HM

Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.