2017-11-08 1 views
1

좀 설치된 패키지에서 찾을 npm install 나는 실행하면 같은 일부 폴더 : docs, 나는이 사용NPM 설치 - 일부 폴더를 무시

내가 bower을 사용했다 samples, node_modules ... :

"ignore": [ 
    "node_modules/**", 
    "**/node_modules", 
    ".settings/**", 
    "src/test/**", 
    "target/**", 
    "src/main/resources/**", 
    "samples/**", 
    "docs/**" 
    ] 

npm을 사용하여 어떻게 할 수 있습니까? ignore (https://github.com/npm/npm/wiki/Files-and-Ignores#npmignore)에 NPM 문서 당으로

답변

0

, 당신 .npmignore라는 이름의 파일에 무시 목록 설정할 수 있습니다 : 그냥 이물과 같은

tests/ 
src/ 
samples/ 

을, 당신은 당신이 무시하고자하는 파일과 폴더를 목록으로 .