mirror of https://github.com/embarklabs/embark.git
fix sed issue in windows
This commit is contained in:
parent
30d075380b
commit
6589101deb
|
@ -3,16 +3,6 @@ const constants = require('../lib/constants');
|
||||||
|
|
||||||
require('colors');
|
require('colors');
|
||||||
|
|
||||||
// TODO: can this moved somewhere else? (e.g webpackProcess.js)
|
|
||||||
// Override process.chdir so that we have a partial-implementation PWD for Windows
|
|
||||||
const realChdir = process.chdir;
|
|
||||||
process.chdir = (...args) => {
|
|
||||||
if (!process.env.PWD) {
|
|
||||||
process.env.PWD = process.cwd();
|
|
||||||
}
|
|
||||||
realChdir(...args);
|
|
||||||
};
|
|
||||||
|
|
||||||
let version = require('../package.json').version;
|
let version = require('../package.json').version;
|
||||||
|
|
||||||
class EmbarkController {
|
class EmbarkController {
|
||||||
|
|
|
@ -30,7 +30,7 @@ class TemplateGenerator {
|
||||||
}
|
}
|
||||||
|
|
||||||
generate(destinationFolder, name) {
|
generate(destinationFolder, name) {
|
||||||
console.log(__('Initializing Embark Template....').green);
|
console.log(__('Initializing Embark Template...').green);
|
||||||
|
|
||||||
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
|
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
|
||||||
let fspath = utils.joinPath(destinationFolder, name);
|
let fspath = utils.joinPath(destinationFolder, name);
|
||||||
|
|
|
@ -467,9 +467,9 @@ module.exports = {
|
||||||
pingEndpoint,
|
pingEndpoint,
|
||||||
decodeParams,
|
decodeParams,
|
||||||
runCmd,
|
runCmd,
|
||||||
cd: cd,
|
cd,
|
||||||
sed: sed,
|
sed,
|
||||||
exit: exit,
|
exit,
|
||||||
downloadFile,
|
downloadFile,
|
||||||
extractTar,
|
extractTar,
|
||||||
extractZip,
|
extractZip,
|
||||||
|
|
Loading…
Reference in New Issue