[Pkg-javascript-commits] [vue.js] 03/03: distribute provided examples
Paolo Greppi
paolog-guest at moszumanska.debian.org
Wed Nov 29 10:09:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository vue.js.
commit d3a3b1db64bed9609c16636e24ff066ad1981682
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Wed Nov 29 10:58:39 2017 +0100
distribute provided examples
---
debian/libjs-vue.examples | 1 +
debian/patches/00-examples.diff | 150 ++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 152 insertions(+)
diff --git a/debian/libjs-vue.examples b/debian/libjs-vue.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/libjs-vue.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/patches/00-examples.diff b/debian/patches/00-examples.diff
new file mode 100644
index 0000000..4de42f3
--- /dev/null
+++ b/debian/patches/00-examples.diff
@@ -0,0 +1,150 @@
+Description: Fix examples to use libjs from /usr/share/javascript
+ Refresh with something like:
+ grep -l -r dist/vue.min.js examples/* | \
+ xargs sed -i 's/..\/..\/dist\/vue.min.js/\/javascript\/vue\/vue.min.js/g'
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: vue.js/examples/commits/index.html
+===================================================================
+--- vue.js.orig/examples/commits/index.html
++++ vue.js/examples/commits/index.html
+@@ -19,7 +19,7 @@
+ }
+ </style>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ </head>
+ <body>
+ <div id="demo">
+Index: vue.js/examples/elastic-header/index.html
+===================================================================
+--- vue.js.orig/examples/elastic-header/index.html
++++ vue.js/examples/elastic-header/index.html
+@@ -5,7 +5,7 @@
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
+ <title>Vue.js elastic header example</title>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <script src="http://dynamicsjs.com/lib/dynamics.js"></script>
+ <link rel="stylesheet" href="style.css">
+ <!-- template for the component -->
+Index: vue.js/examples/firebase/index.html
+===================================================================
+--- vue.js.orig/examples/firebase/index.html
++++ vue.js/examples/firebase/index.html
+@@ -6,7 +6,7 @@
+ <link rel="stylesheet" type="text/css" href="style.css">
+ <!-- Vue -->
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <!-- Firebase -->
+ <script src="https://www.gstatic.com/firebasejs/3.4.0/firebase.js"></script>
+ <!-- VueFire -->
+Index: vue.js/examples/grid/index.html
+===================================================================
+--- vue.js.orig/examples/grid/index.html
++++ vue.js/examples/grid/index.html
+@@ -5,7 +5,7 @@
+ <title>Vue.js grid component example</title>
+ <link rel="stylesheet" href="style.css">
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ </head>
+ <body>
+
+Index: vue.js/examples/markdown/index.html
+===================================================================
+--- vue.js.orig/examples/markdown/index.html
++++ vue.js/examples/markdown/index.html
+@@ -7,7 +7,7 @@
+ <script src="https://unpkg.com/marked@0.3.6"></script>
+ <script src="https://unpkg.com/lodash@4.16.0"></script>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ </head>
+ <body>
+
+Index: vue.js/examples/modal/index.html
+===================================================================
+--- vue.js.orig/examples/modal/index.html
++++ vue.js/examples/modal/index.html
+@@ -4,7 +4,7 @@
+ <meta charset="utf-8">
+ <title>Vue.js modal component example</title>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <link rel="stylesheet" href="style.css">
+ </head>
+ <body>
+Index: vue.js/examples/move-animations/index.html
+===================================================================
+--- vue.js.orig/examples/move-animations/index.html
++++ vue.js/examples/move-animations/index.html
+@@ -32,7 +32,7 @@
+ </style>
+ <script src="https://cdn.jsdelivr.net/lodash/4.3.0/lodash.min.js"></script>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ </head>
+ <body>
+ <div id="el">
+Index: vue.js/examples/select2/index.html
+===================================================================
+--- vue.js.orig/examples/select2/index.html
++++ vue.js/examples/select2/index.html
+@@ -4,7 +4,7 @@
+ <meta charset="utf-8">
+ <title>Vue.js wrapper component example (jquery plugin: select2)</title>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <script src="https://unpkg.com/jquery"></script>
+ <script src="https://unpkg.com/select2@4.0.3"></script>
+ <link href="https://unpkg.com/select2@4.0.3/dist/css/select2.min.css" rel="stylesheet">
+Index: vue.js/examples/svg/index.html
+===================================================================
+--- vue.js.orig/examples/svg/index.html
++++ vue.js/examples/svg/index.html
+@@ -5,7 +5,7 @@
+ <title>Vue.js SVG graph example</title>
+ <link rel="stylesheet" href="style.css">
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <script src="https://unpkg.com/marky/dist/marky.min.js"></script>
+ </head>
+ <body>
+Index: vue.js/examples/todomvc/index.html
+===================================================================
+--- vue.js.orig/examples/todomvc/index.html
++++ vue.js/examples/todomvc/index.html
+@@ -63,7 +63,7 @@
+ if (navigator.userAgent.indexOf('PhantomJS') > -1) localStorage.clear()
+ </script>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ <script src="app.js"></script>
+ </body>
+ </html>
+Index: vue.js/examples/tree/index.html
+===================================================================
+--- vue.js.orig/examples/tree/index.html
++++ vue.js/examples/tree/index.html
+@@ -21,7 +21,7 @@
+ }
+ </style>
+ <!-- Delete ".min" for console warnings in development -->
+- <script src="../../dist/vue.min.js"></script>
++ <script src="/javascript/vue/vue.min.js"></script>
+ </head>
+ <body>
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..75604d2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-examples.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/vue.js.git
More information about the Pkg-javascript-commits
mailing list