Fix for package.json handling in quickstart guide

This commit is contained in:
Jay Traband 2015-12-14 18:06:26 -08:00 committed by Naomi Black
parent afcf31d34d
commit daffdb73fd
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,15 @@
{
"name": "angular2-getting-started",
"version": "1.0.0",
"dependencies": {
"angular2": "2.0.0-alpha.44"
},
"devDependencies": {
"live-server": "^0.8.1"
},
{
"scripts": {
"start": "live-server"
}
}

View File

@ -59,12 +59,12 @@ include ../../../_includes/_util-fns
file named `package.json`.
The essence of our `package.json` should look like this:
+makeJson('quickstart/js/package.json', { paths: 'name, version, dependencies, devDependencies'})
+makeJson('quickstart/js/package.1.json', { paths: 'name, version, dependencies, devDependencies'})
:marked
There is also a `scripts` section. **Find and replace** it with the following:
+makeJson('quickstart/js/package.json', { paths: 'scripts'})
+makeJson('quickstart/js/package.1.json', { paths: 'scripts'})
:marked
We've just extended our project world with a script command that we'll be running very soon.