]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: use CDN deps for template explorer so it can be easily deployed
authorEvan You <yyx990803@gmail.com>
Fri, 4 Oct 2019 21:55:55 +0000 (17:55 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 4 Oct 2019 21:55:55 +0000 (17:55 -0400)
packages/template-explorer/README.md
packages/template-explorer/index.html

index f34a2a17d95c96cb3b5b04989a6bb7b86a6f8cfa..3a5918ff151a1251d0455fce4bc014d9baf4f461 100644 (file)
@@ -5,4 +5,4 @@ Live explorer for template compilation output.
 To run:
 
 - `yarn dev template-explorer`
-- Serve project root over a local HTTP server.
+- Open `index.html`.
index 349758adc1c55e6640f498745cdba476bcabf606..f1a66e98a2005f9ca966ed6876b60db0ddeb24a3 100644 (file)
@@ -1,15 +1,15 @@
 <title>Vue Template Explorer</title>
-<link rel="stylesheet" data-name="vs/editor/editor.main" href="../../node_modules/monaco-editor/min/vs/editor/editor.main.css">
+<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://unpkg.com/monaco-editor@0.18.1/min/vs/editor/editor.main.css">
 <link rel="stylesheet" href="./style.css">
 
 <div id="header"></div>
 <div id="source" class="editor"></div>
 <div id="output" class="editor"></div>
 
-<script src="../../node_modules/acorn/dist/acorn.js"></script>
-<script src="../../node_modules/estree-walker/dist/estree-walker.umd.js"></script>
-<script src="../../node_modules/source-map/dist/source-map.js"></script>
-<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
+<script src="https://unpkg.com/acorn@7.1.0/dist/acorn.js"></script>
+<script src="https://unpkg.com/estree-walker@0.8.1/dist/estree-walker.umd.js"></script>
+<script src="https://unpkg.com/source-map@0.6.1/dist/source-map.js"></script>
+<script src="https://unpkg.com/monaco-editor@0.18.1/min/vs/loader.js"></script>
 <script src="./dist/template-explorer.global.js"></script>
 <script>
 window._deps = {
@@ -20,7 +20,7 @@ window._deps = {
 
 require.config({
   paths: {
-    'vs': '../../node_modules/monaco-editor/min/vs'
+    'vs': 'https://unpkg.com/monaco-editor/min/vs'
   }
 })
 </script>