Skip to content

Commit

Permalink
release: vue-amis-sdk@1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 10, 2022
1 parent 68c93d5 commit fda8b9f
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 45 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://github.com/actions/create-release
name: release

on:
push:
tags:
- 'v*'
workflow_dispatch:

# 设置上海时区
env:
TZ: Asia/Shanghai

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: '14.15.4'
registry-url: https://registry.npmjs.org/
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Prepare the changelog from the tag message
run: |
VERSION=${GITHUB_REF/refs\/tags\//}
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
41 changes: 24 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,44 @@ yarn add vue-amis-sdk --save
id='editorName'
theme='cxd'
className='is-fixed'
:preview='isPreview'
:isMobile='isMobile'
@onChange='onChange'
:value='schema'
:preview='isPreview'
:isMobile='isMobile'
@onChange='onChange'
:value='schema'
/>
</div>
</template>
<script>
export default {
import "amis/lib/themes/cxd.css";
import "amis/lib/themes/ang.css";
import "amis/lib/helper.css";
import "amis/sdk/sdk.css";
import "amis-editor/dist/style.css";
export default {
name: 'App',
data() {
return {
isPreview: false,
isMobile: false,
schema: {}
}
},
return {
isPreview: false,
isMobile: false,
schema: {}
}
},
methods: {
onChange(e) {
console.log(e)
}
}
onChange(e) {
console.log(e)
}
}
}
</script>

```

### version

| [vue-amis-sdk](https://www.npmjs.com/package/vue-amis-sdk) | [amis](https://www.npmjs.com/package/amis) | [amis-editor](https://www.npmjs.com/package/amis-editor) |
|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [vue-amis-sdk](https://www.npmjs.com/package/vue-amis-sdk) | [amis](https://www.npmjs.com/package/amis) | [amis-editor](https://www.npmjs.com/package/amis-editor) |
|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [![amis-editor](https://badgen.net/badge/vue-amis-sdk/1.10.0/blue)](https://www.npmjs.com/package/vue-amis-sdk/v/1.10.0) | [![amis](https://img.shields.io/badge/amis-1.10.0-green.svg)](https://www.npmjs.com/package/amis/v/1.10.0) | [![amis-editor](https://badgen.net/badge/vue-amis-sdk/4.1.0-beta.28/blue)](https://www.npmjs.com/package/amis-editor/v/4.1.0-beta.28) |
| [![amis-editor](https://badgen.net/badge/vue-amis-sdk/1.10.2/blue)](https://www.npmjs.com/package/vue-amis-sdk/v/1.10.2) | [![amis](https://img.shields.io/badge/amis-1.10.2-green.svg)](https://www.npmjs.com/package/amis/v/1.10.2) | [![amis-editor](https://badgen.net/badge/vue-amis-sdk/4.1.0-beta.28/blue)](https://www.npmjs.com/package/amis-editor/v/4.1.0-beta.28) |

### repo
- [vue-amis-sdk editor](https://vue-amis-sdk.vercel.app/)
Expand Down
9 changes: 6 additions & 3 deletions _examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<script src="https://unpkg.com/vue@2.6.4/dist/vue.js"></script>
<script src="https://unpkg.com/vue-amis-sdk"></script>
<link rel="stylesheet" href="https://unpkg.com/vue-amis-sdk/sdk/vue-amis-sdk.css">

<link rel='stylesheet' href='https://unpkg.com/amis@1.9.1-beta.18/sdk/cxd.css'>
<link rel='stylesheet' href='https://unpkg.com/amis@1.9.1-beta.18/sdk/ang.css'>
<link rel='stylesheet' href='https://unpkg.com/amis@1.9.1-beta.18/sdk/helper.css'>
<link rel='stylesheet' href='https://unpkg.com/amis@1.9.1-beta.18/sdk/sdk.css'>

<div id="app">
<vue-amis-sdk id="editorName" theme="cxd" className="is-fixed" :preview="isPreview" :isMobile="isMobile" :value="schema" />
Expand All @@ -16,11 +19,11 @@
new Vue({
el: '#app',
data: function() {
return {
return {
isPreview:false,
isMobile:false,
schema: {},
}
}
})
</script>
</script>
7 changes: 6 additions & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
</div>
</template>
<script>
import "amis/lib/themes/cxd.css";
import "amis/lib/themes/ang.css";
import "amis/lib/helper.css";
import "amis/sdk/sdk.css";
import "amis-editor/dist/style.css";
export default {
name: 'App',
data() {
Expand All @@ -27,4 +32,4 @@ export default {
}
}
}
</script>
</script>
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-amis-sdk",
"version": "1.10.0",
"version": "1.10.2",
"private": false,
"main": "sdk/vue-amis-sdk.umd.min.js",
"browser": "sdk/vue-amis-sdk.umd.min.js",
Expand All @@ -26,7 +26,7 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"amis": "^1.10.0",
"amis": "^1.10.2",
"amis-editor": "^4.1.0-beta.28",
"axios": "^0.24.0",
"compression-webpack-plugin": "5.0.1",
Expand All @@ -45,11 +45,12 @@
"webpack-bundle-analyzer": "^4.5.0"
},
"publishConfig": {
"registry":"https://npm.pkg.github.com"
"registry": "https://npm.pkg.github.com"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^5.0.3",
"@vue/cli-service": "^5.0.3",
"monaco-editor-webpack-plugin": "^6.0.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11",
Expand Down
10 changes: 5 additions & 5 deletions packages/VueAmisSdk/src/VueAmisSdk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</div>
</template>
<script>
import "amis/lib/themes/cxd.css";
import "amis/lib/themes/ang.css";
import "amis/lib/helper.css";
import "amis/sdk/sdk.css";
import "amis-editor/dist/style.css";
// import "amis/lib/themes/cxd.css";
// import "amis/lib/themes/ang.css";
// import "amis/lib/helper.css";
// import "amis/sdk/sdk.css";
// import "amis-editor/dist/style.css";
import { Editor } from "amis-editor";
import { ReactInVue } from "vuera";
Expand Down
30 changes: 21 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Webpack = require("webpack");
const webpackBanner =
" project: vue-amis-sdk \n github https://github.com/h7ml/vue-amis-sdk \n author: h7ml(h7ml@qq.com) \n Time: ";
const dateTime = new Date();

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
function resolve(dir) {
return path.join(__dirname, "..", dir);
}
Expand Down Expand Up @@ -34,6 +34,11 @@ module.exports = {
filename: "index.html",
},
},
configureWebpack:{
plugins:[
new MonacoWebpackPlugin()
]
},
chainWebpack: (config) => {
if (process.env.BUILD_TARGET === "lib") {
config.plugin("compressionPlugin").use(
Expand Down
6 changes: 0 additions & 6 deletions vue.min.js

This file was deleted.

0 comments on commit fda8b9f

Please sign in to comment.