Fix for package.json handling in quickstart guide
This commit is contained in:
parent
afcf31d34d
commit
daffdb73fd
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue