bat upload jdf u -list#19
Merged
Merged
Conversation
可在 config.json 配置中增加uploadList对应value,可以为一个或多个文件,达到多文件批量上传效果,可将短期内需要反复上传的文件配置在其中,如 "uploadList":"css/i/selected-icon.png,js/" 批量上传无需反复敲文件名
Contributor
Author
|
PS. 该方式可能存在一个问题 |
Contributor
|
改配置文件成本太高了,还不如直接设计成这样: |
Contributor
Author
|
你这样还是没有解决,反复输入文件名的问题,我们组遇到的问题是多人同时开发一个项目,代码多分支,当其中某一人需要频繁上传一些文件时有这样的需求 |
Owner
|
@keelii 说的有道理呢,把这段代码 写入一个xx.bat或者xx.sh,并且此文件不入版本库,是不是也能满足你的需求呢? |
Contributor
|
@beanlee 如果是同一个需求分支那肯定是没办法解决的,最好是在本地测试好了再传测试环境 如果是同一项目不同的需求的话我们的解决方案是加不同的版本号(需要后端支持): 这个版本号1.0.0会通过后端接收 url 参数动态渲染到页面引用的css,js文件版本: <link href="path/to/stylesheet/item/1.0.0/??a,css,b.css" />
<script>
seajs.config({
path: 'path/to/1.0.0/directory'
});
</script> |
Contributor
Author
|
嗯,我们组同学遇到的这个问题时候,我最开始想也是使用bat或者sh来执行jdf命令就可以解决,比如单独一个文本用来存储需要批量上传的不同目录的多个文件,做的过程中看了一下jdf关于upload的方法,发现第三个参数是可以根据配置传递的,于是就有了这pull request :) |
putaoshu
pushed a commit
that referenced
this pull request
Nov 28, 2015
batch upload files use "jdf u -list"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
可在 config.json



配置中增加uploadList节点,value可以为一个或多个文件,达到多文件批量上传效果,可将短期内需要反复上传的文件配置在其中,如
"uploadList":"css/i/selected-icon.png,js/" 批量上传无需反复输入多个文件名