Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d0ca13a
fix: first compiling version
elevatebart Oct 17, 2020
d7e7ce7
fix: demo remove use of datepicker unused
elevatebart Oct 17, 2020
cc6298c
First release of a vue 3 compatible vue-live (#53)
elevatebart Oct 17, 2020
5075f52
build: ren semantic on next
elevatebart Oct 17, 2020
b14b17b
build: run travis on next branch
elevatebart Oct 17, 2020
f90897e
test: fix cypress
elevatebart Oct 17, 2020
d255d31
fix: A bunch of fixes for the next branch (#55)
LeBenLeBen Oct 21, 2020
406f3b9
docs: fix vue aliases
elevatebart Oct 29, 2020
1b37f68
docs: update path of vuejs
elevatebart Oct 29, 2020
fa128c8
Update README.md
elevatebart Oct 29, 2020
ed94f24
fix: use acorn walk instead of recast visit
elevatebart Nov 2, 2020
ccfed79
fix: remove recast remains
elevatebart Nov 2, 2020
e64d155
Merge branch 'master' into fix-acorn-instead-of-recast
elevatebart Nov 2, 2020
0741179
style: update comment
elevatebart Nov 2, 2020
abd8229
Merge pull request #58 from vue-styleguidist/fix-acorn-instead-of-recast
elevatebart Nov 2, 2020
c9f5fbc
fix: allow aria and dashed attributes
elevatebart Nov 13, 2020
51e52d0
Merge branch 'next' into merge-up
elevatebart Nov 18, 2020
e3974a6
Merge pull request #61 from vue-styleguidist/merge-up
elevatebart Nov 18, 2020
1a585e9
test: update test to make colon acceptable
elevatebart Nov 18, 2020
4862837
fix: CSS scope ID (#64)
ardier16 Apr 16, 2021
6d2fde0
chore: release alpha 6
elevatebart Apr 20, 2021
c72e094
fix: ci update caniuse
elevatebart Apr 20, 2021
536a4a8
fix: allow for $ variables and functions handlers
elevatebart May 25, 2021
8bb38d9
Merge branch 'master' into next
elevatebart May 27, 2021
44ae437
Merge branch 'master' into next
elevatebart May 27, 2021
06d47ea
build: vue plugin before others for sfc
elevatebart May 27, 2021
5f8501f
fix: release semrel
elevatebart Jun 8, 2021
1f35496
feat: create allow list for camelCased SVG attributes (#67)
mgdodge Jul 16, 2021
820be3d
Merge branch 'master' into next
elevatebart Feb 27, 2022
17a1160
fix: make npm start work again
elevatebart Feb 27, 2022
f2ff5f5
fix: make it run without eslint errors
elevatebart Feb 27, 2022
541a131
fix: make it run
elevatebart Feb 27, 2022
f0337f8
fix: update dependency and make jsx work
elevatebart Feb 28, 2022
dd9f83b
build: eslint configuration
elevatebart Feb 28, 2022
604f8bf
build: fix unit test using jest
elevatebart Feb 28, 2022
1426c1d
fix: update inbrowser compiler for vite compat
elevatebart Mar 18, 2022
63d33e9
fix: remove console.log
elevatebart Mar 18, 2022
209edb4
Merge branch 'master' into next
elevatebart Apr 30, 2022
987f073
ci: remove travis from vue-live
elevatebart Apr 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
demo/assets
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"extends": ["plugin:vue/essential", "eslint:recommended"],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
"parser": "@babel/eslint-parser"
},
"overrides": [
{
"files": ["**/__tests__/*.js"],
"parserOptions": {
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"sourceType": "module"
},
"env": {
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint & Test
on:
pull_request:
types: [opened,synchronize]
branches: master

concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install
run: npm ci

- name: List
run: npm run lint

- name: Test unit
run: npm run test:unit -- --runInBand

- name: Test e2e
run: npm run test:e2e -- --headless
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
branches: master

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install
run: npm ci

- name: Test
run: |
npm run lint
npm run test:unit -- --runInBand
npm run test:e2e -- --headless

- name: Deploy to vue-live.surge.sh
uses: dswistowski/surge-sh-action@v1
with:
domain: 'vue-live.surge.sh'
project: './dist/'
login: ${{ secrets.SURGE_LOGIN }}
token: ${{ secrets.SURGE_TOKEN }}

- name: Build
run: npm run build

- name: Release
run: npx semantic-release
8 changes: 6 additions & 2 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
branches: [
{ name: "master" },
{ name: "next", channel: "next", prerelease: "beta" }, // Only after the `next` is created in the repo
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
"@semantic-release/github",
],
};
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

40 changes: 22 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ The simplest way to render components is as a VueJs template:

```vue
<template>
<VueLive :code="`<date-picker />`" :components="{ DatePicker }" @error="(e) => handleError(e)" />
<VueLive
:code="`<date-picker />`"
:components="{ DatePicker }"
@error="(e) => handleError(e)"
/>
</template>

<script>
import { VueLive } from "vue-live";
// if you are using vue-cli, you have to import the css separately
// import the css separately for easier SSR
import "vue-live/lib/vue-live.esm.css";
import DatePicker from "vuejs-datepicker"
import DatePicker from "vuejs-datepicker";

export default {
components: { VueLive },
data(){
return {
// make DatePicker available in template
DatePicker
}
}
}
components: { VueLive },
data() {
return {
// make DatePicker available in template
DatePicker,
};
},
};
</script>
```

Expand All @@ -55,7 +59,7 @@ module.exports = {
alias: {
// this enables loading the "full" version of vue
// instead of only loading the vue runtime
vue$: "vue/dist/vue.esm.js",
vue$: "vue/dist/vue.esm-browser.js",
},
},
};
Expand All @@ -68,10 +72,10 @@ module.exports = {
configureWebpack: {
resolve: {
alias: {
vue$: "vue/dist/vue.esm.js"
}
}
}
vue$: "vue/dist/vue.esm.js",
},
},
},
};
```

Expand All @@ -82,7 +86,7 @@ export default {
build: {
extend(config, { isDev, isClient }) {
// ..
config.resolve.alias.vue$ = "vue/dist/vue.esm.js";
config.resolve.alias.vue$ = "vue/dist/vue.esm-browser.js";
},
},
};
Expand All @@ -95,7 +99,7 @@ module.exports = {
configureWebpack: {
resolve: {
alias: {
vue$: "vue/dist/vue.esm.js",
vue$: "vue/dist/vue.esm-browser.js",
},
},
},
Expand Down
5 changes: 1 addition & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ module.exports = {
include: ["node_modules"],
presets: [
[
"@babel/env",
{
modules: "cjs"
}
"@babel/env"
]
]
}
Expand Down
8 changes: 5 additions & 3 deletions demo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,18 @@
</main>
</template>
<script>
import { markRaw } from "vue";
import DatePicker from "vue3-datepicker";
import { VueLive, VueLiveEditor, VueLivePreview } from "../src";
import CustomLayout from "./CustomLayout";
import DatePicker from "vuejs-datepicker";
import codeSfc from "!!raw-loader!./assets/Button.vue";
import codeJs from "!!raw-loader!./assets/input.js";
import realjsx from "!!raw-loader!./assets/real.jsx";
import codeTemplate from "!!raw-loader!./assets/PureTemplate.html";
import codeChicago from "!!raw-loader!./assets/Chicago.jsx";
import all from "./assets/chicagoNeighbourhoods";
import "prismjs/themes/prism-tomorrow.css";
import "vue3-datepicker/dist/vue3-datepicker.css";

import GithubCorners from "vue-github-corners";

Expand All @@ -124,12 +126,12 @@ export default {
components: { VueLive, VueLiveEditor, VueLivePreview, GithubCorners },
data() {
return {
registeredComponents: { DatePicker },
registeredComponents: { DatePicker: markRaw(DatePicker) },
codeSfc,
codeTemplate,
codeJs,
codeChicago,
CustomLayout,
CustomLayout: markRaw(CustomLayout),
chicagoRequires: { "./chicagoNeighbourhoods": all },
realjsx,
separateCode: codeSfc,
Expand Down
2 changes: 1 addition & 1 deletion demo/CustomLayout.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template functional>
<template>
<div class="preview-code">
<div>
<slot name="editor"></slot>
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/PureTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
<date-picker
style="text-align:center;"
v-if="show"
:value="today"/>
v-model="today"/>
9 changes: 2 additions & 7 deletions demo/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import "./find.polyfill";
import Vue from "vue";
import { createApp } from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;
Vue.config.devtools = true;

new Vue({
render: (h) => h(App),
}).$mount("#app");
createApp(App).mount("#app");
21 changes: 2 additions & 19 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
module.exports = {
moduleFileExtensions: ["js", "jsx", "json", "vue"],
transform: {
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
"jest-transform-stub",
"^.+\\.jsx?$": "babel-jest",
},
transformIgnorePatterns: ["/node_modules/"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
},
snapshotSerializers: ["jest-serializer-vue"],
testMatch: ["**/__tests__/*.(js|jsx|ts|tsx)"],
testURL: "http://localhost/",
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
};
preset: '@vue/cli-plugin-unit-jest'
}
Loading