beyond-sw-camp / be01-101

Beyond SW camp first player 101
17 stars 2 forks source link

자바스크립트로 나만의 CLI 프로그램 만들어 배포하기 #6

Open bhanwha opened 5 months ago

bhanwha commented 5 months ago

STEP 0

STEP 1

$ npm init
npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (temp) pysatellite
version: (1.0.0) 0.1.0
description: pysatellite
entry point: (index.js)
test command:
git repository:
keywords: pysatellite
author: pysatellite
license: (ISC)
About to write to /home/nori/code/temp/package.json:

{
  "name": "pysatellite",
  "version": "0.1.0",
  "description": "pysatellite",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "pysatellite"
  ],
  "author": "pysatellite",
  "license": "ISC"
}

Is this OK? (yes)
$ touch index.js
$ touch README.md
$ ls
README.md  index.js package.json
bhanwha commented 5 months ago

요구사항 1

  1. npm package name 은 중복을 피하기 위해 본인 npm id 와 일치하도록 만듬
  2. npm install -g <이름> 으로 설치하고 <이름> 으로 실행되는 프로그램을 만듬
  3. 프로그램 실행 시 출력 결과는 1줄로 "hello <이름>" 으로 표시
bhanwha commented 5 months ago

STEP 2

bhanwha commented 5 months ago

STEP 3

STEP 4

STEP 5

added 1 package in 156ms

설치 확인

$ npm list -g /home/nori/.nvm/versions/node/v20.11.0/lib ├── corepack@0.23.0 ├── hellojs@1.0.0 -> ./../../../../../code/hellojs ├── npm@10.2.4 └── pysatellite@0.5.0 -> ./../../../../../code/pysatellite

실행

$ pysatellite hello pysatellte


or

```sh
# 단일 실행
$ node index.js
hello pysatellte

STEP 6

$ npm publish

. . . . . npm notice package size: 573 B

npm notice unpacked size: 738 B

npm notice shasum: aab74cf88dc5bff53c7242bf26016e05dd1842f0 npm notice integrity: sha512-zrDAiLfOhGnA6[...]WCgsmI5EKaBIw== npm notice total files: 3

npm notice npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access

CoffeerLatte commented 5 months ago
yjinlee99 commented 5 months ago

https://github.com/yjinlee99/npm_yjinlee99 https://www.npmjs.com/package/yjinlee99

parc02 commented 5 months ago
ldh0308 commented 5 months ago

@ldh0308

*github

choi3179 commented 5 months ago

https://github.com/choi3179/study_pysatellite

dana096 commented 5 months ago
ae-chae commented 5 months ago

https://github.com/ae-chae/wvzxtc https://www.npmjs.com/package/wvzxtc

papercrane55123 commented 5 months ago
qkralsgml78 commented 5 months ago
INAUGURATE-Ryong commented 5 months ago

https://github.com/INAUGURATE-Ryong/npm_awya5

https://www.npmjs.com/package/awya5

temp12312yeap commented 5 months ago

[> # STEP 2

  • git repo 등록 후 아래 코맨트에 댓글 달아 주세요.

](https://github.com/temp12312yeap/npmRepository/tree/main)

jsmin6330 commented 5 months ago

https://github.com/jsmin6330/pysatellite_jsm6330

raheego commented 5 months ago

https://github.com/raheego/raheegoh

(☞゚ヮ゚)☞ 🎈 https://www.npmjs.com/package/raheegoh 🍟🍿

pdh4869 commented 5 months ago
hyunsungJoo commented 5 months ago

https://github.com/hyunsungJoo/npm https://www.npmjs.com/package/joocurtis

shimguh commented 5 months ago
minu1215 commented 5 months ago
Jaelinny commented 5 months ago
Seull1 commented 5 months ago
bhanwha commented 5 months ago
bhanwha commented 5 months ago

요구사항 2

CoffeerLatte commented 5 months ago

https://www.npmjs.com/package/coffeer

pdh4869 commented 5 months ago

https://www.npmjs.com/package/pdh4869?activeTab=readme

INAUGURATE-Ryong commented 5 months ago
papercrane55123 commented 5 months ago

요구사항 2

parc02 commented 5 months ago

https://www.npmjs.com/package/pascalmin1/v/0.2.1

jsmin6330 commented 5 months ago

https://www.npmjs.com/package/star_jsm6330

ldh0308 commented 5 months ago

https://www.npmjs.com/package/leedonghyuk

qkralsgml78 commented 5 months ago

https://www.npmjs.com/package/qkralsgml78

Seull1 commented 5 months ago

https://www.npmjs.com/package/seull

Jaelinny commented 5 months ago

https://www.npmjs.com/package/jaelinny

dana096 commented 5 months ago

https://www.npmjs.com/package/dana096

choi3179 commented 5 months ago

https://www.npmjs.com/package/replica3179

Afresh2 commented 5 months ago

https://github.com/Afresh2/afresh111 https://www.npmjs.com/package/afresh111

Afresh2 commented 5 months ago
dhkdtld37 commented 5 months ago