@@ -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
+ frontend 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 frontend 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
@@ -198,9 +197,8 @@ script:
198
197
npm run update-deps
199
198
```
200
199
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.
200
+ This will call ` npm update ` and ` npm run copy-libs ` , which in turn will find and install the latest
201
+ versions that match the version ranges specified in the ` package.json ` file.
204
202
205
203
206
204
## Loading Angular Asynchronously
@@ -236,7 +234,7 @@ choose to install the tool globally:
236
234
sudo npm install -g http-server
237
235
```
238
236
239
- Then you can start your own development web server to serve static files from a folder by running:
237
+ Then you can start your own development web server to serve static files from any folder by running:
240
238
241
239
```
242
240
http-server -a localhost -p 8000
@@ -279,7 +277,6 @@ For more information on AngularJS please check out [angularjs.org][angularjs].
279
277
280
278
281
279
[ angularjs ] : https://angularjs.org/
282
- [ bower ] : http://bower.io/
283
280
[ git ] : https://git-scm.com/
284
281
[ http-server ] : https://github.com/indexzero/http-server
285
282
[ jasmine ] : https://jasmine.github.io/
0 commit comments