Skip to content

Commit

Permalink
feat(vue-amis-sdk@1.10.3):
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #3
  • Loading branch information
h7ml committed Jun 15, 2022
1 parent f5076e0 commit 4d3d134
Show file tree
Hide file tree
Showing 17 changed files with 3,465 additions and 466,885 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
node: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
rules: {}
}
32 changes: 32 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
//可选类型
types: [
{ value: 'feat', name: 'feat: 新功能' },
{ value: 'fix', name: 'fix: 修复' },
{ value: 'docs', name: 'docs: 文档变更' },
{ value: 'style', name: 'style: 代码格式(不影响代码运行的变动)' },
{
value: 'refactor',
name: 'refactor:重构(既不是增加feature),也不是修复bug',
},
{ value: 'perf', name: 'perf: 性能优化' },
{ value: 'test', name: 'test: 增加测试' },
{ value: 'chore', name: 'chore: 构建过程或辅助功能的变动' },
{ value: 'revert', name: 'revert: 回退' },
{ value: 'build', name: 'build: 打包' },
{ value: 'revert', name: 'revert: 回退' },
],
//消息步骤
messages: {
type: '请选择提交类型',
customScope: '请输入修改范围(可选)',
subject: '请简要描述提交(必填)',
body: '请输入详细描述(可选)',
footer: '请输入要关闭的issue(可选)',
confirmCommit: '确认以上信息提交?(y/n)',
},
//跳过问题
skipQuestion: ['body', 'footer'],
//subject文字长度默认是
subjectLimit: 72,
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}
45 changes: 40 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-amis-sdk",
"version": "1.10.2",
"version": "1.10.3",
"private": false,
"main": "sdk/vue-amis-sdk.umd.min.js",
"browser": "sdk/vue-amis-sdk.umd.min.js",
Expand All @@ -10,6 +10,11 @@
"files": [
"_examples/*",
"packages/*",
"sdk/css.worker.js",
"sdk/editor.worker.js",
"sdk/html.worker.js",
"sdk/json.worker.js",
"sdk/ts.worker.js",
"sdk/vue-amis-sdk.umd.js",
"sdk/vue-amis-sdk.common.js",
"sdk/demo.html",
Expand All @@ -19,21 +24,24 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lib": "vue-cli-service build --target lib --name vue-amis-sdk --dest sdk packages/index.js"
"lint": "vue-cli-service lint",
"lint:fix": "vue-cli-service lint --fix",
"lib": "vue-cli-service build --target lib --name vue-amis-sdk --dest sdk packages/index.js",
"prepare": "husky install",
"commit": "git-cz"
},
"dependencies": {
"@babel/core": "^7.17.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.2",
"amis-editor": "^4.1.0-beta.28",
"amis": "1.9.1-beta.11",
"amis-editor": "4.1.0-beta.24",
"axios": "^0.24.0",
"compression-webpack-plugin": "5.0.1",
"core-js": "^3.6.5",
"css-loader": "^6.6.0",
"http-proxy-middleware": "^2.0.6",
"lib": "^4.3.3",
"monaco-editor": "0.30.1",
"monaco-editor-webpack-plugin": "6.0.0",
"postcss-custom-properties": "^12.1.4",
Expand All @@ -50,8 +58,22 @@
"registry": "https://registry.npmjs.org"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@vue/cli-plugin-babel": "^5.0.3",
"@vue/cli-service": "^5.0.3",
"commitizen": "^4.2.4",
"commitlint": "^17.0.2",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.3.0",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "3.1.0",
"eslint-plugin-vue": "8.0.3",
"eslint-plugin-vue": "^9.1.1",
"@vue/eslint-config-prettier": "6.0.0",
"vue-eslint-parser": "8.0.1",
"husky": "^7.0.4",
"lint-staged": "^13.0.1",
"prettier": "^2.7.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11",
Expand Down Expand Up @@ -87,5 +109,18 @@
},
"bugs": {
"url": "https://github.com/h7ml/vue-amis-sdk/issues"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"vue": [
"vue-cli-service lint"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
}
}
}
Loading

0 comments on commit 4d3d134

Please sign in to comment.