mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-27 18:04:47 +00:00
chore(reakefile): auto install npm packages
This commit is contained in:
parent
ace54ff08c
commit
6d70ff5c8d
3 changed files with 8 additions and 8 deletions
|
|
@ -26,10 +26,6 @@ Building AngularJS
|
||||||
|
|
||||||
Running Tests
|
Running Tests
|
||||||
-------------
|
-------------
|
||||||
Running tests requires installation of [Testacular](http://vojtajina.github.com/testacular):
|
|
||||||
|
|
||||||
sudo npm install -g testacular
|
|
||||||
|
|
||||||
To execute all unit tests, use:
|
To execute all unit tests, use:
|
||||||
|
|
||||||
rake test:unit
|
rake test:unit
|
||||||
|
|
|
||||||
4
Rakefile
4
Rakefile
|
|
@ -21,6 +21,8 @@ task :default => [:package]
|
||||||
|
|
||||||
desc 'Init the build workspace'
|
desc 'Init the build workspace'
|
||||||
task :init do
|
task :init do
|
||||||
|
%x(npm install)
|
||||||
|
|
||||||
FileUtils.mkdir(BUILD_DIR) unless File.directory?(BUILD_DIR)
|
FileUtils.mkdir(BUILD_DIR) unless File.directory?(BUILD_DIR)
|
||||||
|
|
||||||
v = YAML::load( File.open( 'version.yaml' ) )
|
v = YAML::load( File.open( 'version.yaml' ) )
|
||||||
|
|
@ -343,6 +345,8 @@ end
|
||||||
|
|
||||||
|
|
||||||
def start_testacular(config, singleRun, browsers, misc_options)
|
def start_testacular(config, singleRun, browsers, misc_options)
|
||||||
|
Rake::Task[:init].invoke
|
||||||
|
|
||||||
sh "./node_modules/testacular/bin/testacular start " +
|
sh "./node_modules/testacular/bin/testacular start " +
|
||||||
"#{config} " +
|
"#{config} " +
|
||||||
"#{'--single-run=true' if singleRun} " +
|
"#{'--single-run=true' if singleRun} " +
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
"name": "AngularJS",
|
"name": "AngularJS",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"testacular" : "canary",
|
"testacular" : "0.5.9",
|
||||||
"jasmine-node" : "*",
|
"jasmine-node" : "1.2.3",
|
||||||
"q-fs" : "*",
|
"q-fs" : "0.1.36",
|
||||||
"qq" : "*"
|
"qq" : "0.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue