Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
菜鸟程序猿_c
uni-app
提交
40342b20
U
uni-app
项目概览
菜鸟程序猿_c
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
40342b20
编写于
4月 07, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: quickapp=>quickapp-vue
上级
e637d4af
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
18 addition
and
17 deletion
+18
-17
packages/uni-quickapp-vue/lib/uni.config.js
packages/uni-quickapp-vue/lib/uni.config.js
+1
-9
packages/uni-quickapp-vue/lib/vue.config.js
packages/uni-quickapp-vue/lib/vue.config.js
+9
-0
packages/uni-quickapp-vue/package.json
packages/uni-quickapp-vue/package.json
+1
-1
packages/uni-template-compiler/lib/index.js
packages/uni-template-compiler/lib/index.js
+3
-3
packages/vue-cli-plugin-uni/index.js
packages/vue-cli-plugin-uni/index.js
+2
-2
packages/vue-cli-plugin-uni/lib/env.js
packages/vue-cli-plugin-uni/lib/env.js
+1
-1
packages/vue-cli-plugin-uni/packages/postcss/index.js
packages/vue-cli-plugin-uni/packages/postcss/index.js
+1
-1
packages/webpack-uni-pages-loader/lib/platforms/quickapp-vue.js
...es/webpack-uni-pages-loader/lib/platforms/quickapp-vue.js
+0
-0
未找到文件。
packages/uni-quickapp-vue/lib/uni.config.js
浏览文件 @
40342b20
global
.
framework
=
{}
module
.
exports
=
{}
const
chainWebpack
=
require
(
'
./chain-webpack
'
)
const
configureWebpack
=
require
(
'
./configure-webpack
'
)
module
.
exports
=
{
chainWebpack
,
configureWebpack
}
packages/uni-quickapp-vue/lib/vue.config.js
0 → 100644
浏览文件 @
40342b20
global
.
framework
=
{}
const
chainWebpack
=
require
(
'
./chain-webpack
'
)
const
configureWebpack
=
require
(
'
./configure-webpack
'
)
module
.
exports
=
{
chainWebpack
,
configureWebpack
}
packages/uni-quickapp-vue/package.json
浏览文件 @
40342b20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
"license"
:
"Apache-2.0"
,
"license"
:
"Apache-2.0"
,
"gitHead"
:
"110501ffb0313e417858dec92acf07522d4ded00"
,
"gitHead"
:
"110501ffb0313e417858dec92acf07522d4ded00"
,
"uni-app"
:
{
"uni-app"
:
{
"name"
:
"quickapp"
,
"name"
:
"quickapp
-vue
"
,
"title"
:
"快应用(Vue)版"
"title"
:
"快应用(Vue)版"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
packages/uni-template-compiler/lib/index.js
浏览文件 @
40342b20
...
@@ -80,12 +80,12 @@ module.exports = {
...
@@ -80,12 +80,12 @@ module.exports = {
console
.
error
(
source
)
console
.
error
(
source
)
throw
e
throw
e
}
}
}
else
if
(
options
.
quickapp
)
{
}
else
if
(
options
[
'
quickapp-vue
'
]
)
{
// 后续改版,应统一由具体包实现
// 后续改版,应统一由具体包实现
(
options
.
modules
||
(
options
.
modules
=
[])).
push
(
require
(
'
@dcloudio/uni-quickapp/lib/compiler-module
'
))
(
options
.
modules
||
(
options
.
modules
=
[])).
push
(
require
(
'
@dcloudio/uni-quickapp
-vue
/lib/compiler-module
'
))
}
}
if
(
!
options
.
mp
)
{
// h5,quickapp
if
(
!
options
.
mp
)
{
// h5,quickapp
-vue
return
compileTemplate
(
source
,
options
,
compile
)
return
compileTemplate
(
source
,
options
,
compile
)
}
}
...
...
packages/vue-cli-plugin-uni/index.js
浏览文件 @
40342b20
...
@@ -19,7 +19,7 @@ module.exports = (api, options) => {
...
@@ -19,7 +19,7 @@ module.exports = (api, options) => {
initBuildCommand
(
api
,
options
)
initBuildCommand
(
api
,
options
)
if
(
process
.
env
.
UNI_PLATFORM
===
'
quickapp
'
)
{
if
(
process
.
env
.
UNI_PLATFORM
===
'
quickapp
-vue
'
)
{
process
.
env
.
UNI_OUTPUT_DIR
=
path
.
resolve
(
process
.
env
.
UNI_OUTPUT_DIR
,
'
build
'
)
process
.
env
.
UNI_OUTPUT_DIR
=
path
.
resolve
(
process
.
env
.
UNI_OUTPUT_DIR
,
'
build
'
)
Object
.
assign
(
options
,
{
Object
.
assign
(
options
,
{
assetsDir
,
assetsDir
,
...
@@ -35,7 +35,7 @@ module.exports = (api, options) => {
...
@@ -35,7 +35,7 @@ module.exports = (api, options) => {
api
.
configureWebpack
(
require
(
'
./lib/configure-webpack
'
)(
platformOptions
,
manifestPlatformOptions
,
options
,
api
))
api
.
configureWebpack
(
require
(
'
./lib/configure-webpack
'
)(
platformOptions
,
manifestPlatformOptions
,
options
,
api
))
api
.
chainWebpack
(
require
(
'
./lib/chain-webpack
'
)(
platformOptions
,
options
,
api
))
api
.
chainWebpack
(
require
(
'
./lib/chain-webpack
'
)(
platformOptions
,
options
,
api
))
const
vueConfig
=
require
(
'
@dcloudio/uni-quickapp/lib/vue.config.js
'
)
const
vueConfig
=
require
(
'
@dcloudio/uni-quickapp
-vue
/lib/vue.config.js
'
)
api
.
configureWebpack
(
vueConfig
.
configureWebpack
)
api
.
configureWebpack
(
vueConfig
.
configureWebpack
)
api
.
chainWebpack
(
vueConfig
.
chainWebpack
)
api
.
chainWebpack
(
vueConfig
.
chainWebpack
)
return
return
...
...
packages/vue-cli-plugin-uni/lib/env.js
浏览文件 @
40342b20
...
@@ -287,7 +287,7 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
...
@@ -287,7 +287,7 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
console
.
log
(
'
当前nvue编译模式
'
+
(
process
.
env
.
UNI_USING_V3_NATIVE
?
'
(v3)
'
:
''
)
+
'
:
'
+
(
isNVueCompiler
?
'
uni-app
'
console
.
log
(
'
当前nvue编译模式
'
+
(
process
.
env
.
UNI_USING_V3_NATIVE
?
'
(v3)
'
:
''
)
+
'
:
'
+
(
isNVueCompiler
?
'
uni-app
'
:
'
weex
'
)
+
:
'
weex
'
)
+
'
。编译模式差异见:https://ask.dcloud.net.cn/article/36074
'
)
'
。编译模式差异见:https://ask.dcloud.net.cn/article/36074
'
)
}
else
if
(
process
.
env
.
UNI_PLATFORM
!==
'
h5
'
&&
process
.
env
.
UNI_PLATFORM
!==
'
quickapp
'
)
{
}
else
if
(
process
.
env
.
UNI_PLATFORM
!==
'
h5
'
&&
process
.
env
.
UNI_PLATFORM
!==
'
quickapp
-vue
'
)
{
try
{
try
{
let
info
=
''
let
info
=
''
if
(
process
.
env
.
UNI_PLATFORM
===
'
app-plus
'
)
{
if
(
process
.
env
.
UNI_PLATFORM
===
'
app-plus
'
)
{
...
...
packages/vue-cli-plugin-uni/packages/postcss/index.js
浏览文件 @
40342b20
...
@@ -241,7 +241,7 @@ if (process.env.UNI_USING_V3) {
...
@@ -241,7 +241,7 @@ if (process.env.UNI_USING_V3) {
// Transform each property declaration here
// Transform each property declaration here
decl
.
value
=
tranformValue
(
decl
,
opts
)
decl
.
value
=
tranformValue
(
decl
,
opts
)
})
})
if
(
process
.
env
.
UNI_PLATFORM
!==
'
quickapp
'
)
{
if
(
process
.
env
.
UNI_PLATFORM
!==
'
quickapp
-vue
'
)
{
rule
.
selectors
=
rule
.
selectors
.
map
(
complexSelector
=>
{
rule
.
selectors
=
rule
.
selectors
.
map
(
complexSelector
=>
{
return
transformSelector
(
complexSelector
,
simpleSelectors
=>
{
return
transformSelector
(
complexSelector
,
simpleSelectors
=>
{
return
simpleSelectors
.
walkTags
(
tag
=>
{
return
simpleSelectors
.
walkTags
(
tag
=>
{
...
...
packages/webpack-uni-pages-loader/lib/platforms/quickapp.js
→
packages/webpack-uni-pages-loader/lib/platforms/quickapp
-vue
.js
浏览文件 @
40342b20
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录