Skip to content

Commit e4bad12

Browse files
authored
chore: add a demo for double root + fix gh corners (#92)
* chore: add a demo for double root * fix release CI
1 parent 8a57c28 commit e4bad12

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ jobs:
2525
- name: Install
2626
run: npm ci
2727

28-
- name: Test
29-
run: |
30-
npm run lint
31-
npm run test:unit -- --runInBand
32-
npm run test:e2e -- --headless
28+
- name: Run Unit Test
29+
run: npm run test:unit
3330

3431
- name: Build
3532
if: ${{ github.ref == 'refs/heads/master' }}
36-
run: |
37-
npm run build:demo
33+
run: npm run build:demo
34+
35+
- name: Run E2E Test
36+
run: npm run test:e2e
3837

3938
- name: Deploy to vue-live.surge.sh
4039
if: ${{ github.ref == 'refs/heads/master' }}

demo/App.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<h2>JSX</h2>
6464
<VueLive :code="realjsx" :layout="CustomLayout" :jsx="true" />
6565

66+
<h2>Double Root</h2>
67+
<VueLive :code="doubleRoot" :layout="CustomLayout" />
68+
6669
<h2>Separate components for Editor and Preview</h2>
6770
<div class="separate">
6871
<div class="preview-separate">
@@ -75,7 +78,7 @@
7578
</div>
7679
</div>
7780

78-
<github-corners url="https://github.com/vue-styleguidist/vue-live" gitColor="#FFFFFF" />
81+
<github-corners href="https://github.com/vue-styleguidist/vue-live" gitColor="#FFFFFF" />
7982
</main>
8083
</template>
8184
<script lang="ts">
@@ -87,6 +90,7 @@ import codeSfc from "./assets/Button.vue?raw";
8790
import codeJs from "./assets/input.js?raw";
8891
import realjsx from "./assets/real.jsx?raw";
8992
import codeTemplate from "./assets/PureTemplate.html?raw";
93+
import doubleRoot from "./assets/PureTemplateDoubleRoot.html?raw";
9094
import codeChicago from "./assets/Chicago.jsx?raw";
9195
import all from "./assets/chicagoNeighbourhoods";
9296
import "prismjs/themes/prism-tomorrow.css";
@@ -109,6 +113,7 @@ export default defineComponent({
109113
chicagoRequires: { "./chicagoNeighbourhoods": all },
110114
realjsx,
111115
separateCode: codeSfc,
116+
doubleRoot,
112117
openExamples: false,
113118
error: undefined,
114119
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div>A</div>
2+
<div>B</div>

0 commit comments

Comments
 (0)