diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000000..c6439c8d70e7
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,14 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
diff --git a/.gitignore b/.gitignore
index 8030f8d77761..3142dc3b70ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,5 @@ performance/temp*.html
*~
angular.js.tmproj
node_modules
-jsTestDriver*.conf
angular.xcodeproj
.idea
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000000..d209a1b20618
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: node_js
+node_js:
+ - 0.8
+
+before_script:
+ - export DISPLAY=:99.0
+ - sh -e /etc/init.d/xvfb start
+ - npm install -g testacular@canary
+ - rake package
+ - ./nodeserver.sh > /dev/null &
+
+script:
+ - rake test[Firefox,"--reporters=dots"]
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb963e6a4cc2..c0b68ef134bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,99 @@
+
+# 1.1.0 increase-gravatas (2012-08-31)
+
+_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html)._
+
+## Features
+
+- **$http:** support custom reponseType
+ ([e0a54f6b](https://github.com/angular/angular.js/commit/e0a54f6b206dc2b6595f2bc3a17c5932e7477545),
+ [#1013](https://github.com/angular/angular.js/issues/1013))
+- **$interpolate:**
+ - provide contextual error messages
+ ([d804bbcd](https://github.com/angular/angular.js/commit/d804bbcd51ec83bee1f4a3ccd42c3bd7eb38a988))
+ - expose start/end symbols in run phase
+ ([58f121a5](https://github.com/angular/angular.js/commit/58f121a5c293ed57043e22ed526fdf99642fca81))
+- **$sniffer:** auto detect CSP mode (currently requires Chrome on dev channel)
+ ([167aa0c2](https://github.com/angular/angular.js/commit/167aa0c29c998be33c49d33302e099b36d1ce0be))
+
+This release also contains all bug fixes available in [1.0.2](#1.0.2).
+
+
+
+
+# 1.0.2 debilitating-awesomeness (2012-08-31)
+
+
+## Bug Fixes
+
+- **$compile:** denormalize directive templates
+ ([dfe99836](https://github.com/angular/angular.js/commit/dfe99836cd98c2a1b0f9bde6216bd44088de275a))
+- **$interpolate:** $interpolateProvider.endSymbol() returns startSymbol
+ ([20348717](https://github.com/angular/angular.js/commit/20348717640c0ef405c9fdcc8fec5b566efc48b3))
+- **jqLite:** better support for xhtml
+ ([d3fa7a2e](https://github.com/angular/angular.js/commit/d3fa7a2e9e93c9dae13d852b28c878f7d6b7c420),
+ [#1301](https://github.com/angular/angular.js/issues/1301))
+- **mocks:** free up memory after every spec
+ ([1a8642aa](https://github.com/angular/angular.js/commit/1a8642aac2de40dccdab464e58dc164006c300bb))
+- **e2e test runner:** Adding meta tag to avoid cache issues
+ ([5318588d](https://github.com/angular/angular.js/commit/5318588d6e8ee9a31f4002affd6858d25305aabf))
+- Directives:
+ - **form:** prevent page reload when form destroyed
+ ([054d40f3](https://github.com/angular/angular.js/commit/054d40f338f9000cddcf7f0513af37328b88ef41),
+ [#1238](https://github.com/angular/angular.js/issues/1238))
+ - **ngList:** remove data bound flicker
+ ([fa62ea81](https://github.com/angular/angular.js/commit/fa62ea810f6c701e898dd07c6c9228f13d5b5e02))
+ - **ngPluralize:** fixes ng-pluralize when using non-standard start/end symbols
+ ([e85774f7](https://github.com/angular/angular.js/commit/e85774f709b9f681b0ff8d829b07568b0f844a62),
+ [#1134](https://github.com/angular/angular.js/issues/1134))
+ - **option:** support option elements in datalist
+ ([9767f7bd](https://github.com/angular/angular.js/commit/9767f7bdd3e1ce6f65bdea992d67369ead13d813),
+ [#1165](https://github.com/angular/angular.js/issues/1165))
+
+
+## Docs
+
+- Conceptual Overview of AngularJS (high level overview of how things work):
+
+ ([7a5f25f6](https://github.com/angular/angular.js/commit/7a5f25f6671eb5f51b06615d74a05855ab79f31e))
+- Lots of spelling, grammar and other fixes:
+ [9a710c78](https://github.com/angular/angular.js/commit/9a710c788d880785d2b02a9c5411eb15e9c278bf),
+ [847d2da0](https://github.com/angular/angular.js/commit/847d2da0f8d1e265eda7b4dd3e7eb52ac86d784e),
+ [dbefd671](https://github.com/angular/angular.js/commit/dbefd671e41c3bda481850bb7e566349e275d759),
+ [cab5e1d9](https://github.com/angular/angular.js/commit/cab5e1d9b363eac6fd31b15c5b86f30993e2f147),
+ [f00b6cca](https://github.com/angular/angular.js/commit/f00b6cca024a9418f353651f29c984f934575bd9),
+ [2e365168](https://github.com/angular/angular.js/commit/2e3651686c2bd84cf464ecc236c8ad77e61179df),
+ [536de148](https://github.com/angular/angular.js/commit/536de148214290f0b4a0595fa16c00da5e527e79),
+ [a1107e81](https://github.com/angular/angular.js/commit/a1107e81ebf2254caf75718de2e3ec773cce0c56),
+ [5ef9ed87](https://github.com/angular/angular.js/commit/5ef9ed87d82b109715a87e9aa1b1d5b63f515d3a),
+ [8c81a0f3](https://github.com/angular/angular.js/commit/8c81a0f3728b9308854ceb9bf392ec467b95d8eb),
+ [bde931af](https://github.com/angular/angular.js/commit/bde931afd5cf2483df236e06992666a0a4182794),
+ [6553fe68](https://github.com/angular/angular.js/commit/6553fe68d17d42ec25e0c592ceaa1077cc0ec4f6),
+ [13b5fd1b](https://github.com/angular/angular.js/commit/13b5fd1b9d60f1a9187da8a89db9272284ccdac4),
+ [17209d5b](https://github.com/angular/angular.js/commit/17209d5b4a579edf8425715b5cdf25bc5cd96711),
+ [31c82560](https://github.com/angular/angular.js/commit/31c825607dd524241c811ca3e401b119c810e977),
+ [ab6937e2](https://github.com/angular/angular.js/commit/ab6937e2518bfd77d9fe42e3d2e11fe4a7a16814),
+ [fbfda241](https://github.com/angular/angular.js/commit/fbfda241f616bcfe8273f501dd49120a3cb35fab),
+ [206371b7](https://github.com/angular/angular.js/commit/206371b7372c242db234ca8da12d1c7a8a322d54),
+ [b6b92bd8](https://github.com/angular/angular.js/commit/b6b92bd866e1d6d066f1c9bf1937496cd3e28664),
+ [79f2d843](https://github.com/angular/angular.js/commit/79f2d843a8458bfdc23fe9f179a1416fe21f7533),
+ [64a9cd8f](https://github.com/angular/angular.js/commit/64a9cd8f4fac1c518869a1c955fe60bd6ef76439),
+ [7f6e1326](https://github.com/angular/angular.js/commit/7f6e1326f3a7a6a2ba2dbd48dd6571ebe929a7c1),
+ [1fd2b3d4](https://github.com/angular/angular.js/commit/1fd2b3d402f36e395a1fe9ea7e3f91a1b2833426),
+ [d56d69cc](https://github.com/angular/angular.js/commit/d56d69cc8319f69135a17a9bb5ae394123b33c51),
+ [01e726b2](https://github.com/angular/angular.js/commit/01e726b2fa3fb0d2584c9bb8df116ff3a9f05879),
+ [16136216](https://github.com/angular/angular.js/commit/161362164532af3578c9e3e8b52cd80b15345add),
+ [92a3d282](https://github.com/angular/angular.js/commit/92a3d2821856c75eb95f8ec6ccf26d6a9b37fdd9),
+ [4c585019](https://github.com/angular/angular.js/commit/4c5850195699b1d982963f25399d24bf8b815f81),
+ [c076fe08](https://github.com/angular/angular.js/commit/c076fe08cf47e8af4b5e8845aed917ebb7dbd593),
+ [2473412b](https://github.com/angular/angular.js/commit/2473412ba55f7c47f2ca24311312ce95ee11949e),
+ [1f2d5000](https://github.com/angular/angular.js/commit/1f2d50000e82630bfce6eb9cf0a8da752fd1e826),
+ [5026315d](https://github.com/angular/angular.js/commit/5026315d6f4495d636d86ae2a022fb55cc0ca211),
+ [f0a090dd](https://github.com/angular/angular.js/commit/f0a090ddf256d0c144e705c0cdf4216d824140f9),
+ [6d9313a6](https://github.com/angular/angular.js/commit/6d9313a68d82654d389c0b2c3e4af148382f14be)) and more!
+
+
+
# 1.0.1 thorium-shielding (2012-06-25)
diff --git a/README.md b/README.md
index b6a98cad3474..f29dd2dd0f1e 100644
--- a/README.md
+++ b/README.md
@@ -15,15 +15,31 @@ it makes development fun!
* Tutorial: http://docs.angularjs.org/tutorial
* API Docs: http://docs.angularjs.org
* Developer Guide: http://docs.angularjs.org/guide
+* Contribution guidelines: http://docs.angularjs.org/misc/contribute
-Compiling
+Building AngularJS
---------
- rake compile
+[Once you have your environment setup](http://docs.angularjs.org/misc/contribute) just run:
+
+ rake package
+
Running Tests
-------------
- ./server.sh # start the server
- open http://localhost:9876/capture # capture browser
- ./test.sh # run all unit 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
+
+To execute end-to-end (e2e) tests, use:
+ rake package
+ rake webserver &
+ rake test:e2e
+To learn more about the rake tasks, run `rake -T` and also read our
+[contribution guidelines](http://docs.angularjs.org/misc/contribute) and instructions in this
+[commit message](https://github.com/angular/angular.js/commit/9d168f058f9c6d7eeae0daa7cb72ea4e02a0003a).
diff --git a/Rakefile b/Rakefile
index 9c18da9dc728..3a8cc00ee34a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,13 @@
require 'yaml'
include FileUtils
+
+## High level flow of the build:
+##
+## clean -> init -> concat -> minify -> package
+##
+
+
content = File.open('angularFiles.js', 'r') {|f| f.read }
files = eval(content.gsub(/\};(\s|\S)*/, '}').
gsub(/angularFiles = /, '').
@@ -9,7 +16,7 @@ files = eval(content.gsub(/\};(\s|\S)*/, '}').
BUILD_DIR = 'build'
-task :default => [:compile, :test]
+task :default => [:package]
desc 'Init the build workspace'
@@ -19,12 +26,13 @@ task :init do
v = YAML::load( File.open( 'version.yaml' ) )
match = v['version'].match(/^([^-]*)(-snapshot)?$/)
- NG_VERSION = Struct.new(:full, :major, :minor, :dot, :codename).
+ NG_VERSION = Struct.new(:full, :major, :minor, :dot, :codename, :stable).
new(match[1] + (match[2] ? ('-' + %x(git rev-parse HEAD)[0..7]) : ''),
match[1].split('.')[0],
match[1].split('.')[1],
match[1].split('.')[2].sub(/\D+.*$/, ''),
- v['codename'])
+ v['codename'],
+ v['stable'])
end
@@ -32,11 +40,12 @@ desc 'Clean Generated Files'
task :clean do
FileUtils.rm_r(BUILD_DIR, :force => true)
FileUtils.mkdir(BUILD_DIR)
+ FileUtils.rm_r('test_out', :force => true)
end
-desc 'Compile Scenario'
-task :compile_scenario => :init do
+desc 'Concat Scenario'
+task :concat_scenario => :init do
concat_file('angular-scenario.js', [
'lib/jquery/jquery.js',
@@ -47,28 +56,10 @@ task :compile_scenario => :init do
], gen_css('css/angular.css') + "\n" + gen_css('css/angular-scenario.css'))
end
-desc 'Compile JSTD Scenario Adapter'
-task :compile_jstd_scenario_adapter => :init do
-
- concat_file('jstd-scenario-adapter.js', [
- 'src/ngScenario/jstd-scenario-adapter/angular.prefix',
- 'src/ngScenario/jstd-scenario-adapter/Adapter.js',
- 'src/ngScenario/jstd-scenario-adapter/angular.suffix',
- ])
-
- # TODO(vojta) use jstd configuration when implemented
- # (instead of including jstd-adapter-config.js)
- File.open(path_to('jstd-scenario-adapter-config.js'), 'w') do |f|
- f.write("/**\r\n" +
- " * Configuration for jstd scenario adapter \n */\n" +
- "var jstdScenarioAdapter = {\n relativeUrlPrefix: '/build/docs/'\n};\n")
- end
-end
-desc 'Compile JavaScript'
-task :compile => [:init, :compile_scenario, :compile_jstd_scenario_adapter] do
-
+desc 'Concat AngularJS files'
+task :concat => :init do
concat_file('angular.js', [
'src/angular.prefix',
files['angularSrc'],
@@ -98,133 +89,139 @@ task :compile => [:init, :compile_scenario, :compile_jstd_scenario_adapter] do
FileUtils.cp 'src/ngMock/angular-mocks.js', path_to('angular-mocks.js')
- closure_compile('angular.js')
- closure_compile('angular-cookies.js')
- closure_compile('angular-loader.js')
- closure_compile('angular-resource.js')
- closure_compile('angular-sanitize.js')
- closure_compile('angular-bootstrap.js')
- closure_compile('angular-bootstrap-prettify.js')
+ rewrite_file(path_to('angular-mocks.js')) do |content|
+ content.sub!('"NG_VERSION_FULL"', NG_VERSION.full)
+ end
+end
+
+
+desc 'Minify JavaScript'
+task :minify => [:init, :concat, :concat_scenario] do
+ [ 'angular.js',
+ 'angular-cookies.js',
+ 'angular-loader.js',
+ 'angular-resource.js',
+ 'angular-sanitize.js',
+ 'angular-bootstrap.js',
+ 'angular-bootstrap-prettify.js'
+ ].each do |file|
+ fork { closure_compile(file) }
+ end
+
+ Process.waitall
+end
+
+desc 'Generate version.txt file'
+task :version => [:init] do
+ `echo #{NG_VERSION.full} > #{path_to('version.txt')}`
end
desc 'Generate docs'
task :docs => [:init] do
`node docs/src/gen-docs.js`
- rewrite_file(path_to('docs/.htaccess')) do |content|
- content.sub!('"NG_VERSION_FULL"', NG_VERSION.full)
+
+ [ path_to('docs/.htaccess'),
+ path_to('docs/index.html'),
+ path_to('docs/index-debug.html'),
+ path_to('docs/index-nocache.html'),
+ path_to('docs/index-jq.html'),
+ path_to('docs/index-jq-debug.html'),
+ path_to('docs/index-jq-nocache.html'),
+ path_to('docs/docs-scenario.html')
+ ].each do |src|
+ rewrite_file(src) do |content|
+ content.sub!('"NG_VERSION_FULL"', NG_VERSION.full).
+ sub('"NG_VERSION_STABLE"', NG_VERSION.stable)
+ end
end
end
desc 'Create angular distribution'
-task :package => [:clean, :compile, :docs] do
- tarball = "angular-#{NG_VERSION.full}.tgz"
-
- pkg_dir = path_to("pkg/angular-#{NG_VERSION.full}")
- FileUtils.rm_r(path_to('pkg'), :force => true)
- FileUtils.mkdir_p(pkg_dir)
-
- [ path_to('angular.js'),
- path_to('angular.min.js'),
- path_to('angular-loader.js'),
- path_to('angular-loader.min.js'),
- path_to('angular-bootstrap.js'),
- path_to('angular-bootstrap.min.js'),
- path_to('angular-bootstrap-prettify.js'),
- path_to('angular-bootstrap-prettify.min.js'),
- path_to('angular-mocks.js'),
- path_to('angular-cookies.js'),
- path_to('angular-cookies.min.js'),
- path_to('angular-resource.js'),
- path_to('angular-resource.min.js'),
- path_to('angular-sanitize.js'),
- path_to('angular-sanitize.min.js'),
- path_to('angular-scenario.js'),
- path_to('jstd-scenario-adapter.js'),
- path_to('jstd-scenario-adapter-config.js'),
- ].each do |src|
- dest = src.gsub(/^.*\//, '').gsub(/((\.min)?\.js)$/, "-#{NG_VERSION.full}\\1")
- FileUtils.cp(src, pkg_dir + '/' + dest)
- end
+task :package => [:clean, :minify, :version, :docs] do
+ zip_dir = "angular-#{NG_VERSION.full}"
+ zip_file = "#{zip_dir}.zip"
- FileUtils.cp_r path_to('i18n'), "#{pkg_dir}/i18n-#{NG_VERSION.full}"
- FileUtils.cp_r path_to('docs'), "#{pkg_dir}/docs-#{NG_VERSION.full}"
+ FileUtils.ln_s BUILD_DIR, zip_dir
+ %x(zip -r #{zip_file} #{zip_dir})
+ FileUtils.rm zip_dir
- rewrite_file("#{pkg_dir}/angular-mocks-#{NG_VERSION.full}.js") do |content|
- content.sub!('"NG_VERSION_FULL"', NG_VERSION.full)
- end
+ FileUtils.mv zip_file, path_to(zip_file)
+ puts "Package created: #{path_to(zip_file)}"
+end
- [ "#{pkg_dir}/docs-#{NG_VERSION.full}/index.html",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq.html",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/index-nocache.html",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq-nocache.html",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/index-debug.html",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq-debug.html"
- ].each do |src|
- rewrite_file(src) do |content|
- content.gsub!(/'angular(.*)\.js/, '\'angular\1-' + NG_VERSION.full + '.js')
- end
- end
+
+desc 'Start development webserver'
+task :webserver, :port do |t, args|
+ exec "node lib/nodeserver/server.js #{args[:port]}"
+end
- rewrite_file("#{pkg_dir}/docs-#{NG_VERSION.full}/docs-scenario.html") do |content|
- content.sub!('angular-scenario.js', "angular-scenario-#{NG_VERSION.full}.js")
+desc 'Run all AngularJS tests'
+task :test, :browsers, :misc_options do |t, args|
+ [ 'test:jqlite',
+ 'test:jquery',
+ 'test:modules',
+ 'test:e2e'
+ ].each do |task|
+ Rake::Task[task].invoke(args[:browsers], args[:misc_options])
end
+end
- [ "#{pkg_dir}/docs-#{NG_VERSION.full}/appcache.manifest",
- "#{pkg_dir}/docs-#{NG_VERSION.full}/appcache-offline.manifest"
- ].each do |src|
- rewrite_file(src) do |content|
- content.sub!('../angular.min.js', "angular-#{NG_VERSION.full}.min.js").
- sub!('/build/docs/', "/#{NG_VERSION.full}/docs-#{NG_VERSION.full}/")
+namespace :test do
+
+ desc 'Run all unit tests (single run)'
+ task :unit, :browsers, :misc_options do |t, args|
+ [ 'test:jqlite',
+ 'test:jquery',
+ 'test:modules'
+ ].each do |task|
+ Rake::Task[task].invoke(args[:browsers], args[:misc_options])
end
end
- %x(tar -czf #{path_to(tarball)} -C #{path_to('pkg')} .)
+ desc 'Run jqLite-based unit test suite (single run)'
+ task :jqlite, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-jqlite.conf.js', true, args[:browsers], args[:misc_options])
+ end
- FileUtils.cp path_to(tarball), pkg_dir
- FileUtils.mv pkg_dir, path_to(['pkg', NG_VERSION.full])
-
- puts "Package created: #{path_to(tarball)}"
-end
+ desc 'Run jQuery-based unit test suite (single run)'
+ task :jquery, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-jquery.conf.js', true, args[:browsers], args[:misc_options])
+ end
-namespace :server do
- desc 'Run JsTestDriver Server'
- task :start do
- sh %x(java -jar lib/jstestdriver/JsTestDriver.jar --browser open --port 9876)
+ desc 'Run bundled modules unit test suite (single run)'
+ task :modules, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-modules.conf.js', true, args[:browsers], args[:misc_options])
end
- desc 'Run JavaScript tests against the server'
- task :test do
- sh %(java -jar lib/jstestdriver/JsTestDriver.jar --tests all)
- end
+ desc 'Run e2e test suite (single run)'
+ task :e2e, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-e2e.conf.js', true, args[:browsers], args[:misc_options])
+ end
end
-desc 'Run JavaScript tests'
-task :test do
- sh %(java -jar lib/jstestdriver/JsTestDriver.jar --tests all --browser open --port 9876)
-end
-
+namespace :autotest do
-desc 'Lint'
-task :lint do
- out = %x(lib/jsl/jsl -conf lib/jsl/jsl.default.conf)
- print out
-end
+ desc 'Run jqLite-based unit test suite (autowatch)'
+ task :jqlite, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-jqlite.conf.js', false, args[:browsers], args[:misc_options])
+ end
-desc 'push_angularjs'
-task :push_angularjs => :compile do
- sh %(cat angularjs.ftp | ftp -N angularjs.netrc angularjs.org)
+ desc 'Run jQuery-based unit test suite (autowatch)'
+ task :jquery, :browsers, :misc_options do |t, args|
+ start_testacular('testacular-jquery.conf.js', false, args[:browsers], args[:misc_options])
+ end
end
@@ -271,11 +268,14 @@ end
def closure_compile(filename)
- puts "Compiling #{filename} ..."
+ puts "Minifying #{filename} ..."
min_path = path_to(filename.gsub(/\.js$/, '.min.js'))
- %x(java -jar lib/closure-compiler/compiler.jar \
+ %x(java \
+ -client \
+ -d32 \
+ -jar lib/closure-compiler/compiler.jar \
--compilation_level SIMPLE_OPTIMIZATIONS \
--language_in ECMASCRIPT5_STRICT \
--js #{path_to(filename)} \
@@ -289,7 +289,7 @@ end
def concat_file(filename, deps, footer='')
- puts "Building #{filename} ..."
+ puts "Creating #{filename} ..."
File.open(path_to(filename), 'w') do |f|
concat = 'cat ' + deps.flatten.join(' ')
@@ -326,3 +326,12 @@ def rewrite_file(filename)
f.write content
end
end
+
+
+def start_testacular(config, singleRun, browsers, misc_options)
+ sh "./node_modules/testacular/bin/testacular start " +
+ "#{config} " +
+ "#{'--single-run=true' if singleRun} " +
+ "#{'--browsers=' + browsers.gsub('+', ',') if browsers} " +
+ "#{(misc_options || '').gsub('+', ',')}"
+end
diff --git a/angularFiles.js b/angularFiles.js
index 70502b044712..02bdf3a1d062 100644
--- a/angularFiles.js
+++ b/angularFiles.js
@@ -196,36 +196,30 @@ angularFiles = {
]
};
-// Execute only in slim-jim
-if (typeof JASMINE_ADAPTER !== 'undefined') {
- // Testacular config
- var mergedFiles = [];
- angularFiles.jstd.forEach(function(file) {
- // replace @ref
- var match = file.match(/^\@(.*)/);
- if (match) {
- var deps = angularFiles[match[1]];
- if (!deps) {
- console.log('No dependency:' + file)
+if (exports) {
+ exports.files = angularFiles
+ exports.mergeFiles = function mergeFiles() {
+ var files = [];
+
+ [].splice.call(arguments, 0).forEach(function(file) {
+ if (file.match(/testacular/)) {
+ files.push(file);
+ } else {
+ angularFiles[file].forEach(function(f) {
+ // replace @ref
+ var match = f.match(/^\@(.*)/);
+ if (match) {
+ var deps = angularFiles[match[1]];
+ files = files.concat(deps);
+ } else {
+ if (!/jstd|jasmine/.test(f)) { //TODO(i): remove once we don't have jstd/jasmine in repo
+ files.push(f);
+ }
+ }
+ });
}
- mergedFiles = mergedFiles.concat(deps);
- } else {
- mergedFiles.push(file);
- }
- });
+ });
- files = [JASMINE, JASMINE_ADAPTER];
-
- mergedFiles.forEach(function(file){
- if (/jstd|jasmine/.test(file)) return;
- files.push(file);
- });
-
-
- exclude = angularFiles.jstdExclude;
-
- autoWatch = true;
- autoWatchInterval = 1;
- logLevel = LOG_INFO;
- logColors = true;
+ return files;
+ }
}
diff --git a/angularjs.ftp b/angularjs.ftp
deleted file mode 100644
index dbe1039761ba..000000000000
--- a/angularjs.ftp
+++ /dev/null
@@ -1,5 +0,0 @@
-bin
-cd angularjs.org/ng
-put angular-debug.js js/angular-debug.js
-put angular-minified.js js/angular-minified.js
-put angular-scenario.js js/angular-scenario.js
diff --git a/check-size.sh b/check-size.sh
index 0ae5521d04db..fd46d0c9227b 100755
--- a/check-size.sh
+++ b/check-size.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-rake compile
+rake minify
gzip -c < build/angular.min.js > build/angular.min.js.gzip
ls -l build/angular.min.*
diff --git a/docs/content/api/index.ngdoc b/docs/content/api/index.ngdoc
index 88e354f5d9f3..d0ab64e63510 100644
--- a/docs/content/api/index.ngdoc
+++ b/docs/content/api/index.ngdoc
@@ -2,6 +2,6 @@
@name API Reference
@description
-Use the API Refference documentation when you need more information about a specific feature. Check out
-{@link guide/ Developer Guide} for AngularJS concepts. If you are new to AngularJS we recomend the
+Use the API Reference documentation when you need more information about a specific feature. Check out
+{@link guide/ Developer Guide} for AngularJS concepts. If you are new to AngularJS we recommend the
{@link tutorial/ Tutorial}.
diff --git a/docs/content/guide/bootstrap.ngdoc b/docs/content/guide/bootstrap.ngdoc
index e4ead9231e3f..3be24bb56281 100644
--- a/docs/content/guide/bootstrap.ngdoc
+++ b/docs/content/guide/bootstrap.ngdoc
@@ -24,8 +24,8 @@ initialization.