@@ -42,27 +42,26 @@ The `depth=1` tells git to only pull down one commit worth of historical data.
42
42
We have two kinds of dependencies in this project: tools and Angular framework code. The tools help
43
43
us manage and test the application.
44
44
45
- * We get the tools we depend upon via ` npm ` , the [ Node package manager] [ npm ] .
46
- * We get the Angular code via ` bower ` , a [ client-side code package manager] [ bower ] .
45
+ * We get the tools we depend upon and the Angular code via ` npm ` , the [ Node package manager] [ npm ] .
47
46
* In order to run the end-to-end tests, you will also need to have the
48
47
[ Java Development Kit (JDK)] [ jdk ] installed on your machine. Check out the section on
49
48
[ end-to-end testing] ( #e2e-testing ) for more info.
50
49
51
- We have preconfigured ` npm ` to automatically run ` bower ` so we can simply do:
50
+ We have preconfigured ` npm ` to automatically copy the downloaded Angular files to ` app/lib ` so we
51
+ can simply do:
52
52
53
53
```
54
54
npm install
55
55
```
56
56
57
- Behind the scenes this will also call ` bower install ` . After that, you should find out that you have
58
- two new folders in your project.
57
+ Behind the scenes this will also call ` npm run copy-libs ` , which copies the AngularJS files and other
58
+ front end dependencies. After that, you should find out that you have two new directories in your project.
59
59
60
60
* ` node_modules ` - contains the npm packages for the tools we need
61
- * ` app/bower_components ` - contains the Angular framework files
61
+ * ` app/lib ` - contains the Angular framework files and other front end dependencies
62
62
63
- * Note that the ` bower_components ` folder would normally be installed in the root folder but
64
- ` angular-seed ` changes this location through the ` .bowerrc ` file. Putting it in the ` app ` folder
65
- makes it easier to serve the files by a web server.*
63
+ * Note copying the Angular files from ` node_modules ` to ` app/lib ` makes it easier to serve the files
64
+ by a web server.*
66
65
67
66
### Run the Application
68
67
@@ -190,17 +189,15 @@ If JDK is not already installed, you can download it [here][jdk-download].
190
189
191
190
## Updating Angular
192
191
193
- Since the Angular framework library code and tools are acquired through package managers (npm and
194
- bower) you can use these tools to easily update the dependencies. Simply run the preconfigured
195
- script:
192
+ Since the AngularJS framework library code and tools are acquired through package managers (e.g.
193
+ npm) you can use these tools to easily update the dependencies. Simply run the preconfigured script:
196
194
197
195
```
198
196
npm run update-deps
199
197
```
200
198
201
- This will call ` npm update ` and ` bower update ` , which in turn will find and install the latest
202
- versions that match the version ranges specified in the ` package.json ` and ` bower.json ` files
203
- respectively.
199
+ This will call ` npm update ` and ` npm run copy-libs ` , which in turn will find and install the latest
200
+ versions that match the version ranges specified in the ` package.json ` file.
204
201
205
202
206
203
## Loading Angular Asynchronously
@@ -236,7 +233,7 @@ choose to install the tool globally:
236
233
sudo npm install -g http-server
237
234
```
238
235
239
- Then you can start your own development web server to serve static files from a folder by running:
236
+ Then you can start your own development web server to serve static files from any folder by running:
240
237
241
238
```
242
239
http-server -a localhost -p 8000
@@ -279,7 +276,6 @@ For more information on AngularJS please check out [angularjs.org][angularjs].
279
276
280
277
281
278
[ angularjs ] : https://angularjs.org/
282
- [ bower ] : http://bower.io/
283
279
[ git ] : https://git-scm.com/
284
280
[ http-server ] : https://github.com/indexzero/http-server
285
281
[ jasmine ] : https://jasmine.github.io/
0 commit comments