Vagrant: Add mocha and jshint

refs #4219
This commit is contained in:
Eric Lippmann 2013-06-06 17:01:05 +02:00 committed by Marius Hein
parent bf3c87ede4
commit e5df44dc6a
1 changed files with 30 additions and 0 deletions

View File

@ -276,3 +276,33 @@ exec { 'install nodejs':
unless => 'rpm -qa | grep ^npm', unless => 'rpm -qa | grep ^npm',
require => Class['epel'] require => Class['epel']
} }
exec { 'install npm/mocha':
command => 'npm install -g mocha',
creates => '/usr/lib/node_modules/mocha',
require => Exec['install nodejs']
}
exec { 'install npm/jshint':
command => 'npm install -g jshint',
creates => '/usr/lib/node_modules/jshint',
require => Exec['install nodejs']
}
exec { 'install npm/expect':
command => 'npm install -g expect',
creates => '/usr/lib/node_modules/expect',
require => Exec['install nodejs']
}
exec { 'install npm/should':
command => 'npm install -g should',
creates => '/usr/lib/node_modules/should',
require => Exec['install nodejs']
}
exec { 'install ZendFramework':
command => 'yum -d 0 -e 0 -y --enablerepo=epel install php-ZendFramework',
unless => 'rpm -qa | grep php-ZendFramework',
require => Class['epel']
}