Skip to content

Commit 2187ca4

Browse files
committed
#349: fix strip boilerplate
1 parent f9a0d9e commit 2187ca4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tool/setup/dart/strip_boilerplate_project.dart

+14-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,20 @@ void main(List<String> args) {
4444
Logger.debug('Removed files');
4545

4646
Logger.debug('Clearing the model_generator');
47-
File('model_generator/config.yaml')
48-
..deleteSync()
49-
..createSync();
47+
_replaceInFile(
48+
'model_generator/config.yaml',
49+
'''##################################################################################
50+
##### TODO #####
51+
##################################################################################
52+
Todo:
53+
path: webservice/todo/
54+
properties:
55+
id: int?
56+
title: String
57+
completed: bool
58+
''',
59+
'',
60+
);
5061
Logger.debug('Cleared the model_generator');
5162

5263
Logger.debug('Removing import references');

0 commit comments

Comments
 (0)