new-npm-module
maintained by PandaClouds.com
new-npm-module
provides a clean way to create a new Panda Clouds npm module.
Usage
- Create the desired "new" repo on github. We will use a "birthday" module as an example
- clone "new" into directory "X"
- clone this project into the same directory "X"
- open terminal
- cd /my/dirX
- replace the "birthday" in this script with the name of your "new" repo
export NEW_NPM_PROJECT="birthday" && ls ./${NEW_NPM_PROJECT} && cp -r ./new-npm-module/* ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.eslintignore ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.eslintrc.js ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.gitignore ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.npmrc-deploy ./${NEW_NPM_PROJECT} && rm ./${NEW_NPM_PROJECT}/README.md && mv ./${NEW_NPM_PROJECT}/new_README.md ./${NEW_NPM_PROJECT}/README.md
- paste the command in to termial and press "enter"
- commit and push the "new" repo to github
- rename src/.js with "PCBirthday.js" or equivelant
- rename spec/.spec.js with "PCBirthday.spec.js" or equivelant
- rename in "spec/PCBirthday.spec.js" or equivelant
- in "README.md" AND "package.json" replace all:
- "" with "PCBirthday" or equivelant
- "" with "birthday" or equivelant
- "" with a one line secription of the module
- README.md: in the "Methods" section: Document all methods with examples
- README.md: in the "Usage" section: add an "end to end" example that uses all the functions together
Contributors
(Add your name)
- [*] Marc Smith