1.0.1 • Published 2 years ago

daddy-jokes-sandra v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

  1. create a repo daddy-jokes
  2. 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'