일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- Vue.js
- cloud hsm 서명
- git rebase
- redux toolkit 설명
- ethers type
- erc4337 contract
- cloud hsm
- ethers websocket
- 티스토리챌린지
- ambiguous function description
- 스마트 컨트렉트 함수이름 중복
- Vue
- 오블완
- 스마트컨트렉트 함수이름 중복 호출
- ethers v6
- 머신러닝기초
- ethers typescript
- 스마트컨트렉트 예약어 함수이름 중복
- cloud hsm 사용하기
- 계정추상화
- 러스트 기초 학습
- erc4337
- 러스트기초
- 러스트 기초
- rust 기초
- 체인의정석
- vue기초
- 컨트렉트 동일한 함수이름 호출
- redux 기초
- SBT표준
Archives
- Today
- Total
체인의정석
package.json의 dependency 살펴보기 본문
728x90
https://docs.npmjs.com/cli/v7/configuring-npm/package-json
package.json | npm Docs
Specifics of npm's package.json handling
docs.npmjs.com
GitHub URLs
As of version 1.1.65, you can refer to GitHub urls as just "foo": "user/foo-project". Just as with git URLs, a commit-ish suffix can be included. For example:
dependencies에 url이나 git url을 사용할 수 있다.
{
"name": "foo",
"version": "0.0.0",
"dependencies": {
"express": "expressjs/express",
"mocha": "mochajs/mocha#4727d357ea",
"module": "user/repo#feature\/branch"
}
}
git+ssh://git@github.com:npm/cli.git#v1.0.27
git+ssh://git@github.com:npm/cli#semver:^5.0
git+https://isaacs@github.com/npm/cli.git
git://github.com/npm/cli.git#v1.0.27
로컬 주소 사용법
../foo/bar
~/foo/bar
./foo/bar
/foo/bar
{
"name": "baz",
"dependencies": {
"bar": "file:../foo/bar"
}
}
devDepenencies
테스트나 다큐먼트 프레임워크 같은 경우는 devDependencies 에 추가하여 모듈을 다운받는 사용자들이 다운 받을 필요가 없게 만든다. 또한 모든 실행 이전에 설치해야 하는 경우 만약 coffeeScript나 다른 언어를 사용하여 자바스크립트로 바꾸는 경우 prepare를 사용하여 devDependencies로 만들고 다른 코드를 실행하기 전에 미리 실행 시킬 수 있다.
{
"name": "ethopia-waza",
"description": "a delightfully fruity coffee varietal",
"version": "1.2.3",
"devDependencies": {
"coffee-script": "~1.6.3"
},
"scripts": {
"prepare": "coffee -o lib/ -c src/waza.coffee"
},
"main": "lib/waza.js"
}
728x90
반응형
'개발' 카테고리의 다른 글
typescript 커스텀 모듈 만들 시 발생가능한 에러사항 (0) | 2021.07.22 |
---|---|
typescript에서 enum에 string을 인덱스로 썼을 때 발생하는 문제 해결 (1) | 2021.07.22 |
jest.config - mouduleNameMapper @ 경로 인식 에러 해결하기 (0) | 2021.07.22 |
ts config.json (0) | 2021.07.22 |
Tool 소개) spectacle (0) | 2021.07.22 |
Comments