monkey-typescript

(★ 13)

An interpreted language for the browser and NodeJS, based on Monkey

파일 탐색기

  • .dockerignore
  • .gitignore
  • .npmignore
  • .nvmrc
  • .prettier.rc
  • Dockerfile
  • index.ts
  • package-lock.json
  • package.json
  • README.md
  • test.ts
  • tsconfig.json

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

git commit

설명 보기 ▼

Commit files to the repository.

git commit

Open an editor to write a message and commit staged files to the repository:

git commit {{[-m|--message]}} "{{message}}"

Commit staged files to the repository with the specified message:

git commit {{[-F|--file]}} {{path/to/commit_message_file}}

Commit staged files with a message read from a file:

🔍

git push

설명 보기 ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

git tag

설명 보기 ▼

Create, list, delete, or verify tags.
A tag is a static reference to a commit.

git tag

List all tags:

git tag {{tag_name}}

Create a tag with the given name pointing to the current commit:

git tag {{tag_name}} {{commit}}

Create a tag with the given name pointing to a given commit:

🔍

npm install

설명 보기 ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

npm publish

설명 보기 ▼

Publish a package to the npm registry.

npm publish

Publish the current package to the default npm registry:

npm publish {{path/to/package_directory}}

Publish a package from a specific directory:

npm publish --access public

Publish a scoped package with public access:

🔍

npm run

설명 보기 ▼

Run a script.

npm run

List available scripts:

npm run {{script_name}}

Run a script:

npm run {{script_name}} -- {{argument}} {{--option}}

Pass arguments to a script:

🔍

npm start

설명 보기 ▼

This command is an alias of `npm run start`.

tldr npm run

View documentation for the original command:

🔍

npx

설명 보기 ▼

이 명령은 `npm exec`의 별칭입니다.

tldr npm exec

자세한 내용은 원본 명령을 참고하세요:

🔍

nvm

설명 보기 ▼

Node.js 버전을 설치, 제거 또는 전환.
"12.8" 또는 "v16.13.1" 같은 버전 번호와 "stable", "system" 같은 레이블을 지원.
관련 항목: `asdf`.
더 많은 정보: <https://github.com/nvm-sh/nvm#usage>.

nvm install {{node_version}}

특정 버전의 Node.js 설치:

nvm install {{node_version}}

Node.js의 특정 버전 설치:

nvm use {{node_version}}

현재 셸에서 특정 버전의 Node.js 사용:

🔍

ts-node

설명 보기 ▼

TypeScript 코드를 컴파일 없이 직접 실행.
더 많은 정보: <https://typestrong.org/ts-node/docs/options/>.

ts-node {{path/to/file.ts}}

TypeScript 파일을 컴파일 없이 실행 (Node + `tsc`):

ts-node --skipProject {{path/to/file.ts}}

`tsconfig.json`을 로드하지 않고 TypeScript 파일 실행:

ts-node {{[-e|--eval]}} '{{console.log("Hello World")}}'

리터럴로 전달된 TypeScript 코드 평가:

// repository documentation