vim package.json
{ "name": "roomsjs", "version": "0.0.21", "description": "Real Time Communication and Collaboration", "main": "index.js", "scripts": { "test": "listenToRoomEvents" }, "repository": { "type": "git", "url": "https://github.com/EladElrom/RoomsJS.git" }, "keywords": [ "roomsjs", "rooms", "collaboration", "" ], "author": "Elad Elrom", "license": "BSD" }
Than:
npm publish
Publish bower component:
- Create your package’s component.json file:
bower init
- Run Bower register yourpackagename
Bower register yourpackagename git://github.com/eladelrom/repositoryname
Example file
{ "name": "somelib", "version": "0.0.30", "main": "somelib.js", "ignore": [ "**/.*", "node_modules", "components" ] }
To create symlink:
At the project you want to use
npm link
Than at the project you want to use it in:
npm link [project-name]