-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feat/viewbox
- Loading branch information
Showing
467 changed files
with
58,290 additions
and
9,728 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
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const child_process = require("child_process"); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const child_process = require('child_process'); | ||
|
||
const gitPath = path.resolve(__dirname, "../../../.git"); | ||
const configPath = path.resolve(__dirname, "./commitlint.config.js"); | ||
const commitlintBinPath = path.resolve(__dirname, "./node_modules/.bin/commitlint"); | ||
const gitPath = path.resolve(__dirname, '../../../.git'); | ||
const configPath = path.resolve(__dirname, './commitlint.config.js'); | ||
const commitlintBinPath = path.resolve(__dirname, './node_modules/.bin/commitlint'); | ||
|
||
if (!fs.existsSync(gitPath)) { | ||
console.error("no valid .git path"); | ||
console.error('no valid .git path'); | ||
process.exit(1); | ||
} | ||
|
||
const result = child_process.spawnSync( | ||
"sh", | ||
["-c", `${commitlintBinPath} --config ${configPath} --cwd ${path.dirname(gitPath)} --edit`], | ||
{ | ||
stdio: "inherit", | ||
}, | ||
); | ||
|
||
if (result.status !== 0) { | ||
try { | ||
child_process.execSync(`${commitlintBinPath} --config ${configPath} --cwd ${path.dirname(gitPath)} --edit`, { | ||
stdio: 'inherit', | ||
windowsHide: true | ||
}); | ||
} catch (e) { | ||
process.exit(1); | ||
} | ||
|
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
Oops, something went wrong.