language65 個の有効ルール2026-09-30 検証済み
Node.js .gitignore テンプレート
Standard Node.js and JavaScript/TypeScript runtime gitignore template. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Node.js
選択されたテンプレート (1)
Node.js
language
Standard Node.js and JavaScript/TypeScript runtime gitignore template
#node#nodejs#npm
.gitignore
65 ルール•1 テンプレート
### Node.js #### Logslogs*.lognpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html)report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime datapids*.pid*.seed*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCoverlib-cov # Coverage directory used by tools like istanbulcoverage*.lcov # nyc test coverage.nyc_output # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files).grunt # Bower dependency directory (https://bower.io/)bower_components # node-waf configuration.lock-wscript # Compiled binary addons (https://nodejs.org/api/addons.html)build/Release # Dependency directoriesnode_modules/jspm_packages/ # Snowpack dependency directory (https://snowpack.dev/)web_modules/ # TypeScript cache*.tsbuildinfo # Optional npm cache directory.npm # Optional eslint cache.eslintcache # Optional stylelint cache.stylelintcache # Optional REPL history.node_repl_history # Output of 'npm pack'*.tgz # Yarn Integrity file.yarn-integrity # dotenv environment variable files.env.env.*!.env.example # parcel-bundler cache (https://parceljs.org/).cache.parcel-cache # Next.js build output.nextout # Nuxt.js build / generate output.nuxtdist.output # Gatsby files.cache/# Comment in the public line in if your project uses Gatsby and not Next.js# https://nextjs.org/blog/next-9-1#public-directory-support# public # vuepress build output.vuepress/dist # vuepress v2.x temp directory.temp # Sveltekit cache directory.svelte-kit/ # vitepress build output**/.vitepress/dist # vitepress cache directory**/.vitepress/cache # Docusaurus cache and generated files.docusaurus # Serverless directories.serverless/ # FuseBox cache.fusebox/ # DynamoDB Local files.dynamodb/ # Firebase cache directory.firebase/ # TernJS port file.tern-port # Stores Visual Studio Code versions used for testing Visual Studio Code extensions.vscode-test # pnpm.pnpm-store # yarn v3.pnp.*.yarn/*!.yarn/patches!.yarn/plugins!.yarn/releases!.yarn/sdks!.yarn/versions # Vite filesvite.config.js.timestamp-*vite.config.ts.timestamp-*.vite/ # Astro generated types.astro/ # Turbo Repo.turbo 151 行•UTF-8•LF
決定論的パイプライン
生ソース: Node.js .gitignore
クローラブルな公式アップストリーム原典node.gitignore•150 lines•UTF-8
# Logslogs*.lognpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html)report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime datapids*.pid*.seed*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCoverlib-cov # Coverage directory used by tools like istanbulcoverage*.lcov # nyc test coverage.nyc_output # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files).grunt # Bower dependency directory (https://bower.io/)bower_components # node-waf configuration.lock-wscript # Compiled binary addons (https://nodejs.org/api/addons.html)build/Release # Dependency directoriesnode_modules/jspm_packages/ # Snowpack dependency directory (https://snowpack.dev/)web_modules/ # TypeScript cache*.tsbuildinfo # Optional npm cache directory.npm # Optional eslint cache.eslintcache # Optional stylelint cache.stylelintcache # Optional REPL history.node_repl_history # Output of 'npm pack'*.tgz # Yarn Integrity file.yarn-integrity # dotenv environment variable files.env.env.*!.env.example # parcel-bundler cache (https://parceljs.org/).cache.parcel-cache # Next.js build output.nextout # Nuxt.js build / generate output.nuxtdist.output # Gatsby files.cache/# Comment in the public line in if your project uses Gatsby and not Next.js# https://nextjs.org/blog/next-9-1#public-directory-support# public # vuepress build output.vuepress/dist # vuepress v2.x temp directory.temp # Sveltekit cache directory.svelte-kit/ # vitepress build output**/.vitepress/dist # vitepress cache directory**/.vitepress/cache # Docusaurus cache and generated files.docusaurus # Serverless directories.serverless/ # FuseBox cache.fusebox/ # DynamoDB Local files.dynamodb/ # Firebase cache directory.firebase/ # TernJS port file.tern-port # Stores Visual Studio Code versions used for testing Visual Studio Code extensions.vscode-test # pnpm.pnpm-store # yarn v3.pnp.*.yarn/*!.yarn/patches!.yarn/plugins!.yarn/releases!.yarn/sdks!.yarn/versions # Vite filesvite.config.js.timestamp-*vite.config.ts.timestamp-*.vite/ # Astro generated types.astro/ # Turbo Repo.turbo 主要除外パターンの解説
依存関係・パッケージフォルダ
パッケージマネージャーによって再インストール可能な外部ライブラリや vendor フォルダを除外します。
bower_componentsnode_modules/jspm_packages/.pnpm-store.pnp.*
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
.nyc_outputbuild/Release*.tsbuildinfooutdist.output他 +2 件
環境変数・シークレット情報
API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。
.env.env.*!.env.example
キャッシュ・一時ファイル
コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。
*.lognpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log*coverage他 +2 件
OS・エディタ固有ファイル
macOS の .DS_Store やローカルエディタの設定フォルダなど、開発者固有のファイルをフィルタリングします。
.vscode-test
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。