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

Commit ad58b5d

Browse files
committed
refactor(*): rename files and directories to bring in-line with modern best practices
Partly addresses #334.
1 parent 9ca1782 commit ad58b5d

13 files changed

+12
-12
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Now browse to the app at [`localhost:8000/index.html`][local-app-url].
7979
## Directory Layout
8080

8181
```
82-
app/ --> all of the source files for the application
82+
app/ --> all of the source files for the application
8383
app.css --> default stylesheet
84-
components/ --> all app specific modules
84+
core/ --> all app specific modules
8585
version/ --> version related components
8686
version.js --> version module declaration and basic "version" value service
8787
version_test.js --> "version" value service tests
@@ -117,8 +117,8 @@ The `angular-seed` app comes preconfigured with unit tests. These are written in
117117
which we run with the [Karma][karma] test runner. We provide a Karma configuration file to run them.
118118

119119
* The configuration is found at `karma.conf.js`.
120-
* The unit tests are found next to the code they are testing and have an `_test.js` suffix (e.g.
121-
`view1_test.js`).
120+
* The unit tests are found next to the code they are testing and have a `.spec.js` suffix (e.g.
121+
`view1.spec.js`).
122122

123123
The easiest way to run the unit tests is to use the supplied npm script:
124124

app/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// Declare app level module which depends on views, and components
3+
// Declare app level module which depends on views, and core components
44
angular.module('myApp', [
55
'ngRoute',
66
'myApp.view1',
File renamed without changes.

app/index-async.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
'app.js',
3434
'view1/view1.js',
3535
'view2/view2.js',
36-
'components/version/version.js',
37-
'components/version/version-directive.js',
38-
'components/version/interpolate-filter.js'
36+
'core/version/version.js',
37+
'core/version/version-directive.js',
38+
'core/version/interpolate-filter.js'
3939
], function() {
4040
// when all is done, execute bootstrap angular application
4141
angular.bootstrap(document, ['myApp']);

app/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<script src="app.js"></script>
3737
<script src="view1/view1.js"></script>
3838
<script src="view2/view2.js"></script>
39-
<script src="components/version/version.js"></script>
40-
<script src="components/version/version-directive.js"></script>
41-
<script src="components/version/interpolate-filter.js"></script>
39+
<script src="core/version/version.js"></script>
40+
<script src="core/version/version-directive.js"></script>
41+
<script src="core/version/interpolate-filter.js"></script>
4242
</body>
4343
</html>
File renamed without changes.
File renamed without changes.

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function(config) {
88
'bower_components/angular/angular.js',
99
'bower_components/angular-route/angular-route.js',
1010
'bower_components/angular-mocks/angular-mocks.js',
11-
'components/**/*.js',
11+
'core/**/*.js',
1212
'view*/**/*.js'
1313
],
1414

0 commit comments

Comments
 (0)