Skip to content

Commit eb11e4c

Browse files
committed
Add 'autogenerated from...' lines to cson & plist
1 parent e2f78ed commit eb11e4c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ function buildCson(inName, outName) {
221221
yamlSchema = yaml.safeLoad(yamlSource),
222222
csonSource = cson.createCSONString(yamlSchema, {indent: 2});
223223

224+
csonSource = '# AUTOGENERATED FROM ' + inName + '\n' + csonSource;
224225
fs.writeFileSync(outName, csonSource);
225226
}
226227

@@ -230,6 +231,9 @@ function buildPList(inName, outName) {
230231
yamlSchema = yaml.safeLoad(yamlSource),
231232
plistSource = plist.build(yamlSchema);
232233

234+
plistSource = '<!-- AUTOGENERATED FROM ' + inName + ' -->\n' +
235+
plistSource;
236+
233237
fs.writeFileSync(outName, plistSource);
234238
}
235239

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syntaxdev",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Unit testing framework for TextMate/Sublime/Atom syntaxes.",
55
"main": "index.js",
66
"author": "Yury Selivanov <yury@magic.io>",

0 commit comments

Comments
 (0)