From b5ae377b74e33d07cf5885af582256c578857425 Mon Sep 17 00:00:00 2001 From: Lukas Drgon Date: Fri, 15 Sep 2017 16:08:19 +0200 Subject: [PATCH 1/4] Change recommended links to jsDelivr --- src/v2/guide/installation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index 7cc9d0d413..8868a3e390 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -35,9 +35,9 @@ Simply download and include with a script tag. `Vue` will be registered as a glo ### CDN -Recommended: [https://unpkg.com/vue](https://unpkg.com/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://unpkg.com/vue/](https://unpkg.com/vue/). +Recommended:[https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://www.jsdelivr.com/package/npm/vue/](https://www.jsdelivr.com/package/npm/vue/). -Also available on [jsDelivr](https://cdn.jsdelivr.net/npm/vue/dist/vue.js) or [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js), but these two services take some time to sync so the latest release may not be available yet. +Also available on [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js), but this service takes some time to sync so the latest release may not be available yet. ## NPM @@ -67,7 +67,7 @@ $ npm run dev ## Explanation of Different Builds -In the [`dist/` directory of the NPM package](https://unpkg.com/vue@latest/dist/) you will find many different builds of Vue.js. Here's an overview of the difference between them: +In the [`dist/` directory of the NPM package](https://cdn.jsdelivr.net/npm/vue/dist/) you will find many different builds of Vue.js. Here's an overview of the difference between them: | | UMD | CommonJS | ES Module | | --- | --- | --- | --- | @@ -84,7 +84,7 @@ In the [`dist/` directory of the NPM package](https://unpkg.com/vue@latest/dist/ - **Runtime**: code that is responsible for creating Vue instances, rendering and patching virtual DOM, etc. Basically everything minus the compiler. -- **[UMD](https://github.com/umdjs/umd)**: UMD builds can be used directly in the browser via a ` + ``` Then you can start writing Vue code and even ship the minified version to production without feeling guilty or having to worry about performance problems. diff --git a/src/v2/guide/index.md b/src/v2/guide/index.md index 8c7eeb1d6e..893c02cba7 100644 --- a/src/v2/guide/index.md +++ b/src/v2/guide/index.md @@ -17,7 +17,7 @@ If you are an experienced frontend developer and want to know how Vue compares t The easiest way to try out Vue.js is using the [JSFiddle Hello World example](https://jsfiddle.net/chrisvfritz/50wL7mdz/). Feel free to open it in another tab and follow along as we go through some basic examples. Or, you can simply create an index.html file and include Vue with: ``` html - + ``` The [Installation](installation.html) page provides more options of installing Vue. Note that we **do not** recommend beginners to start with `vue-cli`, especially if you are not yet familiar with Node.js-based build tools. diff --git a/src/v2/guide/typescript.md b/src/v2/guide/typescript.md index c3532ca1a5..7c956b6f00 100644 --- a/src/v2/guide/typescript.md +++ b/src/v2/guide/typescript.md @@ -14,7 +14,7 @@ We plan to move all official declarations to use ES-style exports in the future. A static type system can help prevent many potential runtime errors, especially as applications grow. That's why Vue ships with [official type declarations](https://github.com/vuejs/vue/tree/dev/types) for [TypeScript](https://www.typescriptlang.org/) - not only in Vue core, but also for [vue-router](https://github.com/vuejs/vue-router/tree/dev/types) and [vuex](https://github.com/vuejs/vuex/tree/dev/types) as well. -Since these are [published on NPM](https://unpkg.com/vue/types/), and the latest TypeScript knows how to resolve type declarations in NPM packages, this means when installed via NPM, you don't need any additional tooling to use TypeScript with Vue. +Since these are [published on NPM](https://cdn.jsdelivr.net/npm/vue/types/), and the latest TypeScript knows how to resolve type declarations in NPM packages, this means when installed via NPM, you don't need any additional tooling to use TypeScript with Vue. ## Recommended Configuration From c19264ab58c163062830e69ae6a5f8e47fe71884 Mon Sep 17 00:00:00 2001 From: Drgy Date: Sun, 17 Sep 2017 17:35:21 +0200 Subject: [PATCH 3/4] Fix formatting and add unpkg --- src/v2/guide/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index 8868a3e390..dcd82457e2 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -35,9 +35,9 @@ Simply download and include with a script tag. `Vue` will be registered as a glo ### CDN -Recommended:[https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://www.jsdelivr.com/package/npm/vue/](https://www.jsdelivr.com/package/npm/vue/). +Recommended: [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://www.jsdelivr.com/package/npm/vue](https://www.jsdelivr.com/package/npm/vue). -Also available on [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js), but this service takes some time to sync so the latest release may not be available yet. +Also available on [unpkg](https://unpkg.com/vue) and [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js) (cdnjs takes some time to sync so the latest release may not be available yet). ## NPM From 267a32d7931ff61b1dc39a4980b6fdf796fcf245 Mon Sep 17 00:00:00 2001 From: Drgy Date: Sun, 17 Sep 2017 18:00:38 +0200 Subject: [PATCH 4/4] Change a link from .com to .net --- src/v2/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index dcd82457e2..23a45ed0e3 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -35,7 +35,7 @@ Simply download and include with a script tag. `Vue` will be registered as a glo ### CDN -Recommended: [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://www.jsdelivr.com/package/npm/vue](https://www.jsdelivr.com/package/npm/vue). +Recommended: [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [https://cdn.jsdelivr.net/npm/vue/](https://cdn.jsdelivr.net/npm/vue/). Also available on [unpkg](https://unpkg.com/vue) and [cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js) (cdnjs takes some time to sync so the latest release may not be available yet).