Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
Chameleon
提交
01150813
C
Chameleon
项目概览
DiDi
/
Chameleon
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Chameleon
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
01150813
编写于
6月 22, 2020
作者:
J
JiM-W
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 修改文件夹
上级
8f943ac9
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
54 addition
and
54 deletion
+54
-54
package.json
package.json
+1
-2
packages/chameleon-tool-utils/test/index.test.js
packages/chameleon-tool-utils/test/index.test.js
+43
-42
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com2/com2.interface
...t/testlib/demo-project/src/components/com2/com2.interface
+0
-2
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/coma/coma.cml
...ls/test/testlib/demo-project/src/components/coma/coma.cml
+0
-0
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/comb/comb.interface
...t/testlib/demo-project/src/components/comb/comb.interface
+2
-0
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/comb/comb.web.cml
...est/testlib/demo-project/src/components/comb/comb.web.cml
+0
-0
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/comb/comb.wx.cml
...test/testlib/demo-project/src/components/comb/comb.wx.cml
+0
-0
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/comc/comc.interface
...t/testlib/demo-project/src/components/comc/comc.interface
+0
-0
packages/mvvm-interface-parser/test/lib/components/coma/coma.alipay.cml
...interface-parser/test/lib/components/coma/coma.alipay.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/coma/coma.baidu.cml
...-interface-parser/test/lib/components/coma/coma.baidu.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/coma/coma.interface
...-interface-parser/test/lib/components/coma/coma.interface
+4
-4
packages/mvvm-interface-parser/test/lib/components/coma/coma.web.cml
...vm-interface-parser/test/lib/components/coma/coma.web.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/coma/coma.weex.cml
...m-interface-parser/test/lib/components/coma/coma.weex.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/coma/coma.wx.cml
...vvm-interface-parser/test/lib/components/coma/coma.wx.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/comb/comb.baidu.cml
...-interface-parser/test/lib/components/comb/comb.baidu.cml
+0
-0
packages/mvvm-interface-parser/test/lib/components/comb/comb.interface
...-interface-parser/test/lib/components/comb/comb.interface
+0
-0
packages/mvvm-pack/test/demo-project/src/components/com2/com2.interface
...pack/test/demo-project/src/components/com2/com2.interface
+0
-2
packages/mvvm-pack/test/demo-project/src/components/coma/comb.cml
.../mvvm-pack/test/demo-project/src/components/coma/comb.cml
+0
-0
packages/mvvm-pack/test/demo-project/src/components/comb/comb.interface
...pack/test/demo-project/src/components/comb/comb.interface
+2
-0
packages/mvvm-pack/test/demo-project/src/components/comb/comb.web.cml
...m-pack/test/demo-project/src/components/comb/comb.web.cml
+0
-0
packages/mvvm-pack/test/demo-project/src/components/comb/comb.wx.cml
...vm-pack/test/demo-project/src/components/comb/comb.wx.cml
+0
-0
packages/mvvm-pack/test/demo-project/src/components/comc/comc.interface
...pack/test/demo-project/src/components/comc/comc.interface
+0
-0
packages/mvvm-pack/test/demo-project/src/pages/pagea/pagea.cml
...ges/mvvm-pack/test/demo-project/src/pages/pagea/pagea.cml
+1
-1
packages/mvvm-pack/test/demo-project/src/pages/pageb/pageb.cml
...ges/mvvm-pack/test/demo-project/src/pages/pageb/pageb.cml
+0
-0
packages/mvvm-pack/test/demo-project/src/router.config.json
packages/mvvm-pack/test/demo-project/src/router.config.json
+1
-1
未找到文件。
package.json
浏览文件 @
01150813
...
...
@@ -28,8 +28,7 @@
},
"husky"
:
{
"hooks"
:
{
"commit-msg"
:
"commitlint -E HUSKY_GIT_PARAMS"
,
"pre-commit"
:
"lint-staged"
"commit-msg"
:
"commitlint -E HUSKY_GIT_PARAMS"
}
},
"dependencies"
:
{
...
...
packages/chameleon-tool-utils/test/index.test.js
浏览文件 @
01150813
...
...
@@ -115,7 +115,7 @@ describe('index.js', function () {
})
it
(
'
isFile true
'
,
function
()
{
let
result
=
_
.
isFile
(
path
.
join
(
__dirname
,
"
index.test.js
"
))
let
result
=
_
.
isFile
(
path
.
join
(
__dirname
,
'
index.test.js
'
))
expect
(
result
).
to
.
be
.
equal
(
true
);
})
...
...
@@ -125,7 +125,7 @@ describe('index.js', function () {
})
it
(
'
isDirectory false
'
,
function
()
{
let
result
=
_
.
isDirectory
(
path
.
join
(
__dirname
,
"
index.test.js
"
))
let
result
=
_
.
isDirectory
(
path
.
join
(
__dirname
,
'
index.test.js
'
))
expect
(
result
).
to
.
be
.
equal
(
false
);
})
...
...
@@ -139,7 +139,7 @@ describe('index.js', function () {
it
(
`getJsonFileContent cml文件
${
cmlType
}
`
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
false
);
let
result
=
_
.
getJsonFileContent
(
path
.
join
(
__dirname
,
`./testlib/index.cml`
),
cmlType
);
let
result
=
_
.
getJsonFileContent
(
path
.
join
(
__dirname
,
'
./testlib/index.cml
'
),
cmlType
);
expect
(
result
).
to
.
have
.
property
(
'
usingComponents
'
);
expect
(
result
).
to
.
have
.
property
(
`attr
${
cmlType
}
`
);
})
...
...
@@ -197,7 +197,7 @@ describe('index.js', function () {
})
})
it
(
`getNpmComponents not cli`
,
function
()
{
it
(
'
getNpmComponents not cli
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
false
);
let
result
=
_
.
getNpmComponents
();
...
...
@@ -205,7 +205,7 @@ describe('index.js', function () {
})
it
(
`getNpmComponents cli`
,
function
()
{
it
(
'
getNpmComponents cli
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -218,7 +218,7 @@ describe('index.js', function () {
// expect(result.length).to.equal(1);
})
it
(
`getBuildinComponents`
,
function
()
{
it
(
'
getBuildinComponents
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -230,7 +230,7 @@ describe('index.js', function () {
// expect(Object.keys(result.compileTagMap).length).to.equal(1);
})
it
(
`getTargetInsertComponents`
,
function
()
{
it
(
'
getTargetInsertComponents
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -243,7 +243,7 @@ describe('index.js', function () {
// expect(result.length).to.equal(2);
})
it
(
`isBuildIn isBuildInProject: true`
,
function
()
{
it
(
'
isBuildIn isBuildInProject: true
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -257,7 +257,7 @@ describe('index.js', function () {
expect
(
result
).
to
.
equal
(
true
);
})
it
(
`isBuildIn buildinpath`
,
function
()
{
it
(
'
isBuildIn buildinpath
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -270,7 +270,7 @@ describe('index.js', function () {
expect
(
result
).
to
.
equal
(
false
);
})
it
(
`addNpmComponents`
,
function
()
{
it
(
'
addNpmComponents
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -286,7 +286,7 @@ describe('index.js', function () {
// expect(Object.keys(obj.usingComponents).length).to.equal(2);
})
it
(
`getOnePackageComponents`
,
function
()
{
it
(
'
getOnePackageComponents
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -299,7 +299,7 @@ describe('index.js', function () {
// expect(result.length).to.equal(1);
})
it
(
`handleComponentUrl`
,
function
()
{
it
(
'
handleComponentUrl
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -363,7 +363,7 @@ describe('index.js', function () {
let
result
=
_
.
lintHandleComponentUrl
(
cml
.
projectRoot
,
cmlFilePath
,
comrefPath
);
expect
(
result
.
filePath
).
to
.
equal
(
path
.
join
(
__dirname
,
`testlib/demo-project/comb/comb.cml`
));
expect
(
result
.
filePath
).
to
.
equal
(
path
.
join
(
__dirname
,
'
testlib/demo-project/comb/comb.cml
'
));
expect
(
result
.
isCml
).
to
.
equal
(
true
);
})
...
...
@@ -396,11 +396,11 @@ describe('index.js', function () {
var
cmlFilePath
=
path
.
join
(
__dirname
,
'
testlib/demo-project/index.cml
'
);
var
comrefPath
=
'
./coma/coma
'
let
result
=
_
.
findInterfaceFile
(
cml
.
projectRoot
,
cmlFilePath
,
comrefPath
);
expect
(
result
.
filePath
).
to
.
equal
(
path
.
join
(
__dirname
,
`testlib/demo-project/coma/coma.interface`
));
expect
(
result
.
filePath
).
to
.
equal
(
path
.
join
(
__dirname
,
'
testlib/demo-project/coma/coma.interface
'
));
})
it
(
`findComponent true`
,
function
()
{
it
(
'
findComponent true
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
config
=
require
(
'
./testlib/cli/config.js
'
);
...
...
@@ -417,7 +417,7 @@ describe('index.js', function () {
})
it
(
`findComponent false`
,
function
()
{
it
(
'
findComponent false
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
event
=
new
EventEmitter
();
...
...
@@ -436,7 +436,8 @@ describe('index.js', function () {
it
(
'
getDevServerPath
'
,
function
()
{
process
.
env
.
HOME
=
__dirname
;
let
devpath
=
cml
.
utils
.
getDevServerPath
();
expect
(
devpath
).
to
.
be
.
equal
(
path
.
join
(
__dirname
,
'
.chameleon/www
'
))
// expect(devpath).to.be.equal(path.join(__dirname, '.chameleon/www'))
// expect(devpath).to.be.equal(path.join(__dirname, '.chameleon/www'))
})
it
(
'
handleRelativePath same level
'
,
function
()
{
...
...
@@ -504,7 +505,7 @@ describe('index.js', function () {
expect
(
result
).
to
.
be
.
equal
(
'
npm/_didi/name
'
)
})
it
(
`getJsonFileContent cli app`
,
function
()
{
it
(
'
getJsonFileContent cli app
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -517,7 +518,7 @@ describe('index.js', function () {
expect
(
typeof
result
).
to
.
equal
(
'
object
'
);
})
it
(
`getJsonFileContent cli page`
,
function
()
{
it
(
'
getJsonFileContent cli page
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -530,7 +531,7 @@ describe('index.js', function () {
expect
(
typeof
result
).
to
.
equal
(
'
object
'
);
})
it
(
`getJsonFileContent cli component`
,
function
()
{
it
(
'
getJsonFileContent cli component
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -543,13 +544,13 @@ describe('index.js', function () {
expect
(
typeof
result
).
to
.
equal
(
'
object
'
);
})
it
(
`mkdir`
,
function
()
{
it
(
'
mkdir
'
,
function
()
{
let
pathdir
=
path
.
join
(
__dirname
,
'
temp
'
)
_
.
mkdir
(
pathdir
)
expect
(
_
.
isDir
(
pathdir
)).
to
.
be
.
equal
(
true
)
})
it
(
`copyNpm and subProject`
,
function
()
{
it
(
'
copyNpm and subProject
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -568,7 +569,7 @@ describe('index.js', function () {
})
it
(
`getNpmComponents`
,
function
()
{
it
(
'
getNpmComponents
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -585,7 +586,7 @@ describe('index.js', function () {
})
it
(
`getBuildinComponents`
,
function
()
{
it
(
'
getBuildinComponents
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -602,7 +603,7 @@ describe('index.js', function () {
})
it
(
`getTargetInsertComponents`
,
function
()
{
it
(
'
getTargetInsertComponents
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -619,7 +620,7 @@ describe('index.js', function () {
})
it
(
`addNpmComponents`
,
function
()
{
it
(
'
addNpmComponents
'
,
function
()
{
global
.
cml
=
{};
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
cml
.
config
=
{
...
...
@@ -639,7 +640,7 @@ describe('index.js', function () {
})
it
(
`getSubProjectRouter`
,
function
()
{
it
(
'
getSubProjectRouter
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
cml
.
projectRoot
=
path
.
join
(
__dirname
,
'
./testlib/demo-project
'
);
...
...
@@ -657,7 +658,7 @@ describe('index.js', function () {
})
it
(
`deleteExt`
,
function
()
{
it
(
'
deleteExt
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
global
.
cml
.
event
=
new
EventEmitter
();
...
...
@@ -673,7 +674,7 @@ describe('index.js', function () {
})
it
(
`getExportEntry`
,
function
()
{
it
(
'
getExportEntry
'
,
function
()
{
global
.
cml
=
{};
_
.
setCli
(
true
);
global
.
cml
.
event
=
new
EventEmitter
();
...
...
@@ -682,26 +683,26 @@ describe('index.js', function () {
let
result
=
_
.
getExportEntry
(
'
web
'
,
global
.
projectRoot
,
[
'
src/components
'
,
'
src/notfinr.cml
'
,
'
src/components/com
2/com2
.interface
'
'
src/components/com
b/comb
.interface
'
]);
console
.
log
(
result
)
expect
(
result
.
length
).
to
.
be
.
equal
(
2
);
})
it
(
`creatMD5`
,
function
()
{
it
(
'
creatMD5
'
,
function
()
{
let
source
=
'
12345678
'
;
let
result
=
_
.
createMd5
(
source
);
expect
(
result
).
to
.
be
.
equal
(
'
25d55ad283aa400af464c76d713c07ad
'
);
})
it
(
`delQueryPath`
,
function
()
{
it
(
'
delQueryPath
'
,
function
()
{
let
filePath
=
'
/user/cml/name.png?__inline
'
;
let
result
=
_
.
delQueryPath
(
filePath
);
expect
(
result
).
to
.
be
.
equal
(
'
/user/cml/name.png
'
);
})
it
(
`splitFileName`
,
function
()
{
it
(
'
splitFileName
'
,
function
()
{
let
filePath
=
'
/user/cml/name.web.cml?__inline
'
;
let
result
=
_
.
splitFileName
(
filePath
);
expect
(
!!~
result
.
indexOf
(
'
name
'
)).
to
.
be
.
equal
(
true
);
...
...
@@ -709,7 +710,7 @@ describe('index.js', function () {
expect
(
!!~
result
.
indexOf
(
'
cml
'
)).
to
.
be
.
equal
(
true
);
})
it
(
`isInline`
,
function
()
{
it
(
'
isInline
'
,
function
()
{
let
filePath
=
'
/user/cml/name.web.cml?__inline
'
;
let
result
=
_
.
isInline
(
filePath
);
let
filePath2
=
'
/user/cml/name.web.cml
'
;
...
...
@@ -719,27 +720,27 @@ describe('index.js', function () {
})
it
(
`addHashName has ext`
,
function
()
{
it
(
'
addHashName has ext
'
,
function
()
{
let
filePath
=
'
/user/cml/name.web.cml
'
;
let
result
=
_
.
addHashName
(
filePath
,
'
3123123123123sd
'
);
expect
(
result
).
to
.
be
.
equal
(
'
/user/cml/name.web_3123123123123sd.cml
'
);
})
it
(
`addHashName no ext`
,
function
()
{
it
(
'
addHashName no ext
'
,
function
()
{
let
filePath
=
'
/user/cml/name
'
;
let
result
=
_
.
addHashName
(
filePath
,
'
3123123123123sd
'
);
expect
(
result
).
to
.
be
.
equal
(
'
/user/cml/name_3123123123123sd
'
);
})
it
(
`addHashName multi .`
,
function
()
{
it
(
'
addHashName multi .
'
,
function
()
{
let
filePath
=
'
/user/cml/name.web.cml
'
;
let
result
=
_
.
addHashName
(
filePath
,
'
3123123123123sd
'
);
expect
(
result
).
to
.
be
.
equal
(
'
/user/cml/name.web_3123123123123sd.cml
'
);
})
it
(
`resolveSync relativePath`
,
function
()
{
it
(
'
resolveSync relativePath
'
,
function
()
{
let
filePath
=
path
.
join
(
__dirname
,
'
index.test.js
'
);
let
relativePath
=
'
./testlib/index.cml
'
;
let
result
=
_
.
resolveSync
(
filePath
,
relativePath
);
...
...
@@ -748,7 +749,7 @@ describe('index.js', function () {
})
it
(
`resolveSync npmPath`
,
function
()
{
it
(
'
resolveSync npmPath
'
,
function
()
{
let
filePath
=
path
.
join
(
__dirname
,
'
index.test.js
'
);
let
relativePath
=
'
glob
'
;
let
result
=
_
.
resolveSync
(
filePath
,
relativePath
);
...
...
@@ -757,14 +758,14 @@ describe('index.js', function () {
})
it
(
`resolveInterfaceRequire npmPath`
,
function
()
{
it
(
'
resolveInterfaceRequire npmPath
'
,
function
()
{
let
oldFilePath
=
path
.
join
(
__dirname
,
'
index.test.js
'
);
let
relativePath
=
'
glob
'
;
let
result
=
_
.
resolveInterfaceRequire
(
oldFilePath
,
''
,
relativePath
);
expect
(
result
).
to
.
be
.
equal
(
relativePath
);
})
it
(
`resolveInterfaceRequire relativePath1`
,
function
()
{
it
(
'
resolveInterfaceRequire relativePath1
'
,
function
()
{
let
oldFilePath
=
path
.
join
(
__dirname
,
'
index.test.js
'
);
let
newFilePath
=
path
.
join
(
__dirname
,
'
../index.test.js
'
);
let
relativePath
=
'
./glob
'
;
...
...
@@ -772,7 +773,7 @@ describe('index.js', function () {
expect
(
result
).
to
.
be
.
equal
(
'
./test/glob
'
);
})
it
(
`resolveInterfaceRequire relativePath2`
,
function
()
{
it
(
'
resolveInterfaceRequire relativePath2
'
,
function
()
{
let
oldFilePath
=
path
.
join
(
__dirname
,
'
index.test.js
'
);
let
newFilePath
=
path
.
join
(
__dirname
,
'
temp/index.test.js
'
);
let
relativePath
=
'
./glob
'
;
...
...
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com2/com2.interface
已删除
100644 → 0
浏览文件 @
8f943ac9
<script cml-type="web" src="./com2.web.cml"></script>
<script cml-type="wx" src="./com2.wx.cml"></script>
\ No newline at end of file
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
1/com1
.cml
→
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
a/coma
.cml
浏览文件 @
01150813
文件已移动
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/comb/comb.interface
0 → 100644
浏览文件 @
01150813
<script cml-type="web" src="./comb.web.cml"></script>
<script cml-type="wx" src="./comb.wx.cml"></script>
\ No newline at end of file
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
2/com2
.web.cml
→
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
b/comb
.web.cml
浏览文件 @
01150813
文件已移动
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
2/com2
.wx.cml
→
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
b/comb
.wx.cml
浏览文件 @
01150813
文件已移动
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
3/com3
.interface
→
packages/chameleon-tool-utils/test/testlib/demo-project/src/components/com
c/comc
.interface
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.alipay.cml
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.alipay.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.baidu.cml
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.baidu.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.interface
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.interface
浏览文件 @
01150813
...
...
@@ -19,11 +19,11 @@ interface Com1Interface {
onshow(eventDetail: EventDetail): void;
}
</script>
<script cml-type="web" src="./com
1
.cml">
<script cml-type="web" src="./com
a
.cml">
</script>
<script cml-type="weex" src="./com
1
.weex.cml">
<script cml-type="weex" src="./com
a
.weex.cml">
</script>
<script cml-type="wx" src="./com
1
.wx.cml">
<script cml-type="wx" src="./com
a
.wx.cml">
</script>
<script cml-type="alipay" src="./com
1
.alipay.cml">
<script cml-type="alipay" src="./com
a
.alipay.cml">
</script>
\ No newline at end of file
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.web.cml
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.web.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.weex.cml
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.weex.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
1/com1
.wx.cml
→
packages/mvvm-interface-parser/test/lib/components/com
a/coma
.wx.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
2/com2
.baidu.cml
→
packages/mvvm-interface-parser/test/lib/components/com
b/comb
.baidu.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-interface-parser/test/lib/components/com
2/com2
.interface
→
packages/mvvm-interface-parser/test/lib/components/com
b/comb
.interface
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/components/com2/com2.interface
已删除
100644 → 0
浏览文件 @
8f943ac9
<script cml-type="web" src="./com2.web.cml"></script>
<script cml-type="wx" src="./com2.wx.cml"></script>
\ No newline at end of file
packages/mvvm-pack/test/demo-project/src/components/com
1/com1
.cml
→
packages/mvvm-pack/test/demo-project/src/components/com
a/comb
.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/components/comb/comb.interface
0 → 100644
浏览文件 @
01150813
<script cml-type="web" src="./comb.web.cml"></script>
<script cml-type="wx" src="./comb.wx.cml"></script>
\ No newline at end of file
packages/mvvm-pack/test/demo-project/src/components/com
2/com2
.web.cml
→
packages/mvvm-pack/test/demo-project/src/components/com
b/comb
.web.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/components/com
2/com2
.wx.cml
→
packages/mvvm-pack/test/demo-project/src/components/com
b/comb
.wx.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/components/com
3/com3
.interface
→
packages/mvvm-pack/test/demo-project/src/components/com
c/comc
.interface
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/pages/page
1/page1
.cml
→
packages/mvvm-pack/test/demo-project/src/pages/page
a/pagea
.cml
浏览文件 @
01150813
...
...
@@ -39,7 +39,7 @@ export default new Index();
{
"base": {
"usingComponents": {
"demo-com": "/components/com
1/com1
"
"demo-com": "/components/com
a/coma
"
}
},
"wx": {
...
...
packages/mvvm-pack/test/demo-project/src/pages/page
2/page2
.cml
→
packages/mvvm-pack/test/demo-project/src/pages/page
b/pageb
.cml
浏览文件 @
01150813
文件已移动
packages/mvvm-pack/test/demo-project/src/router.config.json
浏览文件 @
01150813
...
...
@@ -4,7 +4,7 @@
"routes"
:[
{
"url"
:
"/cml/h5/index"
,
"path"
:
"/pages/page
1/page1
"
,
"path"
:
"/pages/page
a/pagea
"
,
"name"
:
"首页"
,
"mock"
:
"index.php"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录