Add to your javascript/node.js application with the following line of code:
var yaml = require('{%= name %}');
var data = {language: 'node_js', node_js: ['0.10', '0.11']};
yaml('.travis.yml', data, function(err) {
// do stuff with err
});
Would write .travis.yml
to disk with the following contents:
language: node_js
node_js:
- "0.10"
- "0.11"
yaml.sync('.travis.yml', data);
Would write .travis.yml
to disk with the following contents:
language: node_js
node_js:
- "0.10"
- "0.11"