Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6d70ff5

Browse files
trottermhevery
authored andcommitted
chore(reakefile): auto install npm packages
1 parent ace54ff commit 6d70ff5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ Building AngularJS
2626

2727
Running Tests
2828
-------------
29-
Running tests requires installation of [Testacular](http://vojtajina.github.com/testacular):
30-
31-
sudo npm install -g testacular
32-
3329
To execute all unit tests, use:
3430

3531
rake test:unit

Rakefile

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ task :default => [:package]
2121

2222
desc 'Init the build workspace'
2323
task :init do
24+
%x(npm install)
25+
2426
FileUtils.mkdir(BUILD_DIR) unless File.directory?(BUILD_DIR)
2527

2628
v = YAML::load( File.open( 'version.yaml' ) )
@@ -343,6 +345,8 @@ end
343345

344346

345347
def start_testacular(config, singleRun, browsers, misc_options)
348+
Rake::Task[:init].invoke
349+
346350
sh "./node_modules/testacular/bin/testacular start " +
347351
"#{config} " +
348352
"#{'--single-run=true' if singleRun} " +

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "AngularJS",
33
"version": "0.0.0",
44
"dependencies" : {
5-
"testacular" : "canary",
6-
"jasmine-node" : "*",
7-
"q-fs" : "*",
8-
"qq" : "*"
5+
"testacular" : "0.5.9",
6+
"jasmine-node" : "1.2.3",
7+
"q-fs" : "0.1.36",
8+
"qq" : "0.3.5"
99
}
1010
}

0 commit comments

Comments
 (0)