@@ -39,8 +39,8 @@ The `depth=1` tells git to only pull down one commit worth of historical data.
39
39
40
40
### Install Dependencies
41
41
42
- We have two kinds of dependencies in this project: tools and AngularJS framework code. The tools help
43
- us manage and test the application.
42
+ We have two kinds of dependencies in this project: tools and AngularJS framework code. The tools
43
+ help us manage and test the application.
44
44
45
45
* We get the tools we depend upon and the AngularJS code via ` npm ` , the [ Node package manager] [ npm ] .
46
46
* In order to run the end-to-end tests, you will also need to have the
@@ -54,14 +54,15 @@ can simply do:
54
54
npm install
55
55
```
56
56
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.
57
+ Behind the scenes this will also call ` npm run copy-libs ` , which copies the AngularJS files and
58
+ other front end dependencies. After that, you should find out that you have two new directories in
59
+ your project.
59
60
60
61
* ` node_modules ` - contains the npm packages for the tools we need
61
62
* ` app/lib ` - contains the AngularJS framework files and other front end dependencies
62
63
63
- * Note copying the AngularJS files from ` node_modules ` to ` app/lib ` makes it easier to serve the files
64
- by a web server.*
64
+ * Note copying the AngularJS files from ` node_modules ` to ` app/lib ` makes it easier to serve the
65
+ files by a web server.*
65
66
66
67
### Run the Application
67
68
@@ -99,10 +100,12 @@ app/ --> all of the source files for the application
99
100
app.js --> main application module
100
101
index.html --> app layout file (the main html template file of the app)
101
102
index-async.html --> just like index.html, but loads js files asynchronously
102
- karma.conf.js --> config file for running unit tests with Karma
103
103
e2e-tests/ --> end-to-end tests
104
104
protractor-conf.js --> Protractor config file
105
105
scenarios.js --> end-to-end scenarios to be run by Protractor
106
+ karma.conf.js --> config file for running unit tests with Karma
107
+ package.json --> Node.js specific metadata, including development tools dependencies
108
+ package-lock.json --> Npm specific metadata, including versions of installed development tools dependencies
106
109
```
107
110
108
111
@@ -248,13 +251,13 @@ This really depends on how complex your app is and the overall infrastructure of
248
251
the general rule is that all you need in production are the files under the ` app/ ` directory.
249
252
Everything else should be omitted.
250
253
251
- AngularJS apps are really just a bunch of static HTML, CSS and JavaScript files that need to be hosted
252
- somewhere they can be accessed by browsers.
254
+ AngularJS apps are really just a bunch of static HTML, CSS and JavaScript files that need to be
255
+ hosted somewhere they can be accessed by browsers.
253
256
254
- If your AngularJS app is talking to the backend server via XHR or other means, you need to figure out
255
- what is the best way to host the static files to comply with the same origin policy if applicable.
256
- Usually this is done by hosting the files by the backend server or through reverse-proxying the
257
- backend server(s) and web server(s).
257
+ If your AngularJS app is talking to the backend server via XHR or other means, you need to figure
258
+ out what is the best way to host the static files to comply with the same origin policy if
259
+ applicable. Usually this is done by hosting the files by the backend server or through
260
+ reverse-proxying the backend server(s) and web server(s).
258
261
259
262
260
263
## Continuous Integration
0 commit comments