1.1.1 • Published 2 years ago
wwwtalal_npm2 v1.1.1
Setup
GitHub: Create repo wwwtalal_npm2
init, run:
npm i
npm run git:all
- Coding, run:
npm start
npm t
or
npm run test:watch
- Push latest updates to github, run
npm run git:update
- Production, run:
npm run build
npm run start:lib
- Setup for link (here), run:
npm link
then run example
- Consume using link (there), run:
npm link wwwtalal_npm2
- Consume using github:
npm i https://github.com/wwwtalal/wwwtalal_npm2 --save
- Setup for npm, may need to change private in package.json to false, run:
npm run publish
// npm publish // other way
- Consume using npm, run:
npm i wwwtalal_npm2 --save
- Example:
const {main} = require('wwwtalal_npm2')
console.log(main('Me'))
// Hello Me!