aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrotter Cashion2013-02-12 19:23:23 -0800
committerMisko Hevery2013-02-14 14:43:31 -0800
commit6092291bd74b91a1efa7f8ae66cff01418ec0359 (patch)
treead6362974f7e2f4b1c1b36ea214c0c054290d1b6
parent3d0f11212ffcdac060fa4bb990e217e3a0e229fc (diff)
downloadangular.js-6092291bd74b91a1efa7f8ae66cff01418ec0359.tar.bz2
chore(reakefile): auto install npm packages
-rw-r--r--README.md4
-rw-r--r--Rakefile4
-rw-r--r--package.json8
3 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index 92ba8d2f..a46f7355 100644
--- a/README.md
+++ b/README.md
@@ -26,10 +26,6 @@ Building AngularJS
Running Tests
-------------
-Running tests requires installation of [Testacular](http://vojtajina.github.com/testacular):
-
- sudo npm install -g testacular
-
To execute all unit tests, use:
rake test:unit
diff --git a/Rakefile b/Rakefile
index 3495fc14..436795ca 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' ) )
@@ -362,6 +364,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} " +
diff --git a/package.json b/package.json
index b3833816..9a3e9796 100644
--- a/package.json
+++ b/package.json
@@ -2,9 +2,9 @@
"name": "AngularJS",
"version": "0.0.0",
"dependencies" : {
- "testacular" : "canary",
- "jasmine-node" : "*",
- "q-fs" : "*",
- "qq" : "*"
+ "testacular" : "0.5.9",
+ "jasmine-node" : "1.2.3",
+ "q-fs" : "0.1.36",
+ "qq" : "0.3.5"
}
}