Skip to content

Instantly share code, notes, and snippets.

@okunishinishi
Created October 3, 2015 04:27
Show Gist options
  • Save okunishinishi/9ce06a729d78509219dd to your computer and use it in GitHub Desktop.
Save okunishinishi/9ce06a729d78509219dd to your computer and use it in GitHub Desktop.
cozを使ってコピペ駆動開発を自動化する ref: http://qiita.com/okunishinishi@github/items/edecdf4e219e58809483
# Instal coz via npm
$ npm install coz -g
# Show installed coz version.
$ coz --version
// Define rendering rule.
module.exports = {
path: 'have-a-nice-day.txt', // File path to write
tmpl: '.have-a-nice-day.txt.hbs', // Template file
force: true, // Overwrite each time
mode: '444', // As readyonly file
data: require('./my-datasource.json') // Data to render
}
Have a nice day, {{name}}!
$ coz render .*.bud
Have a nice day, jhon!
var names = ["User", "Department"];
module.exports = names.map(function(name) {
return {
path: name + 'Entity.py',
force: true,
mode: '444'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment