Skip to content

Commit 60c152a

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

13 files changed

+10
-10
lines changed

README.md

+2-2
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

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)