-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(refactor): whole logic is refactored to new one using commander
- Loading branch information
1 parent
99bae53
commit c5c2ec9
Showing
30 changed files
with
444 additions
and
468 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
}, | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"build": "npx [email protected] build ./src/main.ts --experimental-scope-hoisting --target node", | ||
"start": "npx gapi start", | ||
"build": "npx parcel build ./src/main.ts --target node", | ||
"build-binary": "npx gapi build --single-executable && mkdir binaries && npm run copy-binaries", | ||
"build-all": "npm run build-binary && rm -rf dist && npm run build", | ||
"test": "npx jest", | ||
|
@@ -40,6 +41,7 @@ | |
"jest-cli": "29.2.2", | ||
"prettier": "^2.7.1", | ||
"ts-jest": "29.0.3", | ||
"commander": "^9.0.0", | ||
"typescript": "^4.8.4" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
export class CustomError extends Error { | ||
get name(): string { | ||
return this.constructor.name; | ||
} | ||
} | ||
|
||
export class ExitCodeError extends CustomError { | ||
readonly code: number; | ||
|
||
constructor(code: number, command?: string) { | ||
if (command) { | ||
super(`Command '${command}' exited with code ${code}`); | ||
} else { | ||
super(`Child exited with code ${code}`); | ||
} | ||
this.code = code; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 +1,2 @@ | ||
export * from './args-extractors'; | ||
export * from './build-packages'; | ||
export * from './copy-packages'; | ||
export * from './copy-recursive'; | ||
export * from './exit-handler'; | ||
export * from './file-exists'; | ||
export * from './modify-json'; | ||
export * from './parse-ignore'; | ||
export * from './read-excludes'; | ||
export * from './read-json'; | ||
export * from './revert-json'; | ||
export * from './run-command'; | ||
export * from './worker'; | ||
export * from './write-file-json'; | ||
export * from './custom-error'; | ||
export * from './utils.service'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.