Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
84afe04b
Commit
84afe04b
authored
Jun 18, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
4bc24ec1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
0 deletions
+110
-0
config/config.ts
config/config.ts
+7
-0
public/iamges/todo1.png
public/iamges/todo1.png
+0
-0
src/pages/demo/index.js
src/pages/demo/index.js
+19
-0
src/pages/demo/index.less
src/pages/demo/index.less
+3
-0
环境.md
环境.md
+81
-0
No files found.
config/config.ts
View file @
84afe04b
...
...
@@ -84,6 +84,7 @@ const uglifyJSOptions =
}
:
{};
export
default
{
publicPath
:
"
/test
"
,
// add for transfer to umi
plugins
,
define
:
{
...
...
@@ -109,6 +110,12 @@ export default {
icon
:
'
smile
'
,
component
:
'
./Welcome
'
,
},
{
path
:
'
/demo
'
,
name
:
'
demo
'
,
icon
:
'
smile
'
,
component
:
'
./demo
'
,
},
],
},
],
...
...
public/iamges/todo1.png
0 → 100644
View file @
84afe04b
2.24 KB
src/pages/demo/index.js
0 → 100644
View file @
84afe04b
import
React
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
// import styles from './index.less';
@
connect
()
class
Index
extends
React
.
Component
{
componentDidMount
()
{}
render
()
{
return
(
<
div
className
=
{
styles
.
root
}
>
hello
world
<
img
src
=
"
iamges/todo.png
"
alt
=
"
demo
"
/>
<
/div
>
);
}
}
export
default
Index
;
src/pages/demo/index.less
0 → 100644
View file @
84afe04b
.root {
margin-bottom: 0;
}
环境.md
0 → 100644
View file @
84afe04b
### 安装node
### npm配置
设置npm全局与缓存路径
```
npm config set prefix "F:\NODEJS\node_global"
npm config set cache "F:\NODEJS\node_cache"
```
查看npm配置
```
npm config list
```
设置npm镜像源
```
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
```
### 安装yarn
### 安装yrm
切换仓库数据源
### 屏幕分辨率支持
1.
最低分辨率1366
*
768
2.
最佳分辨率 1920
*
1080
### package.json
```
private
如果你在包的package.json中设置"private": true,则npm会拒绝发布它。
```
### lint
1.
远程lint
2.
本地lint
1.
[
husky
](
https://github.com/typicode/husky
)
`husky` 其实就是一个为 `git` 客户端增加 hook 的工具
2.
[
pre-commit
](
https://github.com/observing/pre-commit
)
3.
[
lint-staged
](
https://github.com/okonet/lint-staged
)
每次提交只检查本次提交所修改的文件
### 专业名词
| 英文缩写 | 英文全称 | 中文含义 |
| -------- | -------- | -------- |
| CI | | 持续集成 |
| | | |
| | | |
### 参考链接
1.
lint
<https://segmentfault.com/a/1190000009546913>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment