create-bc-app 1.0.9 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +9 -9
- package/package.json +37 -32
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js +259 -0
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/_metadata.json +40 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js +9172 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js +11482 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/package.json +3 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4347 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js +567 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js +323 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js.map +7 -0
- package/template-docs-vitepress/.vitepress/config.mts +28 -0
- package/template-docs-vitepress/api-examples.md +49 -0
- package/template-docs-vitepress/index.md +25 -0
- package/template-docs-vitepress/markdown-examples.md +85 -0
- package/template-docs-vitepress/package-lock.json +1742 -0
- package/template-docs-vitepress/package.json +10 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js +11 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js +136 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/_metadata.json +40 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js +11482 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js +164 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/package.json +3 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js +2744 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js +323 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/clientConfigs.js +19 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/routes.js +24 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/siteData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/themeData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.vue +23 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/prismjs/config.js +3 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/index.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/palette.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/vite-root/index.html +13 -0
- package/template-docs-vuepress/docs/.vuepress/config.js +18 -0
- package/template-docs-vuepress/docs/README.md +33 -0
- package/template-docs-vuepress/docs/get-started.md +46 -0
- package/template-docs-vuepress/package-lock.json +3380 -0
- package/template-docs-vuepress/package.json +19 -0
- package/template-protocut-2d/.eslintrc.cjs +203 -0
- package/template-protocut-2d/.gitignore +24 -0
- package/template-protocut-2d/.gitlab-ci.yml +41 -0
- package/template-protocut-2d/README.md +17 -0
- package/template-protocut-2d/image.png +0 -0
- package/template-protocut-2d/index.html +13 -0
- package/template-protocut-2d/package-lock.json +4917 -0
- package/template-protocut-2d/package.json +41 -0
- package/template-protocut-2d/public/vite.svg +1 -0
- package/template-protocut-2d/src/App.vue +12 -0
- package/template-protocut-2d/src/assets/vue.svg +1 -0
- package/template-protocut-2d/src/components/Example.vue +36 -0
- package/template-protocut-2d/src/main.ts +43 -0
- package/template-protocut-2d/src/style.css +5 -0
- package/template-protocut-2d/src/utils/plugins/watchNodeModules.js +24 -0
- package/template-protocut-2d/src/views/Home.vue +143 -0
- package/template-protocut-2d/src/vite-env.d.ts +1 -0
- package/template-protocut-2d/test/App.test.ts +16 -0
- package/template-protocut-2d/test/Example.test.ts +21 -0
- package/template-protocut-2d/tsconfig.app.json +27 -0
- package/template-protocut-2d/tsconfig.json +33 -0
- package/template-protocut-2d/tsconfig.node.json +11 -0
- package/template-protocut-2d/vite-env.d.ts +15 -0
- package/template-protocut-2d/vite.config.ts +55 -0
- package/template-protocut-2d/window.d.ts +6 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bochu-project",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A VuePress project",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"docs:build": "vuepress build docs",
|
|
9
|
+
"docs:clean-dev": "vuepress dev docs --clean-cache",
|
|
10
|
+
"docs:dev": "vuepress dev docs",
|
|
11
|
+
"docs:update-package": "npx vp-update"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@vuepress/bundler-vite": "^2.0.0-rc.7",
|
|
15
|
+
"@vuepress/theme-default": "^2.0.0-rc.11",
|
|
16
|
+
"vue": "^3.4.0",
|
|
17
|
+
"vuepress": "^2.0.0-rc.7"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
root: true,
|
|
6
|
+
extends: [
|
|
7
|
+
'plugin:vue/recommended',
|
|
8
|
+
'plugin:vue/vue3-essential',
|
|
9
|
+
'plugin:vue/vue3-strongly-recommended',
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'eslint:recommended'
|
|
12
|
+
],
|
|
13
|
+
ignorePatterns: ['sdk/'], globals: {
|
|
14
|
+
'process': true
|
|
15
|
+
},
|
|
16
|
+
parser: 'vue-eslint-parser',
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaVersion: 'latest',
|
|
19
|
+
parser: '@typescript-eslint/parser'
|
|
20
|
+
},
|
|
21
|
+
rules: {
|
|
22
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
'@typescript-eslint/ban-ts-comment': 'off',
|
|
25
|
+
'vue/multi-word-component-names': ['off'],
|
|
26
|
+
'vue/no-v-for-template-key': 'off',
|
|
27
|
+
'vue/no-multiple-template-root': 'off',
|
|
28
|
+
'vue/no-v-model-argument': 'off',
|
|
29
|
+
'vue/max-attributes-per-line': ['error', {
|
|
30
|
+
'singleline': {
|
|
31
|
+
'max': 3
|
|
32
|
+
},
|
|
33
|
+
'multiline': {
|
|
34
|
+
'max': 3
|
|
35
|
+
}
|
|
36
|
+
}],
|
|
37
|
+
'accessor-pairs': 2,
|
|
38
|
+
'arrow-spacing': [2, {
|
|
39
|
+
'before': true,
|
|
40
|
+
'after': true
|
|
41
|
+
}],
|
|
42
|
+
'block-spacing': [2, 'always'],
|
|
43
|
+
'brace-style': [2, '1tbs', {
|
|
44
|
+
'allowSingleLine': true
|
|
45
|
+
}],
|
|
46
|
+
'camelcase': [2, {
|
|
47
|
+
'properties': 'always'
|
|
48
|
+
}],
|
|
49
|
+
'comma-dangle': [2, 'never'],
|
|
50
|
+
'comma-spacing': [2, {
|
|
51
|
+
'before': false,
|
|
52
|
+
'after': true
|
|
53
|
+
}],
|
|
54
|
+
'comma-style': [2, 'last'],
|
|
55
|
+
'constructor-super': 2,
|
|
56
|
+
'curly': [2, 'multi-line'],
|
|
57
|
+
'dot-location': [2, 'property'],
|
|
58
|
+
'eol-last': 2,
|
|
59
|
+
'eqeqeq': [2, 'allow-null'],
|
|
60
|
+
'generator-star-spacing': [2, {
|
|
61
|
+
'before': true,
|
|
62
|
+
'after': true
|
|
63
|
+
}],
|
|
64
|
+
'handle-callback-err': [2, '^(err|error)$'],
|
|
65
|
+
'indent': [1, 2, {
|
|
66
|
+
'SwitchCase': 1
|
|
67
|
+
}],
|
|
68
|
+
'jsx-quotes': [2, 'prefer-single'],
|
|
69
|
+
'key-spacing': [2, {
|
|
70
|
+
'beforeColon': false,
|
|
71
|
+
'afterColon': true
|
|
72
|
+
}],
|
|
73
|
+
'keyword-spacing': [2, {
|
|
74
|
+
'before': true,
|
|
75
|
+
'after': true
|
|
76
|
+
}],
|
|
77
|
+
'new-cap': [2, {
|
|
78
|
+
'newIsCap': true,
|
|
79
|
+
'capIsNew': false
|
|
80
|
+
}],
|
|
81
|
+
'new-parens': 2,
|
|
82
|
+
'no-array-constructor': 2,
|
|
83
|
+
'no-caller': 2,
|
|
84
|
+
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
85
|
+
'no-class-assign': 2,
|
|
86
|
+
'no-cond-assign': 2,
|
|
87
|
+
'no-const-assign': 2,
|
|
88
|
+
'no-control-regex': 0,
|
|
89
|
+
'no-delete-var': 2,
|
|
90
|
+
'no-dupe-args': 2,
|
|
91
|
+
'no-dupe-class-members': 2,
|
|
92
|
+
'no-dupe-keys': 2,
|
|
93
|
+
'no-duplicate-case': 2,
|
|
94
|
+
'no-empty-character-class': 2,
|
|
95
|
+
'no-empty-pattern': 2,
|
|
96
|
+
'no-eval': 2,
|
|
97
|
+
'no-ex-assign': 2,
|
|
98
|
+
'no-extend-native': 2,
|
|
99
|
+
'no-extra-bind': 2,
|
|
100
|
+
'no-extra-boolean-cast': 2,
|
|
101
|
+
'no-extra-parens': [2, 'functions'],
|
|
102
|
+
'no-fallthrough': 2,
|
|
103
|
+
'no-floating-decimal': 2,
|
|
104
|
+
'no-func-assign': 2,
|
|
105
|
+
'no-implied-eval': 2,
|
|
106
|
+
'no-inner-declarations': [2, 'functions'],
|
|
107
|
+
'no-invalid-regexp': 2,
|
|
108
|
+
'no-irregular-whitespace': 2,
|
|
109
|
+
'no-iterator': 2,
|
|
110
|
+
'no-label-var': 2,
|
|
111
|
+
'no-labels': [2, {
|
|
112
|
+
'allowLoop': false,
|
|
113
|
+
'allowSwitch': false
|
|
114
|
+
}],
|
|
115
|
+
'no-lone-blocks': 2,
|
|
116
|
+
'no-mixed-spaces-and-tabs': 2,
|
|
117
|
+
'no-multi-spaces': 2,
|
|
118
|
+
'no-multi-str': 2,
|
|
119
|
+
'no-multiple-empty-lines': [2, {
|
|
120
|
+
'max': 1
|
|
121
|
+
}],
|
|
122
|
+
'no-native-reassign': 2,
|
|
123
|
+
'no-negated-in-lhs': 2,
|
|
124
|
+
'no-new-object': 2,
|
|
125
|
+
'no-new-require': 2,
|
|
126
|
+
'no-new-symbol': 2,
|
|
127
|
+
'no-new-wrappers': 2,
|
|
128
|
+
'no-obj-calls': 2,
|
|
129
|
+
'no-octal': 2,
|
|
130
|
+
'no-octal-escape': 2,
|
|
131
|
+
'no-path-concat': 2,
|
|
132
|
+
'no-proto': 2,
|
|
133
|
+
'no-redeclare': 2,
|
|
134
|
+
'no-regex-spaces': 2,
|
|
135
|
+
'no-return-assign': [2, 'except-parens'],
|
|
136
|
+
'no-self-assign': 2,
|
|
137
|
+
'no-self-compare': 2,
|
|
138
|
+
'no-sequences': 2,
|
|
139
|
+
'no-shadow-restricted-names': 2,
|
|
140
|
+
'no-spaced-func': 2,
|
|
141
|
+
'no-sparse-arrays': 2,
|
|
142
|
+
'no-this-before-super': 2,
|
|
143
|
+
'no-throw-literal': 2,
|
|
144
|
+
'no-trailing-spaces': 2,
|
|
145
|
+
'no-undef': 2,
|
|
146
|
+
'no-undef-init': 2,
|
|
147
|
+
'no-unexpected-multiline': 2,
|
|
148
|
+
'no-unmodified-loop-condition': 2,
|
|
149
|
+
'no-unneeded-ternary': [2, {
|
|
150
|
+
'defaultAssignment': false
|
|
151
|
+
}],
|
|
152
|
+
'no-unreachable': 2,
|
|
153
|
+
'no-unsafe-finally': 2,
|
|
154
|
+
'no-unused-vars': 'off',
|
|
155
|
+
'no-useless-call': 2,
|
|
156
|
+
'no-useless-computed-key': 2,
|
|
157
|
+
'no-useless-constructor': 2,
|
|
158
|
+
'no-useless-escape': 1,
|
|
159
|
+
'no-whitespace-before-property': 2,
|
|
160
|
+
'no-with': 2,
|
|
161
|
+
'one-var': [2, {
|
|
162
|
+
'initialized': 'never'
|
|
163
|
+
}],
|
|
164
|
+
'operator-linebreak': [2, 'after', {
|
|
165
|
+
'overrides': {
|
|
166
|
+
'?': 'before',
|
|
167
|
+
':': 'before'
|
|
168
|
+
}
|
|
169
|
+
}],
|
|
170
|
+
'padded-blocks': [2, 'never'],
|
|
171
|
+
'quotes': [1, 'single', {
|
|
172
|
+
'avoidEscape': true,
|
|
173
|
+
'allowTemplateLiterals': true
|
|
174
|
+
}],
|
|
175
|
+
'semi': [2, 'never'],
|
|
176
|
+
'semi-spacing': [2, {
|
|
177
|
+
'before': false,
|
|
178
|
+
'after': true
|
|
179
|
+
}],
|
|
180
|
+
'space-before-blocks': [2, 'always'],
|
|
181
|
+
'space-in-parens': [2, 'never'],
|
|
182
|
+
'space-infix-ops': 2,
|
|
183
|
+
'space-unary-ops': [2, {
|
|
184
|
+
'words': true,
|
|
185
|
+
'nonwords': false
|
|
186
|
+
}],
|
|
187
|
+
'spaced-comment': [2, 'always', {
|
|
188
|
+
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
|
|
189
|
+
}],
|
|
190
|
+
'template-curly-spacing': [2, 'never'],
|
|
191
|
+
'use-isnan': 2,
|
|
192
|
+
'valid-typeof': 2,
|
|
193
|
+
'wrap-iife': [2, 'any'],
|
|
194
|
+
'yield-star-spacing': [2, 'both'],
|
|
195
|
+
'yoda': [2, 'never'],
|
|
196
|
+
'prefer-const': 0,
|
|
197
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
198
|
+
'object-curly-spacing': [2, 'always', {
|
|
199
|
+
objectsInObjects: false
|
|
200
|
+
}],
|
|
201
|
+
'array-bracket-spacing': [2, 'never']
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
10
|
+
node_modules
|
|
11
|
+
dist
|
|
12
|
+
dist-ssr
|
|
13
|
+
*.local
|
|
14
|
+
|
|
15
|
+
# Editor directories and files
|
|
16
|
+
.vscode/*
|
|
17
|
+
!.vscode/extensions.json
|
|
18
|
+
.idea
|
|
19
|
+
.DS_Store
|
|
20
|
+
*.suo
|
|
21
|
+
*.ntvs*
|
|
22
|
+
*.njsproj
|
|
23
|
+
*.sln
|
|
24
|
+
*.sw?
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- install
|
|
3
|
+
- eslint
|
|
4
|
+
- notify
|
|
5
|
+
|
|
6
|
+
cache:
|
|
7
|
+
key: '$CI_COMMIT_REF_SLUG'
|
|
8
|
+
|
|
9
|
+
install:
|
|
10
|
+
stage: install
|
|
11
|
+
cache:
|
|
12
|
+
paths:
|
|
13
|
+
- node_modules/
|
|
14
|
+
script:
|
|
15
|
+
- cnpm install
|
|
16
|
+
tags:
|
|
17
|
+
- sonar
|
|
18
|
+
|
|
19
|
+
eslint:
|
|
20
|
+
stage: eslint
|
|
21
|
+
cache:
|
|
22
|
+
paths:
|
|
23
|
+
- node_modules/
|
|
24
|
+
script:
|
|
25
|
+
- npm run lint
|
|
26
|
+
tags:
|
|
27
|
+
- sonar
|
|
28
|
+
|
|
29
|
+
notify-fail:
|
|
30
|
+
stage: notify
|
|
31
|
+
cache:
|
|
32
|
+
paths:
|
|
33
|
+
- node_modules/
|
|
34
|
+
script:
|
|
35
|
+
- >
|
|
36
|
+
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=10a543ce-7d15-4339-9ef4-48f1ac5f5c87'
|
|
37
|
+
-H 'Content-Type: application/json'
|
|
38
|
+
-d "{\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"项目构建结果:<font color=\\"warning\\">失败</font>\n>本次构建由: $GITLAB_USER_NAME 触发\n>项目名称:$CI_PROJECT_NAME\n>提交号:$CI_COMMIT_SHA\n>提交日志:$CI_COMMIT_MESSAGE\n>构建分支: $CI_COMMIT_REF_NAME\n>流水线地址:[$CI_PIPELINE_URL]($CI_PIPELINE_URL)\"}}"
|
|
39
|
+
when: on_failure
|
|
40
|
+
tags:
|
|
41
|
+
- sonar
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 这是一个 Vue 3 + TypeScript + Vite 的示例项目
|
|
2
|
+
该项目已经配置:
|
|
3
|
+
- eslint
|
|
4
|
+
- less
|
|
5
|
+
- bochui
|
|
6
|
+
- eslint gitlab 代码检查流水线
|
|
7
|
+
- 单元测试
|
|
8
|
+
- vitest 官方文档
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
你可能需要配置:
|
|
13
|
+
- vue-router
|
|
14
|
+
- pinia
|
|
15
|
+
- fs-utils
|
|
16
|
+
- axios
|
|
17
|
+
- 拉下代码,修改仓库地址 git remote set-url origin 项目远程仓库地址
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>example project</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|