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

Commit e47dead

Browse files
mgolNarretz
authored andcommitted
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 yarnpkg/yarn#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
1 parent 1a25326 commit e47dead

File tree

27 files changed

+884
-885
lines changed

27 files changed

+884
-885
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
bower_components/**
21
build/**
32
docs/bower_components/**
43
docs/app/assets/js/angular-bootstrap/**
@@ -9,3 +8,4 @@ src/angular.bind.js
98
src/ngParseExt/ucd.js
109
i18n/closure/**
1110
tmp/**
11+
vendor/**

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ performance/temp*.html
1010
*.swp
1111
angular.js.tmproj
1212
node_modules/
13-
bower_components/
1413
angular.xcodeproj
1514
.idea
1615
*.iml
@@ -19,7 +18,6 @@ angular.xcodeproj
1918
libpeerconnection.log
2019
npm-debug.log
2120
/tmp/
22-
/scripts/bower/bower-*
2321
.vscode
2422
*.log
25-
*.stackdump
23+
*.stackdump

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ node_js:
55

66
cache:
77
yarn: true
8-
directories:
9-
- bower_components
108

119
branches:
1210
except:
@@ -32,7 +30,7 @@ before_install:
3230
- export PATH="$HOME/.yarn/bin:$PATH"
3331

3432
before_script:
35-
- du -sh ./node_modules ./bower_components/ || true
33+
- du -sh ./node_modules || true
3634
- "./scripts/travis/before_build.sh"
3735

3836
script:

DEVELOPERS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
## <a name="setup"> Development Setup
1010

1111
This document describes how to set up your development environment to build and test AngularJS, and
12-
explains the basic mechanics of using `git`, `node`, `yarn`, `grunt`, and `bower`.
12+
explains the basic mechanics of using `git`, `node`, `yarn` and `grunt`.
1313

1414
### Installing Dependencies
1515

@@ -64,10 +64,10 @@ cd angular.js
6464
# Add the main AngularJS repository as an upstream remote to your repository:
6565
git remote add upstream "https://github.com/angular/angular.js.git"
6666

67-
# Install node.js dependencies:
67+
# Install JavaScript dependencies:
6868
yarn install
6969

70-
# Build AngularJS (which will install `bower` dependencies automatically):
70+
# Build AngularJS:
7171
yarn grunt package
7272
```
7373

Gruntfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,12 @@ module.exports = function(grunt) {
439439
'shell:promises-aplus-tests'
440440
]);
441441
grunt.registerTask('minify', [
442-
'bower',
443442
'clean',
444443
'build',
445444
'minall'
446445
]);
447446
grunt.registerTask('webserver', ['connect:devserver']);
448447
grunt.registerTask('package', [
449-
'bower',
450448
'validate-angular-files',
451449
'clean',
452450
'buildall',

TRIAGING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ You can mention him in the relevant thread like this: `@btford`.
9595

9696
> Thanks for submitting this issue!
9797
> Unfortunately, we don't think this functionality belongs in core.
98-
> 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.
98+
> The good news is that you could easily implement this as a third-party module and publish it to the npm registry.
9999
100100

101101
## Assigning Work

angularFiles.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ var angularFiles = {
190190
],
191191

192192
'karma': [
193-
'bower_components/jquery/dist/jquery.js',
193+
'node_modules/jquery/dist/jquery.js',
194194
'test/jquery_remove.js',
195195
'@angularSrc',
196196
'@angularSrcModules',
@@ -228,7 +228,7 @@ var angularFiles = {
228228
],
229229

230230
'karmaJquery': [
231-
'bower_components/jquery/dist/jquery.js',
231+
'node_modules/jquery/dist/jquery.js',
232232
'test/jquery_alias.js',
233233
'@angularSrc',
234234
'@angularSrcModules',
@@ -248,8 +248,8 @@ var angularFiles = {
248248
angularFiles['karmaJquery' + jQueryVersion] = []
249249
.concat(angularFiles.karmaJquery)
250250
.map(function(path) {
251-
if (path.startsWith('bower_components/jquery')) {
252-
return path.replace(/^bower_components\/jquery/, 'bower_components/jquery-' + jQueryVersion);
251+
if (path.startsWith('node_modules/jquery')) {
252+
return path.replace(/^node_modules\/jquery/, 'node_modules/jquery-' + jQueryVersion);
253253
}
254254
return path;
255255
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
1+
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
1+
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js

benchmarks/orderby-bp/jquery-noop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// Override me with ?jquery=/bower_components/jquery/dist/jquery.js
1+
// Override me with ?jquery=/node_modules/jquery/dist/jquery.js

0 commit comments

Comments
 (0)