This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree 5 files changed +51
-22
lines changed
5 files changed +51
-22
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ package-lock.json
10
10
# company
11
11
upload.js
12
12
env.js
13
+ .env. *
13
14
14
15
# testing
15
16
/coverage
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nutui-issue-helper" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 1.0 .0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
6
"dev" : " vite" ,
7
- "build" : " vite build" ,
8
- "upload" : " yarn build && NODE_ENV=dev node upload.js"
7
+ "build" : " vite build --mode staging" ,
8
+ "build:online" : " vite build" ,
9
+ "upload" : " yarn build && node upload.js"
9
10
},
10
11
"dependencies" : {
11
12
"@jd/upload-oss-tools" : " ^1.1.21" ,
Original file line number Diff line number Diff line change @@ -232,6 +232,8 @@ export default {
232
232
margin : 15px 0 8px
233
233
p
234
234
font-size 14px
235
+ .vue-ui-button.flat > .content > .button-icon svg
236
+ fill : #f4 43 36
235
237
</style >
236
238
237
239
<style lang="stylus" scoped>
Original file line number Diff line number Diff line change 28
28
/>
29
29
</VueFormField >
30
30
</div >
31
- <div class =" vue-ui-grid col-2 default-gap" >
31
+ <div
32
+ :class =" [
33
+ 'vue-ui-grid',
34
+ 'default-gap',
35
+ attrs.scenes.name != 'H5' ? 'col-2' : '',
36
+ ]"
37
+ >
32
38
<VueFormField :title =" i18n('nutui-repo-vue')" >
33
39
<VueTypeAhead
34
40
v-model =" attrs.versionVue"
40
46
required
41
47
/>
42
48
</VueFormField >
43
- <VueFormField :title =" i18n('nutui-repo-execution')" >
49
+ <VueFormField
50
+ :title =" i18n('nutui-repo-execution')"
51
+ v-if =" attrs.scenes.name != 'H5'"
52
+ >
44
53
<VueSelect
45
54
v-model =" attrs.runEnvVal"
46
55
:label =" attrs.runEnvVal.name"
@@ -334,7 +343,6 @@ export default {
334
343
findNodejs () {},
335
344
336
345
generate () {
337
- console .log (this .attrs );
338
346
const {
339
347
scenes ,
340
348
version ,
@@ -362,8 +370,14 @@ ${version}
362
370
### Vue version(vue 版本)
363
371
${ versionVue}
364
372
373
+ ${
374
+ scenes .name != " H5"
375
+ ? `
365
376
### Operating environment(运行环境)
366
377
${ runEnvVal .name }
378
+ `
379
+ : " "
380
+ }
367
381
368
382
### Citation method(引用方式)
369
383
${ useWay .name }
Original file line number Diff line number Diff line change 1
1
import { createVuePlugin } from "vite-plugin-vue2" ;
2
- import { url } from "./src/helpers/env" ;
2
+ import { defineConfig , loadEnv } from "vite" ;
3
+ import config from "./package.json" ;
3
4
4
- export default {
5
- base : url . base ,
6
- resolve : {
7
- alias : {
8
- "/images" : "./src/assets/images" ,
5
+ export default ( { mode } ) => {
6
+ process . env = { ...process . env , ...loadEnv ( mode , process . cwd ( ) ) } ;
7
+
8
+ return defineConfig ( {
9
+ base : process . env . VITE_APP_BASE ,
10
+ resolve : {
11
+ alias : {
12
+ "/images" : "./src/assets/images" ,
13
+ } ,
9
14
} ,
10
- } ,
11
- plugins : [
12
- createVuePlugin ( ) ,
13
- {
14
- name : "load-raw-md" ,
15
- transform ( code , id ) {
16
- if ( id . endsWith ( ".md" ) ) {
17
- return `export default ${ JSON . stringify ( code ) } ` ;
18
- }
15
+ plugins : [
16
+ createVuePlugin ( ) ,
17
+ {
18
+ name : "load-raw-md" ,
19
+ transform ( code , id ) {
20
+ if ( id . endsWith ( ".md" ) ) {
21
+ return `export default ${ JSON . stringify ( code ) } ` ;
22
+ }
23
+ } ,
19
24
} ,
25
+ ] ,
26
+ build : {
27
+ target : "es2015" ,
28
+ outDir : "./dist/nutui-issue-helper/" ,
29
+ assetsDir : config . version ,
30
+ cssCodeSplit : true ,
20
31
} ,
21
- ] ,
32
+ } ) ;
22
33
} ;
You can’t perform that action at this time.
0 commit comments