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

Commit e48f7f1

Browse files
committed
feat(*): add npm script for updating bower dependencies as well
Previously, is was suggested to run `bower update`, which would only work if `bower` was globally installed. Since a global `bower` installation should not be a prerequisite for the seed project, it is now possible to update bower dependencies via the new `update-deps` npm script. Fixes #383
1 parent bf7f2a3 commit e48f7f1

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

README.md

+7-15
Original file line numberDiff line numberDiff line change
@@ -185,25 +185,17 @@ If JDK is not already installed, you can download it [here][jdk-download].
185185

186186
## Updating Angular
187187

188-
Previously we recommended that you merge in changes to angular-seed into your own fork of the project.
189-
Now that the angular framework library code and tools are acquired through package managers (npm and
190-
bower) you can use these tools instead to update the dependencies.
191-
192-
You can update the tool dependencies by running:
193-
194-
```
195-
npm update
196-
```
197-
198-
This will find the latest versions that match the version ranges specified in the `package.json` file.
199-
200-
You can update the Angular dependencies by running:
188+
Since the Angular framework library code and tools are acquired through package managers (npm and
189+
bower) you can use these tools to easily update the dependencies. Simply run the preconfigured
190+
script:
201191

202192
```
203-
bower update
193+
npm run update-deps
204194
```
205195

206-
This will find the latest versions that match the version ranges specified in the `bower.json` file.
196+
This will call `npm update` and `bower update`, which in turn will find and install the latest
197+
versions that match the version ranges specified in the `package.json` and `bower.json` files
198+
respectively.
207199

208200

209201
## Loading Angular Asynchronously

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"scripts": {
2020
"postinstall": "bower install",
2121

22+
"update-deps": "npm update",
23+
"postupdate-deps": "bower update",
24+
2225
"prestart": "npm install",
2326
"start": "http-server -a localhost -p 8000 -c-1 ./app",
2427

0 commit comments

Comments
 (0)