Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor(*): rename files and directories to bring in-line with moder…
…n best practices

Partly addresses #334.
  • Loading branch information
gkalpak committed Oct 26, 2018
commit be0b98a5f93b31062fe6d4d663e8d404cbb1ba96
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ Now browse to the app at [`localhost:8000/index.html`][local-app-url].
## Directory Layout

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// Declare app level module which depends on views, and components
// Declare app level module which depends on views, and core components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
Expand Down
6 changes: 3 additions & 3 deletions app/index-async.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
'app.js',
'view1/view1.js',
'view2/view2.js',
'components/version/version.js',
'components/version/version-directive.js',
'components/version/interpolate-filter.js'
'core/version/version.js',
'core/version/version-directive.js',
'core/version/interpolate-filter.js'
], function() {
// when all is done, execute bootstrap angular application
angular.bootstrap(document, ['myApp']);
Expand Down
6 changes: 3 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<script src="app.js"></script>
<script src="view1/view1.js"></script>
<script src="view2/view2.js"></script>
<script src="components/version/version.js"></script>
<script src="components/version/version-directive.js"></script>
<script src="components/version/interpolate-filter.js"></script>
<script src="core/version/version.js"></script>
<script src="core/version/version-directive.js"></script>
<script src="core/version/interpolate-filter.js"></script>
</body>
</html>
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function(config) {
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-mocks/angular-mocks.js',
'components/**/*.js',
'core/**/*.js',
'view*/**/*.js'
],

Expand Down