-
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 06ec191
Showing
31 changed files
with
709 additions
and
470 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,16 @@ | ||
import esbuild from 'esbuild'; | ||
|
||
esbuild | ||
.build({ | ||
entryPoints: ['./src/main.ts'], | ||
bundle: true, | ||
treeShaking: true, | ||
platform: 'node', | ||
target: 'node14.4', | ||
outfile: './dist/main.js', | ||
}) | ||
.then((data) => console.log('SUCCESS', data)) | ||
.catch((e) => { | ||
console.error(e); | ||
process.exit(1); | ||
}); |
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,16 +6,18 @@ | |
}, | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"build": "npx [email protected] build ./src/main.ts --experimental-scope-hoisting --target node", | ||
"start": "npx gapi start", | ||
"build": "npx node build.mjs", | ||
"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", | ||
"build-all": "npm run clean && npm run build-binary && rm -rf dist && npm run build", | ||
"test": "npx jest", | ||
"lint": "npx eslint . --ext .ts", | ||
"prepare": "husky install", | ||
"lint-fix": "npx eslint . --fix --ext .ts", | ||
"publish-package": "npm publish --update-readme --access public", | ||
"changelog": "npx conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -r 0", | ||
"ammend-changelog": "git commit --amend --no-edit", | ||
"clean": "rm -rf binaries dist", | ||
"copy-binaries": "cp -r ./dist/firelink-linux ./binaries && cp -r ./dist/firelink-macos ./binaries && cp -r ./dist/firelink-win.exe ./binaries" | ||
}, | ||
"files": [ | ||
|
@@ -40,6 +42,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.
Oops, something went wrong.