From daffdb73fdcbfa1613204b992c71241305cd9f38 Mon Sep 17 00:00:00 2001 From: Jay Traband Date: Mon, 14 Dec 2015 18:06:26 -0800 Subject: [PATCH] Fix for package.json handling in quickstart guide --- .../docs/_examples/quickstart/js/package.1.json | 15 +++++++++++++++ public/docs/js/latest/quickstart.jade | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 public/docs/_examples/quickstart/js/package.1.json diff --git a/public/docs/_examples/quickstart/js/package.1.json b/public/docs/_examples/quickstart/js/package.1.json new file mode 100644 index 0000000000..9f31662777 --- /dev/null +++ b/public/docs/_examples/quickstart/js/package.1.json @@ -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" + } +} + diff --git a/public/docs/js/latest/quickstart.jade b/public/docs/js/latest/quickstart.jade index bf7852d4aa..d8ce7e6057 100644 --- a/public/docs/js/latest/quickstart.jade +++ b/public/docs/js/latest/quickstart.jade @@ -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.