Making a new package for Node.js

Overview

Description

Process

  1. mkdir package-directory
  2. cd package-directory
  3. mkdir lib
  4. mkdir test
  5. git init
    • [ ]FIXME github.comにpackageのrepositoryを用意して、cloneした方がsmooth
  6. git branch
  7. git remote add github https://github.com/sakai-memoru/package-name
  8. git config list
  9. vim ./.gitignore
  10. add a line 'node_modules'
  11. vim ./index.js
  12. add lines javascript require('./lib')
  13. vim ./README.md
    • [ ]FIXME boilerplateを反映する
  14. npm init
  15. git add .
  16. git commit -m 'create'
  17. git log
  18. git push -u master

// --- end of file --//