The idea is to use a parsed rather than a evaluated configuration file to make the whole process safer and cleaner.
- Simple, readable format with little to no overhead.
- Access to environment variables.
- Sharing of configuration between multiple files.
| var spawn = require('child_process').spawn; | |
| var build = spawn('grunt', ['build']); | |
| build.on('exit', function(code){ | |
| console.log('Exit: ' + code); | |
| }); | |
| var test = spawn('grunt', ['test']); |
| exports.upcase = function(name) { | |
| return name.toUpperCase(); | |
| }; |
| a = -> 4 | |
| b = (a,b) -> a+b |
| // require our new directive | |
| var resolveSprockets = require(__dirname + '/resolve-sprockets.js'); | |
| // set files to the array that we got back | |
| var files = resolveSprockets('spec.js.coffee'); | |
| // Here goes the rest as usual |
| var hello = "stuff"; |
| # NVM as non root | |
| # | |
| # VERSION 0.1 | |
| FROM ubuntu | |
| MAINTAINER Friedel Ziegelmayer <[email protected]> | |
| # Install dependencies | |
| RUN apt-get update | |
| RUN apt-get install git curl bzip2 -yy |
| $ vagrant up --debug | |
| INFO global: Vagrant version: 1.4.0 | |
| INFO global: Ruby version: 2.0.0 | |
| INFO global: RubyGems version: 2.0.14 | |
| DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/box/plugin.rb | |
| INFO manager: Registered plugin: box command | |
| DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/destroy/plugin.rb | |
| INFO manager: Registered plugin: destroy command | |
| DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/halt/plugin.rb |