-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 11019fb
Showing
543 changed files
with
70,198 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
dist | ||
# don't lint nyc coverage output | ||
coverage | ||
lib | ||
example | ||
scripts | ||
temp | ||
mock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
extends: ['@mpxjs/eslint-config-ts'], | ||
env: { | ||
jest: true // 解决eslint报错:'describe' is not defined. eslint (no-undef) | ||
}, | ||
rules: { | ||
// .mpx文件规则 https://mpx-ecology.github.io/eslint-plugin-mpx/rules/ | ||
'space-before-function-paren': 0, | ||
'mpx/valid-component-range': 0, | ||
'mpx/valid-wx-key': 0 | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts'], | ||
rules: { | ||
// .ts文件规则 https://typescript-eslint.io/rules/ | ||
'@typescript-eslint/no-explicit-any': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.js'], | ||
rules: { | ||
// .js文件规则 https://eslint.bootcss.com/docs/rules/ | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Bug report | ||
about: 框架Bug反馈 | ||
title: "[Bug report]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**问题描述** | ||
请用简洁的语言描述你遇到的bug,至少包括以下部分,如提供截图请尽量完整: | ||
1. 问题触发的条件 | ||
2. 期望的表现 | ||
3. 实际的表现 | ||
|
||
**环境信息描述** | ||
至少包含以下部分: | ||
1. 系统类型(Mac或者Windows) | ||
2. Mpx依赖版本(@mpxjs/core、@mpxjs/webpack-plugin和@mpxjs/api-proxy的具体版本,可以通过package-lock.json或者实际去node_modules当中查看) | ||
3. 小程序开发者工具信息(小程序平台、开发者工具版本、基础库版本) | ||
|
||
**最简复现demo** | ||
一般来说通过文字和截图的描述我们很难定位到问题,为了帮助我们快速定位问题并修复,请按照以下指南编写并上传最简复现demo: | ||
1. 根据现有项目遇到的问题,尝试精简代码,确定问题的最小复现条件 | ||
2. 使用脚手架创建新项目,基于最小复现条件编写稳定的最简复现demo | ||
3. 删除项目中的node_modules部分,打包项目,并拖拽到issue输入框中上传(或提供远程可下载地址) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/get-diff-action@v4 | ||
with: | ||
PATTERNS: | | ||
+(docs|docs-vuepress)/**/* | ||
+(docs|docs-vuepress)/.*/**/* | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
# vuepress生成最终文档 | ||
- name: generate docs file | ||
if: env.GIT_DIFF | ||
run: | | ||
pnpm run docs:build | ||
# 使用 https://github.com/appleboy/scp-action 进行部署,注意 strip_components 用于控制层级 | ||
- name: Deploy to self-host server | ||
if: env.GIT_DIFF | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.DOCS_SERVER_HOST }} | ||
username: ${{ secrets.DOCS_SERVER_USER }} | ||
key: ${{ secrets.DOCS_SERVER_KEY }} | ||
command_timeout: "20m" | ||
source: "./docs-vuepress/.vuepress/dist/" | ||
strip_components: 4 | ||
target: "${{ secrets.DOCS_SERVER_DIR }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# github action of publish package to npm via lerna | ||
name: lerna-publish-package | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
# 发布任务不检查代码风格 | ||
# lint: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - run: npm run lint | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
- run: | | ||
npm i | ||
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> $HOME/.npmrc 2> /dev/null | ||
npm run lerna:publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache node modules | ||
id: cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: | | ||
~/.npm | ||
node_modules | ||
packages/extract-theme-var/node_modules | ||
packages/mpx-cube-ui/node_modules | ||
packages/website-build/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: exec unit test | ||
run: pnpm run build && pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules/ | ||
npm-debug.log | ||
.idea/ | ||
deploy/ | ||
output/ | ||
dist/ | ||
.vscode/ | ||
test/coverage | ||
.cache | ||
packages/mpx-cube-ui/lib | ||
packages/website-build/lib/ | ||
docs/components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node-linker=hoisted | ||
registry=https://registry.npmmirror.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"git": { | ||
"commitMessage": "chore: release v${version}" | ||
}, | ||
"npm": false, | ||
"plugins": { | ||
"@release-it-plugins/workspaces": { | ||
"skipChecks": true | ||
} | ||
}, | ||
"hooks": { | ||
"before:init": ["npm run lint"], | ||
"after:bump": ["npm run build"] | ||
} | ||
} |
Empty file.
Oops, something went wrong.