Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
DoraemonKit
提交
6fd7ff27
D
DoraemonKit
项目概览
DiDi
/
DoraemonKit
12 个月 前同步成功
通知
166
Star
19623
Fork
3062
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DoraemonKit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6fd7ff27
编写于
4月 25, 2021
作者:
D
duanlikang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: modify @dokit/web config
上级
a026af4f
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
35 addition
and
37 deletion
+35
-37
Web/.gitignore
Web/.gitignore
+1
-1
Web/lerna.json
Web/lerna.json
+3
-1
Web/package.json
Web/package.json
+5
-6
Web/packages/core/rollup.config.js
Web/packages/core/rollup.config.js
+7
-5
Web/packages/core/src/components/app.vue
Web/packages/core/src/components/app.vue
+1
-1
Web/packages/core/src/index.js
Web/packages/core/src/index.js
+3
-1
Web/packages/web/README.md
Web/packages/web/README.md
+1
-11
Web/packages/web/package.json
Web/packages/web/package.json
+3
-1
Web/packages/web/rollup.config.js
Web/packages/web/rollup.config.js
+6
-6
Web/packages/web/src/index.js
Web/packages/web/src/index.js
+4
-4
Web/playground/index.html
Web/playground/index.html
+1
-0
未找到文件。
Web/.gitignore
浏览文件 @
6fd7ff27
Web/lerna.json
浏览文件 @
6fd7ff27
{
"tagVersionPrefix"
:
"web_"
,
"packages"
:
[
"packages/*"
],
...
...
@@ -7,10 +8,11 @@
"command"
:
{
"publish"
:
{
"allowBranch"
:
[
"ma
in
"
,
"ma
ster
"
,
"release"
],
"ignoreChanges"
:
[
"*.md"
,
"lerna.json"
],
"registry"
:
"https://registry.npmjs.org/"
...
...
Web/package.json
浏览文件 @
6fd7ff27
...
...
@@ -14,21 +14,20 @@
"author"
:
"caoenze"
,
"license"
:
"ISC"
,
"devDependencies"
:
{
"@vue/compiler-sfc"
:
"^3.0.
7
"
,
"@vue/compiler-sfc"
:
"^3.0.
11
"
,
"execa"
:
"^5.0.0"
,
"lerna"
:
"^4.0.0"
,
"less"
:
"^4.1.1"
,
"open"
:
"^8.0.6"
,
"postcss"
:
"^8.2.12"
,
"rollup"
:
"^2.41.1"
,
"rollup-plugin-commonjs"
:
"^10.1.0"
,
"rollup-plugin-node-resolve"
:
"^5.2.0"
,
"rollup-plugin-postcss"
:
"^4.0.0"
,
"rollup-plugin-replace"
:
"^2.2.0"
,
"rollup-plugin-vue"
:
"^6.0.0-beta.10"
,
"rollup-plugin-terser"
:
"^7.0.2"
,
"rollup-plugin-vue"
:
"^6.0.0"
,
"serve-handler"
:
"^6.1.3"
},
"dependencies"
:
{
"rollup-plugin-terser"
:
"^7.0.2"
,
"vue"
:
"^3.0.7"
}
"dependencies"
:
{}
}
Web/packages/core/rollup.config.js
浏览文件 @
6fd7ff27
...
...
@@ -12,17 +12,19 @@ if(process.env.NODE_ENV === 'production'){
export
default
{
input
:
'
src/index.js
'
,
output
:
{
output
:
[
{
file
:
'
dist/index.js
'
,
format
:
'
cjs
'
},
format
:
'
es
'
}
],
external
:
[
'
vue
'
],
plugins
:
[
vuePlugin
({
preprocessStyles
:
true
}),
replace
({
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
'
development
'
),
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
process
.
env
.
NODE_ENV
),
'
process.env.VUE_ENV
'
:
JSON
.
stringify
(
'
browser
'
)
}),
postcssPlugin
(),
...
...
Web/packages/core/src/components/app.vue
浏览文件 @
6fd7ff27
...
...
@@ -18,7 +18,7 @@ export default {
},
data
()
{
return
{
showContainer
:
tru
e
,
showContainer
:
fals
e
,
};
},
methods
:
{
...
...
Web/packages/core/src/index.js
浏览文件 @
6fd7ff27
...
...
@@ -28,4 +28,6 @@ export class Dokit{
}
export
default
Dokit
\ No newline at end of file
export
default
{
Dokit
}
Web/packages/web/README.md
浏览文件 @
6fd7ff27
# `web`
> TODO: description
## Usage
```
const web = require('web');
// TODO: DEMONSTRATE API
```
# `Dokit For Web`
Web/packages/web/package.json
浏览文件 @
6fd7ff27
...
...
@@ -8,7 +8,9 @@
"author"
:
"duanlikang <duanlikang@didichuxing.com>"
,
"homepage"
:
"http://dokit.cn"
,
"license"
:
"ISC"
,
"main"
:
"dist/web.js"
,
"main"
:
"dist/dokit.js"
,
"unpkg"
:
"dist/dokit.js"
,
"jsdelivr"
:
"dist/dokit.js"
,
"files"
:
[
"dist"
],
...
...
Web/packages/web/rollup.config.js
浏览文件 @
6fd7ff27
import
vuePlugin
from
'
rollup-plugin-vue
'
import
postcssPlugin
from
'
rollup-plugin-postcss
'
import
resolve
from
'
rollup-plugin-node-resolve
'
import
commonjs
from
'
rollup-plugin-commonjs
'
import
replace
from
'
rollup-plugin-replace
'
import
{
terser
}
from
'
rollup-plugin-terser
'
...
...
@@ -15,19 +14,20 @@ export default {
output
:
{
name
:
'
dokit
'
,
file
:
'
dist/dokit.js
'
,
globals
:
{
vue
:
'
Vue
'
},
format
:
'
iife
'
},
external
:
[
"
vue
"
],
plugins
:
[
vuePlugin
({
preprocessStyles
:
true
}),
vuePlugin
(),
replace
({
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
'
development
'
),
'
process.env.NODE_ENV
'
:
JSON
.
stringify
(
process
.
env
.
NODE_ENV
),
'
process.env.VUE_ENV
'
:
JSON
.
stringify
(
'
browser
'
)
}),
postcssPlugin
(),
resolve
({
extensions
:
[
'
.vue
'
]
}),
commonjs
(),
...
extendPlugins
]
}
\ No newline at end of file
Web/packages/web/src/index.js
浏览文件 @
6fd7ff27
import
{
Dokit
}
from
'
@dokit/web-core
'
import
{
Features
}
from
'
./feature
'
/*
* TODO 全局注册 Dokit
*/
new
Dokit
({
features
:
Features
window
.
Dokit
=
new
Dokit
({
features
:
Features
,
});
Web/playground/index.html
浏览文件 @
6fd7ff27
...
...
@@ -11,5 +11,6 @@
<body>
<h1>
Dokit For Web
</h1>
</body>
<script
src=
"https://unpkg.com/vue@next"
></script>
<script
src=
"../packages/web/dist/dokit.js"
></script>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录