ddliu / grunt-push-svn Goto Github PK
View Code? Open in Web Editor NEWPush local directory to a specified SVN server
License: MIT License
Push local directory to a specified SVN server
License: MIT License
Hi,
Is it possible I use multiples repositories with different options?
while try to mkdir mulit-dir in remote path, it show this warning and aborted.
can add --parents
param to svn cmd, push_svn.js[line:131]
I have a fairly simple setup with grunt-push-svn. I'm finding that if I run it once, everything works as it should but running it again returns an error like below:
Warning: There is already a repo in folder "./build" with url *** Use --force to continue.
Below is my grunt config:
module.exports = {
options: {
remove: false,
username: '***'
password: '***'
},
main: {
src: 'dist/example/',
dest: '***/example/',
tmp: './build'
}
};
Am I missing something or is this a bug?
i saw the example,but it always tell me "{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }"
my config is:
push_svn:{
options:{
remove:false,
message:"<%=pkg.version%>version uglify"
},
min:{
src:"D:/workspace/webapp_o2o_v1",
dest:"https://tc-svn.tencent.com/paipai/paipai_qgo_rep/qgo_proj/trunk/itg/weigou_domestic/v1.0/webapp_o2o_v1/WebRoot/assets/min/",
tmp:"./tmp"
},
build:{
src:"D:/workspace/webapp_o2o_v1/WebRoot/assets/build",
dest:"https://tc-svn.tencent.com/paipai/paipai_qgo_rep/qgo_proj/trunk/itg/weigou_domestic/v1.0/webapp_o2o_v1/WebRoot/assets/build"
}
}
and i debug the code, find that when excute the "svn.getFile", it throw wrong.....
please tell me how i could write it??? thanks
It would be nice to be able to specify a username and password to use for authentication.
I'm getting the following error when I try to run push_svn. It gets as far as checking out the repository to the .tmp folder but gives the following error when it goes to "push to temp path". It's strange since I'm using it on a different project and there are no issues.
Push to tmp path...
P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-google-cdn\node_modules\bower\node_modules\tmp\lib\tmp.js:261
throw err;
^
Error: ENOENT, no such file or directory ''
at Object.fs.readdirSync (fs.js:654:18)
at Object.recurse (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt\lib\grunt\file.js:204:6)
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\tasks\push_svn.js:172:20
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:548:21
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:224:13
at iterate (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:131:13)
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:142:25
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:226:17
at P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\async\lib\async.js:553:34
at ChildProcess.<anonymous> (P:\Projects\Secret Location\Samsung\samsung-note\node_modules\grunt-push-svn\node_modules\svn-spawn\node_modules\easy
-spawn\index.js:85:29)
My grunt task config is as follows (I've omitted the server name):
push_svn: {
options: {
remove: false,
pushIgnore: [],
removeIgnore: [],
message: 'BUILD'
},
main: {
src: '<%= dist %>',
dest: 'svn://SERVERNAMEOMITTED',
tmp: '.tmp'
},
}
My dist folder definitely has files in it.
Running "jshint:all" (jshint) task
2 files lint free.
Running "clean:tests" (clean) task
Running "shell:initRepo" (shell) task
Running "push_svn:main1" (push_svn) task
push_svn task: test/src/main --> tmp/build/a --> file:///tmp/grunt-push-svn-test
Prepare tmp path...
Prepare tmp svn working copy [tmp/build/a]: [file:///tmp/grunt-push-svn-test]..
Warning: spawn ENOENT Use --force to continue.
Aborted due to warnings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.