chore(*): get rid of Bower in favor of Yarn aliases & checked-in packages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see https://github.com/yarnpkg/yarn/issues/1483); the first of them exists
on npm as the google-closure-compiler but only versions newer than we used are
published and they don't work with ng-closure-compiler so - instead - both were
checked in to the repository.

Fixes #16268
Fixes #14961
Ref yarnpkg/yarn#1483
This commit is contained in:
Michał Gołębiowski-Owczarek
2017-12-27 19:16:46 +01:00
committed by Martin Staffa
parent 8da3aef91c
commit ff2ce9ddde
27 changed files with 884 additions and 885 deletions
+1 -1
View File
@@ -1,4 +1,3 @@
bower_components/**
build/**
docs/app/assets/js/angular-bootstrap/**
docs/config/templates/**
@@ -8,3 +7,4 @@ src/angular.bind.js
src/ngParseExt/ucd.js
i18n/closure/**
tmp/**
vendor/**
+1 -3
View File
@@ -10,7 +10,6 @@ performance/temp*.html
*.swp
angular.js.tmproj
node_modules/
bower_components/
angular.xcodeproj
.idea
*.iml
@@ -19,7 +18,6 @@ angular.xcodeproj
libpeerconnection.log
npm-debug.log
/tmp/
/scripts/bower/bower-*
.vscode
*.log
*.stackdump
*.stackdump
+1 -3
View File
@@ -5,8 +5,6 @@ node_js:
cache:
yarn: true
directories:
- bower_components
branches:
except:
@@ -32,7 +30,7 @@ before_install:
- export PATH="$HOME/.yarn/bin:$PATH"
before_script:
- du -sh ./node_modules ./bower_components/ || true
- du -sh ./node_modules || true
- "./scripts/travis/before_build.sh"
script:
- "./scripts/travis/build.sh"
+3 -3
View File
@@ -9,7 +9,7 @@
## <a name="setup"> Development Setup
This document describes how to set up your development environment to build and test AngularJS, and
explains the basic mechanics of using `git`, `node`, `yarn`, `grunt`, and `bower`.
explains the basic mechanics of using `git`, `node`, `yarn` and `grunt`.
### Installing Dependencies
@@ -64,10 +64,10 @@ cd angular.js
# Add the main AngularJS repository as an upstream remote to your repository:
git remote add upstream "https://github.com/angular/angular.js.git"
# Install node.js dependencies:
# Install JavaScript dependencies:
yarn install
# Build AngularJS (which will install `bower` dependencies automatically):
# Build AngularJS:
yarn grunt package
```
-2
View File
@@ -426,14 +426,12 @@ module.exports = function(grunt) {
'shell:promises-aplus-tests'
]);
grunt.registerTask('minify', [
'bower',
'clean',
'build',
'minall'
]);
grunt.registerTask('webserver', ['connect:devserver']);
grunt.registerTask('package', [
'bower',
'validate-angular-files',
'clean',
'buildall',
+1 -1
View File
@@ -95,7 +95,7 @@ You can mention him in the relevant thread like this: `@btford`.
> Thanks for submitting this issue!
> Unfortunately, we don't think this functionality belongs in core.
> The good news is that you could easily implement this as a third-party module and publish it on Bower and/or to the npm repository.
> The good news is that you could easily implement this as a third-party module and publish it to the npm registry.
## Assigning Work
+4 -4
View File
@@ -171,7 +171,7 @@ var angularFiles = {
],
'karma': [
'bower_components/jquery/dist/jquery.js',
'node_modules/jquery/dist/jquery.js',
'test/jquery_remove.js',
'@angularSrc',
'@angularSrcModules',
@@ -202,7 +202,7 @@ var angularFiles = {
],
'karmaJquery': [
'bower_components/jquery/dist/jquery.js',
'node_modules/jquery/dist/jquery.js',
'test/jquery_alias.js',
'@angularSrc',
'@angularSrcModules',
@@ -220,8 +220,8 @@ var angularFiles = {
angularFiles['karmaJquery' + jQueryVersion] = []
.concat(angularFiles.karmaJquery)
.map(function(path) {
if (path.startsWith('bower_components/jquery')) {
return path.replace(/^bower_components\/jquery/, 'bower_components/jquery-' + jQueryVersion);
if (path.startsWith('node_modules/jquery')) {
return path.replace(/^node_modules\/jquery/, 'node_modules/jquery-' + jQueryVersion);
}
return path;
});
+1 -1
View File
@@ -1 +1 @@
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js
+1 -1
View File
@@ -1 +1 @@
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js
+1 -1
View File
@@ -1 +1 @@
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js
-11
View File
@@ -1,11 +0,0 @@
{
"name": "angularjs",
"license": "MIT",
"devDependencies": {
"jquery": "3.2.1",
"jquery-2.2": "jquery#2.2.4",
"jquery-2.1": "jquery#2.1.4",
"closure-compiler": "https://dl.google.com/closure-compiler/compiler-20140814.zip",
"ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.4/assets/ng-closure-runner.zip"
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ var path = require('canonical-path');
/**
* dgService getVersion
* @description
* Find the current version of the bower component (or node module)
* Find the current version of the node module
*/
module.exports = function getVersion(readFilesProcessor) {
var basePath = readFilesProcessor.basePath;
+1 -1
View File
@@ -13,7 +13,7 @@ var rename = require('gulp-rename');
// We indicate to gulp that tasks are async by returning the stream.
// Gulp can then wait for the stream to close before starting dependent tasks.
// See clean and bower for async tasks, and see assets and doc-gen for dependent tasks below
// See clean for an async task, and see assets and doc-gen for dependent tasks below.
var outputFolder = '../build/docs';
-12
View File
@@ -2,7 +2,6 @@
/* eslint-disable no-invalid-this */
var bower = require('bower');
var util = require('./utils.js');
var npmRun = require('npm-run');
@@ -63,15 +62,4 @@ module.exports = function(grunt) {
grunt.registerTask('collect-errors', 'Combine stripped error files', function() {
util.collectErrors();
});
grunt.registerTask('bower', 'Install Bower packages.', function() {
var done = this.async();
bower.commands.install()
.on('log', function(result) {
grunt.log.ok('bower: ' + result.id + ' ' + result.data.endpoint.name);
})
.on('error', grunt.fail.warn.bind(grunt.fail))
.on('end', done);
});
};
+2 -2
View File
@@ -187,8 +187,8 @@ module.exports = {
'java ' +
this.java32flags() + ' ' +
this.memoryRequirement() + ' ' +
'-cp bower_components/closure-compiler/compiler.jar' + classPathSep +
'bower_components/ng-closure-runner/ngcompiler.jar ' +
'-cp vendor/closure-compiler/compiler.jar' + classPathSep +
'vendor/ng-closure-runner/ngcompiler.jar ' +
'org.angularjs.closurerunner.NgClosureRunner ' +
'--compilation_level ' + compilationLevel + ' ' +
'--language_in ECMASCRIPT5_STRICT ' +
+3 -2
View File
@@ -23,7 +23,6 @@
"angular-benchpress": "0.x.x",
"benchmark": "1.x.x",
"bootstrap": "3.1.1",
"bower": "~1.3.9",
"browserstacktunnel-wrapper": "2.0.0",
"canonical-path": "0.0.2",
"changez": "^2.1.1",
@@ -60,7 +59,9 @@
"jasmine-core": "^2.8.0",
"jasmine-node": "^2.0.0",
"jasmine-reporters": "^2.2.0",
"jquery": "^3.2.1",
"jquery": "3.2.1",
"jquery-2.1": "npm:jquery@2.1.4",
"jquery-2.2": "npm:jquery@2.2.4",
"karma": "^2.0.0",
"karma-browserstack-launcher": "^1.2.0",
"karma-chrome-launcher": "^2.1.1",
+1 -2
View File
@@ -18,7 +18,6 @@ fi
# unit runs the docs tests too which need a built version of the code
if [[ "$JOB" = unit-* ]]; then
grunt bower
grunt validate-angular-files
grunt build
fi
@@ -28,4 +27,4 @@ fi
if [ "$JOB" != "ci-checks" ]; then
echo "wait_for_browser_provider"
./scripts/travis/wait_for_browser_provider.sh
fi
fi
+1 -1
View File
@@ -7,7 +7,7 @@
<script>
var jQuery_2_1_0 = jQuery.noConflict();
</script>
<script src="../../../../bower_components/jquery/dist/jquery.js"></script>
<script src="../../../../node_modules/jquery/dist/jquery.js"></script>
<script src="angular.js"></script>
<script src="script.js"></script>
</body>
+1 -1
View File
@@ -3,7 +3,7 @@
<body>
<span>{{jqueryVersion}}</span>
<script src="../../../../bower_components/jquery/dist/jquery.js"></script>
<script src="../../../../node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript">
// Verify that empty ng-jq is not accessing `window['']`.
// (See https://github.com/angular/angular.js/issues/12741 for more details)
+1 -1
View File
@@ -65,7 +65,7 @@ function generateFixture(test, query) {
}
}
if (!/^\d+\.\d+.*$/.test(query.jquery)) {
$(jquery).attr('src', '/bower_components/jquery/dist/jquery.js');
$(jquery).attr('src', '/node_modules/jquery/dist/jquery.js');
} else {
$(jquery).attr('src', '//ajax.googleapis.com/ajax/libs/jquery/' + query.jquery + '/jquery.js');
}
+202
View File
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+530
View File
@@ -0,0 +1,530 @@
# [Google Closure Compiler](https://developers.google.com/closure/compiler/)
[![Build Status](https://travis-ci.org/google/closure-compiler.svg?branch=master)](https://travis-ci.org/google/closure-compiler)
The [Closure Compiler](https://developers.google.com/closure/compiler/) is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.
## Getting Started
* [Download the latest version](http://dl.google.com/closure-compiler/compiler-latest.zip)
* See the [Google Developers Site](https://developers.google.com/closure/compiler/docs/gettingstarted_app) for documentation including instructions for running the compiler from the command line.
## Options for Getting Help
1. Post in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
2. Ask a question on [Stack Overflow](http://stackoverflow.com/questions/tagged/google-closure-compiler)
3. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ)
## Building it Yourself
Note: The Closure Compiler requires [Java 7 or higher](http://www.java.com/).
### Using [Ant](http://ant.apache.org/)
1. Download the [Ant build tool](http://ant.apache.org/bindownload.cgi).
2. At the root of the source tree, there is an Ant file named ```build.xml```.
To use it, navigate to the same directory and type the command
```
ant jar
```
This will produce a jar file called ```build/compiler.jar```.
### Using [Eclipse](http://www.eclipse.org/)
1. Download and open the [Eclipse IDE](http://www.eclipse.org/).
2. Navigate to ```File > New > Project ...``` and create a Java Project. Give
the project a name.
3. Select ```Create project from existing source``` and choose the root of the
checked-out source tree as the existing directory.
3. Navigate to the ```build.xml``` file. You will see all the build rules in
the Outline pane. Run the ```jar``` rule to build the compiler in
```build/compiler.jar```.
## Running
On the command line, at the root of this project, type
```
java -jar build/compiler.jar
```
This starts the compiler in interactive mode. Type
```javascript
var x = 17 + 25;
```
then hit "Enter", then hit "Ctrl-Z" (on Windows) or "Ctrl-D" (on Mac or Linux)
and "Enter" again. The Compiler will respond:
```javascript
var x=42;
```
The Closure Compiler has many options for reading input from a file, writing
output to a file, checking your code, and running optimizations. To learn more,
type
```
java -jar compiler.jar --help
```
More detailed information about running the Closure Compiler is available in the
[documentation](http://code.google.com/closure/compiler/docs/gettingstarted_app.html).
## Compiling Multiple Scripts
If you have multiple scripts, you should compile them all together with one
compile command.
```bash
java -jar compiler.jar --js_output_file=out.js in1.js in2.js in3.js ...
```
You can also use minimatch-style globs.
```bash
# Recursively include all js files in subdirs
java -jar compiler.jar --js_output_file=out.js 'src/**.js'
# Recursively include all js files in subdirs, exclusing test files.
# Use single-quotes, so that bash doesn't try to expand the '!'
java -jar compiler.jar --js_output_file=out.js 'src/**.js' '!**_test.js'
```
The Closure Compiler will concatenate the files in the order they're passed at
the command line.
If you're using globs or many files, you may start to run into
problems with managing dependencies between scripts. In this case, you should
use the [Closure Library](https://developers.google.com/closure/library/). It
contains functions for enforcing dependencies between scripts, and Closure Compiler
will re-order the inputs automatically.
## How to Contribute
### Reporting a bug
1. First make sure that it is really a bug and not simply the way that Closure Compiler works (especially true for ADVANCED_OPTIMIZATIONS).
* Check the [official documentation](https://developers.google.com/closure/compiler/)
* Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ)
* Search on [Stack Overflow](http://stackoverflow.com/questions/tagged/google-closure-compiler) and in the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
2. If you still think you have found a bug, make sure someone hasn't already reported it. See the list of [known issues](https://github.com/google/closure-compiler/issues).
3. If it hasn't been reported yet, post a new issue. Make sure to add enough detail so that the bug can be recreated. The smaller the reproduction code, the better.
### Suggesting a Feature
1. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ) to make sure that the behaviour you would like isn't specifically excluded (such as string inlining).
2. Make sure someone hasn't requested the same thing. See the list of [known issues](https://github.com/google/closure-compiler/issues).
3. Read up on [what type of feature requests are accepted](https://github.com/google/closure-compiler/wiki/FAQ#how-do-i-submit-a-feature-request-for-a-new-type-of-optimization).
4. Submit your reqest as an issue.
### Submitting patches
1. All contributors must sign a contributor license agreement. See the [CONTRIBUTORS](https://raw.githubusercontent.com/google/closure-compiler/master/CONTRIBUTORS) file for details.
2. To make sure your changes are of the type that will be accepted, ask about your patch on the [Closure Compiler Discuss Group](https://groups.google.com/forum/#!forum/closure-compiler-discuss)
3. Fork the repository.
4. Make your changes.
5. Submit a pull request for your changes. A project developer will review your work and then merge your request into the project.
## Closure Compiler License
Copyright 2009 The Closure Compiler Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
## Dependency Licenses
### Rhino
<table>
<tr>
<td>Code Path</td>
<td>
<code>src/com/google/javascript/rhino</code>, <code>test/com/google/javascript/rhino</code>
</td>
</tr>
<tr>
<td>URL</td>
<td>http://www.mozilla.org/rhino</td>
</tr>
<tr>
<td>Version</td>
<td>1.5R3, with heavy modifications</td>
</tr>
<tr>
<td>License</td>
<td>Netscape Public License and MPL / GPL dual license</td>
</tr>
<tr>
<td>Description</td>
<td>A partial copy of Mozilla Rhino. Mozilla Rhino is an
implementation of JavaScript for the JVM. The JavaScript
parse tree data structures were extracted and modified
significantly for use by Google's JavaScript compiler.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>The packages have been renamespaced. All code not
relevant to the parse tree has been removed. A JsDoc parser and static typing
system have been added.</td>
</tr>
</table>
### Args4j
<table>
<tr>
<td>Code Path</td>
<td><code>lib/args4j.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>https://args4j.dev.java.net/</td>
</tr>
<tr>
<td>Version</td>
<td>2.0.26</td>
</tr>
<tr>
<td>License</td>
<td>MIT</td>
</tr>
<tr>
<td>Description</td>
<td>args4j is a small Java class library that makes it easy to parse command line
options/arguments in your CUI application.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Guava Libraries
<table>
<tr>
<td>Code Path</td>
<td><code>lib/guava.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://code.google.com/p/guava-libraries/</td>
</tr>
<tr>
<td>Version</td>
<td>17.0</td>
</tr>
<tr>
<td>License</td>
<td>Apache License 2.0</td>
</tr>
<tr>
<td>Description</td>
<td>Google's core Java libraries.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### JSR 305
<table>
<tr>
<td>Code Path</td>
<td><code>lib/jsr305.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://code.google.com/p/jsr-305/</td>
</tr>
<tr>
<td>Version</td>
<td>svn revision 47</td>
</tr>
<tr>
<td>License</td>
<td>BSD License</td>
</tr>
<tr>
<td>Description</td>
<td>Annotations for software defect detection.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### JUnit
<table>
<tr>
<td>Code Path</td>
<td><code>lib/junit.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://sourceforge.net/projects/junit/</td>
</tr>
<tr>
<td>Version</td>
<td>4.11</td>
</tr>
<tr>
<td>License</td>
<td>Common Public License 1.0</td>
</tr>
<tr>
<td>Description</td>
<td>A framework for writing and running automated tests in Java.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Protocol Buffers
<table>
<tr>
<td>Code Path</td>
<td><code>lib/protobuf-java.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://code.google.com/p/protobuf/</td>
</tr>
<tr>
<td>Version</td>
<td>2.5.0</td>
</tr>
<tr>
<td>License</td>
<td>New BSD License</td>
</tr>
<tr>
<td>Description</td>
<td>Supporting libraries for protocol buffers,
an encoding of structured data.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Ant
<table>
<tr>
<td>Code Path</td>
<td>
<code>lib/ant.jar</code>, <code>lib/ant-launcher.jar</code>
</td>
</tr>
<tr>
<td>URL</td>
<td>http://ant.apache.org/bindownload.cgi</td>
</tr>
<tr>
<td>Version</td>
<td>1.8.1</td>
</tr>
<tr>
<td>License</td>
<td>Apache License 2.0</td>
</tr>
<tr>
<td>Description</td>
<td>Ant is a Java based build tool. In theory it is kind of like "make"
without make's wrinkles and with the full portability of pure java code.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### JSON
<table>
<tr>
<td>Code Path</td>
<td><code>lib/json.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://json.org/java/index.html</td>
</tr>
<tr>
<td>Version</td>
<td>JSON version 20090211</td>
</tr>
<tr>
<td>License</td>
<td>MIT license</td>
</tr>
<tr>
<td>Description</td>
<td>JSON is a set of java files for use in transmitting data in JSON format.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Mockito
<table>
<tr>
<td>Code Path</td>
<td><code>lib/mockito-core.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>https://code.google.com/p/mockito</td>
</tr>
<tr>
<td>Version</td>
<td>1.9.5</td>
</tr>
<tr>
<td>License</td>
<td>MIT license</td>
</tr>
<tr>
<td>Description</td>
<td>Mockito is an open source testing framework for Java. The framework allows the
creation of Test Double objects (called "Mock Objects") in automated unit tests
for the purpose of Test-driven Development (TDD) or Behavior Driven Development
(BDD).</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Objenesis
<table>
<tr>
<td>Code Path</td>
<td><code>lib/objenesis.jar</code></td>
</tr>
<tr>
<td>URL</td>
<td>http://objenesis.org</td>
</tr>
<tr>
<td>Version</td>
<td>1.2</td>
</tr>
<tr>
<td>License</td>
<td>Apache 2.0 license</td>
</tr>
<tr>
<td>Description</td>
<td>Depended by lib/mockito-core.jar, not used directly.</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>None</td>
</tr>
</table>
### Node.js Closure Compiler Externs
<table>
<tr>
<td>Code Path</td>
<td><code>contrib/nodejs</code></td>
</tr>
<tr>
<td>URL</td>
<td>https://github.com/dcodeIO/node.js-closure-compiler-externs</td>
</tr>
<tr>
<td>Version</td>
<td>e891b4fbcf5f466cc4307b0fa842a7d8163a073a</td>
</tr>
<tr>
<td>License</td>
<td>Apache 2.0 license</td>
</tr>
<tr>
<td>Description</td>
<td>Type contracts for NodeJS APIs</td>
</tr>
<tr>
<td>Local Modifications</td>
<td>Substantial changes to make them compatible with NpmCommandLineRunner.</td>
</tr>
</table>
Binary file not shown.
+22
View File
@@ -0,0 +1,22 @@
The MIT License
Copyright (c) 2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+34
View File
@@ -0,0 +1,34 @@
# ng-closure-runner [![Build Status](https://travis-ci.org/angular/ng-closure-runner.png)](https://travis-ci.org/angular/ng-closure-runner)
Wraps Google Closure Compiler for AngularJS-specific compile passes
## Hacking
ng-closure-runner is a lightweight runner around the
[Google Closure Compiler](https://developers.google.com/closure/compiler/). For
a complete description of how Closure Compiler works, refer to the
[source code](https://code.google.com/p/closure-compiler/source/browse/) and
[javadoc](http://javadoc.closure-compiler.googlecode.com/git/index.html). Refer
to `src/org/angularjs/closurerunner/MinerrPass.java` as an example of how to
write a custom compiler pass.
We use [Gradle](http://www.gradle.org) to build. You'll need a current JDK
(version 1.6 or higher). To compile and run the tests:
```
$ gradle check
```
Submissions should include corresponding tests.
## Releases
Releases should be handled by the core Angular team.
To create a new release:
1. Run `gradle distZip`.
2. Commit the updated file in `assets/ng-closure-runner.zip`
3. Create a tag pointing to the commit.
4. In Angular, update the reference in `bower.json` to use the new tag.
5. That's it! You're done.
Binary file not shown.
+71 -831
View File
File diff suppressed because it is too large Load Diff