1.0.1 • Published 3 years ago
daddy-jokes-sandra v1.0.1
MODULE TWO
1
git init- create master as master branch git branch
2. Add gitignore
- create file gitignore
3. connect my project to github repo
- create a repo daddy-jokes
- copy and paste git remote add origin git@github.com:Sandrajasmin/daddy-jokes.git git branch -M main git push -u origin main
4. add type to package.json
"name": "daddy-jokes", "version": "1.0.0", "description": "## 1", "type": "module", "main": "index.js",
5. import one liner joker
create script and add import joker from "one-liner-joke";
console.log(joker.getRandomJoke().body());
6. change test to run npm run test
"scripts": { "test": "node src/js/joker.js"
7. log in to npm
- npm log in
8. publish
- npm publish
9. go to npm and sarch
- npm i (package from npm)
CHECK error: failed to push some refs to 'github.com:Sandrajasmin/daddy-jokes.git'
1.0.1
3 years ago