meteor .gitignore 파일에 무엇을 넣어야 합니까?
저는 새로운 유성 프로젝트가 있습니다.제 생각에는..meteordir에는 구성 파일(필요한)과 임시 파일(필요하지 않은)의 조합이 있습니다.
그래서 당신의 안에 있는 것은..gitignore?
버전 제어에서 제외하고 싶은 유일한 디렉토리는.meteor/local.
운석이 자동으로 오른쪽을 만듭니다..meteor그리고..meteor/.gitignore, 하지만 -- 아무것도 할 필요는 없습니다.
공용 저장소로 푸시하는 경우 구성 설정 파일을 여기에 넣을 수 있습니다.
저는 smtp, twitter, facebook 등의 서비스에 대한 암호화 키 및 다양한 암호와 같은 보안에 민감한 데이터 구성 설정을 config.js에 저장한 다음 .gitignore 또는 info/exclude 파일에 저장합니다.내가 공개 보고서에 원하지 않는 것들.
당신의 .gitignore에 대해 고려해야 할 추가적인 제안입니다.
당신의 무시는 또한 다음을 포함해야 합니다.
공용/노드_
그리고 당신은 이것을 적절하게 만들어진 패키지로 보충합니다.노드 모듈 종속성 설치를 관리하는 json.
이를 위해서는 새로운 곳에 설치할 때 오후 설치가 필요합니다.
이 기사에 따르면, 당신은 당신의 것을 무시해야 합니다.settings.json, 특히 API 키를 포함할 수 있는 환경별 정보가 있는 경우.
당신도 무시하고 싶은 유성 1.3과 함께node_modules. npm을 통해서 설치가 가능하기 때문에 모든 라이브러리를 git에 추가할 이유가 없습니다.node_modules폴더는 당신의 앱보다 더 클 가능성이 높습니다. (제외).meteor/local폴더)
유성이 만들어냅니다..gitignore에서.meteor기본적으로 디렉토리입니다.
하지만 당신의 프로젝트는.gitignore모든 민감한 데이터 구성 파일을 제외해야 합니다.node_modules.
사용하는 경우
- Intellij IDE 무시
.idea폴더 - 서브라임 텍스트 무시
sublime-projectsublime-workspace
만약 당신이 맥 유저라면 무시해도 됩니다.DS_Store
그리고 npm을 사용하면 무시합니다.npmwindow와 mac 사용자가 동일한 프로젝트에서 작업하는 경우, 동일한 npm 버전이 mac과 window에 대해 다르기 때문에 오류가 나타납니다.
웹스톰과 Mupx와 함께 배포된 Meteor 1.4와 함께 사용하는 것입니다.
# Meteor files to ignore now handled by .ignore file within .Meteor folder automatically
# settings file to ignore to protect API keys
settings.json
# MUP / MUPX file to ignore to protect server passwords and sensitive info.
mup.json
# npm package files to ignore
node?modules/
npm-debug.log
# Webstorm IDE files to ignore
.idea/*
# Typing type definition files to ignore. Webstorm uses type definitions for autocomplete even without typescript
typings/*
우리는 시스템 파일 등과 함께 많은 IDE와 Meteor를 포함하는 이 gitignore를 사용합니다.
### WebStorm ###
.idea/
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows shortcuts
*.lnk
### Linux ###
*~
# KDE directory preferences
.directory
### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# workspace files are user-specific
*.sublime-workspace
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
sftp-config.json
### Node/NPM ###
node_modules
npm-debug.log
### Development ###
dump
mochawesome-reports
ngrok
루트 디렉터리에 node_ modules이라는 이름의 설치된 패키지 디렉터리를 넣어야 하며, 프로젝트를 커밋하는 동안에는 무시됩니다.또한 product manager는 package.json을 사용하여 서버에 패키지를 쉽게 설치할 수 있습니다.
### MeteorJS ###
# default meteor build and local packages
.meteor/local
# meteor settings file
settings.json
# meteor build output files
*.tar.gz
# general swp files from vim
*.swp
# End of https://www.gitignore.io/api/meteorjs
당신은 이 사이트 https://www.gitignore.io/ 를 사용하여 어떤 프로젝트든 .gitignore 파일을 생성할 수 있습니다. 당신이 사용하는 기술과 당신의 IDE를 삽입하면 됩니다.
Intellij와 함께 사용하는 .gitignore 파일입니다.
node_modules/
.meteor/local/*
.idea/
npm-debug.log
packages/*/.npm/
- gitignore는 git 서버에 대한 불필요한 부담과 당신의 가져오기를 항상 무시하는 데 사용됩니다.
- 따라서 이 무지함 속에 넣을 수 있는 가장 좋은 것은 포장 가능한 개체입니다.여기에는 meteor downloadable 패키지가 포함되어 있으므로 gitignore 안에 "meteor/local"을 추가해야 합니다.
- 이를 gitignore 구성에 추가하면 프로젝트의 크기가 패키지의 경우보다 10배 작게 줄어듭니다.
- 지금 전체 프로젝트를 다른 위치에 잘라넣거나 .meteor/local 폴더 없이 저장소를 가져온 후 meteor 명령을 사용하여 프로젝트를 시작하면 meteor가 먼저 필요한 패키지를 다운로드한 다음 서버를 시작합니다.
.meteor/local은 버전 관리에서 누락되기를 원하는 유일한 항목입니다.
Meteor는 당신의 필요에 맞는 .gitignore 파일을 자동으로 생성합니다.
공용 저장소인 경우 "settings-development.json" 또는 AWS API 키와 같이 일반에 공개하고 싶지 않은 정보를 포함하는 다른 JSON 파일을 포함하고 싶을 것입니다.
그러나 Bitbucket 등은 필요에 맞는 무료 개인 저장소를 제공합니다.
언급URL : https://stackoverflow.com/questions/10728956/what-should-i-put-in-a-meteor-gitignore-file
'source' 카테고리의 다른 글
| 메모리에서 FLOOT 번호를 C로 표현하는 방법 (0) | 2023.11.06 |
|---|---|
| RecyclerView vs.리스트뷰 (0) | 2023.11.06 |
| 열에 대한 최소 길이 제약 조건 (0) | 2023.11.06 |
| angular.js - 유럽 표기법의 10진수 (0) | 2023.11.06 |
| Oracle 연결 압축? (0) | 2023.11.06 |