forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
108 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '{build}' | ||
|
||
# Test against this version of Node.js | ||
environment: | ||
matrix: | ||
# node.js | ||
- nodejs_version: "0.10" | ||
- nodejs_version: "0.12" | ||
# io.js | ||
- nodejs_version: "1.0" | ||
|
||
# Install scripts. (runs after repo cloning) | ||
install: | ||
# Get the latest stable version of Node.js or io.js | ||
- ps: Install-Product node $env:nodejs_version | ||
# install modules | ||
- npm -g install npm@latest | ||
- set PATH=%APPDATA%\npm;%PATH% | ||
- npm --version | ||
- npm install | ||
|
||
# Post-install test scripts. | ||
test_script: | ||
# Output useful info for debugging. | ||
- node --version | ||
- npm --version | ||
# run tests | ||
- npm test |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import path from 'path'; | ||
import fsp from 'fs-promise'; | ||
import fse from 'fs-extra'; | ||
|
||
function copy(src, dest, options) { | ||
options = options || {}; | ||
|
||
return Promise.all([ | ||
fsp.stat(src), | ||
fsp.exists(dest) | ||
.then(exists => { | ||
if (!exists) { | ||
return false; | ||
} | ||
|
||
return fsp.stat(dest); | ||
}) | ||
]) | ||
.then(([srcStat, destStat]) => { | ||
if (srcStat.isFile() && destStat && destStat.isDirectory()) { | ||
let filename = path.basename(src); | ||
dest = path.join(dest, filename); | ||
} | ||
|
||
return new Promise((resolve, reject) => { | ||
fse.copy(src, dest, options, err => { | ||
if (err) { | ||
reject(err); | ||
} | ||
|
||
resolve(); | ||
}); | ||
}); | ||
}); | ||
} | ||
|
||
export default { | ||
copy | ||
} |
This file contains 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