@@ -5,6 +5,7 @@ import Protocol from '../protocols';
5
5
import ABI from '../protocols/ethereum/abi' ;
6
6
import { version } from '../version' ;
7
7
import { getDockerFile } from './get-docker-file' ;
8
+ import { getGitIgnore } from './get-git-ignore' ;
8
9
import { generateEventIndexingHandlers } from './mapping' ;
9
10
import { abiEvents , generateEventType , generateExampleEntityType } from './schema' ;
10
11
import { generateTestsFiles } from './tests' ;
@@ -159,6 +160,10 @@ dataSources:
159
160
return await prettier . format ( getDockerFile ( ) , { parser : 'yaml' } ) ;
160
161
}
161
162
163
+ generateGitIgnoreFile ( ) {
164
+ return getGitIgnore ( ) ;
165
+ }
166
+
162
167
async generateMappings ( ) {
163
168
return this . protocol . getMappingScaffold ( )
164
169
? { [ `${ strings . kebabCase ( this . contractName ) } .ts` ] : await this . generateMapping ( ) }
@@ -206,6 +211,7 @@ dataSources:
206
211
'subgraph.yaml' : await this . generateManifest ( ) ,
207
212
'schema.graphql' : await this . generateSchema ( ) ,
208
213
'package.json' : await this . generatePackageJsonForSubstreams ( ) ,
214
+ '.gitignore' : await this . generateGitIgnoreFile ( ) ,
209
215
} ;
210
216
}
211
217
return {
@@ -214,6 +220,7 @@ dataSources:
214
220
'schema.graphql' : await this . generateSchema ( ) ,
215
221
'tsconfig.json' : await this . generateTsConfig ( ) ,
216
222
'docker-compose.yml' : await this . generateDockerFileConfig ( ) ,
223
+ '.gitignore' : await this . generateGitIgnoreFile ( ) ,
217
224
src : await this . generateMappings ( ) ,
218
225
abis : await this . generateABIs ( ) ,
219
226
tests : await this . generateTests ( ) ,
0 commit comments