Skip to content

Commit

Permalink
Merge pull request #2 from seed-ui/feature/save-comments
Browse files Browse the repository at this point in the history
save comments for #1
  • Loading branch information
Narazaka authored Feb 4, 2017
2 parents f9b750f + c84de7b commit f1f1f5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"ruleJS": "^0.0.5",
"handsontable-ruleJS": "^0.0.4",
"metro": "^3.0.14",
"seedsontable": "*"
"seedsontable": "^0.0.4"
}
}
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ function save_data() {
const data = sheet.seedData.contentData();
const yaml = jsyaml.safeDump(data);
sheets_dir.new(`${sheet.name}.data.yml`).writeFileSync(yaml);
const comments = sheet.seedData.comments;
const commentsYaml = jsyaml.safeDump(comments);
sheets_dir.new(`${sheet.name}.comments.yml`).writeFileSync(commentsYaml);
const seedData = sheet.seedData.contentDataToHash({denyDevelop: true, denyNoSeed: true});
const seedYaml = jsyaml.safeDump(seedData);
seeds_dir.new(`${sheet.name}.yml`).writeFileSync(seedYaml);
Expand Down

0 comments on commit f1f1f5b

Please sign in to comment.