Skip to content

Commit

Permalink
feat: add vue2 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
doerme committed Oct 15, 2024
1 parent 7280ff8 commit 279e516
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 161 deletions.
8 changes: 4 additions & 4 deletions demos/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"ignored": true,
"version": "0.0.1",
"scripts": {
"dev": "pnpm --filter vue-2-* --parallel dev",
"build": "pnpm --filter vue-2-* --parallel build",
"serve": "pnpm --filter vue-2-* --parallel serve",
"stat": "pnpm --filter vue-2-* --parallel stat"
"dev": "pnpm --filter 'vue2-*' --parallel dev",
"build": "pnpm --filter vue2-* --parallel build",
"serve": "pnpm --filter vue2-* --parallel serve",
"stat": "pnpm --filter vue2-* --parallel stat"
}
}

2 changes: 1 addition & 1 deletion demos/vue2/vue-2-base/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vue-2-base",
"name": "vue2-base",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
26 changes: 0 additions & 26 deletions demos/vue2/vue-2-element/emp-config.js

This file was deleted.

26 changes: 0 additions & 26 deletions demos/vue2/vue-2-element/package.json

This file was deleted.

37 changes: 0 additions & 37 deletions demos/vue2/vue-2-element/src/App.vue

This file was deleted.

7 changes: 0 additions & 7 deletions demos/vue2/vue-2-element/src/bootstrap.js

This file was deleted.

8 changes: 0 additions & 8 deletions demos/vue2/vue-2-element/src/components/alert.vue

This file was deleted.

26 changes: 0 additions & 26 deletions demos/vue2/vue-2-element/src/components/step.vue

This file was deleted.

Binary file removed demos/vue2/vue-2-element/src/logo.png
Binary file not shown.
1 change: 0 additions & 1 deletion demos/vue2/vue-2-element/src/main.js

This file was deleted.

6 changes: 3 additions & 3 deletions demos/vue2/vue-2-project/emp.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export default defineConfig(store => {
'@v2b': `vue2Base@${vue2Base}`,
},
empRuntime: {
runtimeLib: `https://unpkg.yy.com/@empjs/share@3.1.5/output/sdk.js`,
runtimeLib: "https://unpkg.yy.com/@empjs/share@3.1.5/output/sdk.js",
shareLib: {
vue: 'Vue@https://unpkg.com/vue@2.7.14/dist/vue.min.js',
vuex: `Vuex@https://unpkg.com/vuex@3.6.2/dist/vuex.min.js`,
vuex: "Vuex@https://unpkg.com/vuex@3.6.2/dist/vuex.min.js",
'element-ui': [
'ELEMENT@https://unpkg.com/element-ui/lib/index.js',
`https://unpkg.com/element-ui/lib/theme-chalk/index.css`,
"https://unpkg.com/element-ui/lib/theme-chalk/index.css",
],
},
framework: 'vue2',
Expand Down
2 changes: 1 addition & 1 deletion demos/vue2/vue-2-project/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vue-2-project",
"name": "vue2-project",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
Loading

0 comments on commit 279e516

Please sign in to comment.