Fix for package.json handling in quickstart guide
This commit is contained in:
parent
afcf31d34d
commit
daffdb73fd
15
public/docs/_examples/quickstart/js/package.1.json
Normal file
15
public/docs/_examples/quickstart/js/package.1.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -59,12 +59,12 @@ include ../../../_includes/_util-fns
|
|||||||
file named `package.json`.
|
file named `package.json`.
|
||||||
The essence of our `package.json` should look like this:
|
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
|
:marked
|
||||||
There is also a `scripts` section. **Find and replace** it with the following:
|
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
|
:marked
|
||||||
We've just extended our project world with a script command that we'll be running very soon.
|
We've just extended our project world with a script command that we'll be running very soon.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user