Skip to content

Commit

Permalink
feat(refactor): whole logic is refactored to new one using commander
Browse files Browse the repository at this point in the history
  • Loading branch information
Stradivario committed Mar 7, 2023
1 parent 99bae53 commit 06ec191
Show file tree
Hide file tree
Showing 31 changed files with 709 additions and 470 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This will install local packages referenced inside `fireDependencies`
It means that `node_modules` folder will be already populated with appropriate packages after `npm install`

```bash
firelink --bootstrap --no-runner
firelink --bootstrap --skip-runner
```

Deploying as usual
Expand Down
16 changes: 16 additions & 0 deletions build.mjs
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);
});
190 changes: 190 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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"
}
}
94 changes: 0 additions & 94 deletions src/create-virtual-symlink.spec.ts

This file was deleted.

Loading

0 comments on commit 06ec191

Please sign in to comment.