Skip to content

Commit

Permalink
compat windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nonjene committed Jun 20, 2018
1 parent de896c9 commit e10d83f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions bin/ftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ module.exports = {
opt,
filesInfo,
(remoteFullPath, localFullPath, next) => {
const remoteDir = path.dirname(remoteFullPath);
const remoteDir = path.dirname(remoteFullPath).replace(/\\/g,'/');
this.mkdir(remoteDir)
.then(() => this.putFile(remoteFullPath, localFullPath))
.then(() => this.putFile(remoteFullPath.replace(/\\/g,'/'), localFullPath))
.then(() => next())
.catch(/* istanbul ignore next */ function(e) {
console.log(chalk.yellow(e));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-papa-script",
"version": "3.3.3",
"version": "3.3.4",
"description": "A frontend projects solution",
"main": "bin/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/fileManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('#fileManger', function() {
});
it('get correct quantity of the whole "./src", ', ()=>{
const entries = getAllProjName();
entries.should.be.eql('_template_def,proj1,proj2,subFolder/proj1,subFolder/proj2');
entries.should.be.eql('_template_def,proj1,proj2,proj_react,subFolder/proj1,subFolder/proj2');
});
});
});
Expand Down
7 changes: 0 additions & 7 deletions test/seed/src/proj_react/config_v.js

This file was deleted.

0 comments on commit e10d83f

Please sign in to comment.