forked from angular/angular-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dependencies): remove inline dependencies (use npm & bower inst…
…ead) It is inefficient to store the angular libraries inside this repository. Moreover it is a pain to have to update them every time a new version of Angular is released. This commit changes the project to use bower to install the angular dependencies. In addition, simplify the structure of the project, all the support scripts have either been replaced with well-defined npm modules (e.g http-server) or have been moved to the package.json `script` property. This means that we can now do all the management of the project with three simple commands: * `npm start` - start the development web server to host the application * `npm test` - start the Karma test runner * `npm run-script protractor` - start the Protractor end-to-end test runner A nice feature of these scripts is that they run `npm install` first, thus ensuring that the necessary npm dependencies are in place. Also there is a `postinstall` script which runs `bower install` to ensure the angular library dependencies are in place and updates the index-async.html with the `angular-loader.min.js` content via the following sed script: ``` sed '/@@NG_LOADER@@/{ s/@@NG_LOADER@@//g r bower_components/angular-loader/angular-loader.min.js }' app/index-async.html.template > app/index-async.html ```
- Loading branch information
1 parent
f84c292
commit 5d2baf8
Showing
292 changed files
with
194 additions
and
84,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
logs/* | ||
!.gitkeep | ||
node_modules/ | ||
bower_components/ | ||
tmp | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.