@TehranJs
when your account was created
NPM INIT
npm install lodash --saveinstall your Project dependencies
"dependencies": {
"lodash": "^4.16.4"
}package.json
"dependencies": {
"lodash": "4.16.4"
}npm set save-exact truenpm install tehranjsGit has the ability to tag specific points in history as being important
$ git tag 1.0.0
$ git push --tagsIf supplied with -m or --message config option, npm will use it as a commit message when creating a version commit
$ npm version [<newversion> | major | minor | patch]$ npm version patch -m "Upgrade to %s for reasons"$ git push origin master --tags$ npm install mocha chai --save-devafter write your test file run:
$ mocha index.test.js -w"scripts": {
"test": "mocha index.test.js -w"
}or edit test script in your package.json
$ npm test$ npm i -g semantic-release-clisetup automated semver compliant package publishing
$ pm install -g commitizen$ npm install -g istanbulYet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests.