aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorTrotter Cashion2013-02-12 19:23:23 -0800
committerMisko Hevery2013-02-14 14:43:55 -0800
commit6d70ff5c8d1e032ca7d29c48ca55882a64ca1487 (patch)
tree845d3a21a68e04e9ca38db4bdad50713dce0fa17 /Rakefile
parentace54ff08c4593195b49eadb04d258e6409d969e (diff)
downloadangular.js-6d70ff5c8d1e032ca7d29c48ca55882a64ca1487.tar.bz2
chore(reakefile): auto install npm packages
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 1b443e2b..cdb1d781 100644
--- a/Rakefile
+++ b/Rakefile
@@ -21,6 +21,8 @@ task :default => [:package]
desc 'Init the build workspace'
task :init do
+ %x(npm install)
+
FileUtils.mkdir(BUILD_DIR) unless File.directory?(BUILD_DIR)
v = YAML::load( File.open( 'version.yaml' ) )
@@ -343,6 +345,8 @@ end
def start_testacular(config, singleRun, browsers, misc_options)
+ Rake::Task[:init].invoke
+
sh "./node_modules/testacular/bin/testacular start " +
"#{config} " +
"#{'--single-run=true' if singleRun} " +