-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
393 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"quickbundle": minor | ||
--- | ||
|
||
Add `compile` command to build standalone executables. |
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,21 @@ | ||
{ | ||
"name": "@examples/multiple-standalones", | ||
"private": true, | ||
"type": "module", | ||
"source": "./src/index.ts", | ||
"bin": { | ||
"standaloneA": "./dist/standaloneA.cjs", | ||
"standaloneB": "./dist/standaloneB.js" | ||
}, | ||
"scripts": { | ||
"build": "quickbundle compile", | ||
"watch": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"ora": "^8.1.1" | ||
}, | ||
"devDependencies": { | ||
"quickbundle": "workspace:*", | ||
"@types/node": "22.9.0" | ||
} | ||
} |
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,14 @@ | ||
import ora from "ora"; | ||
|
||
console.info("A standalone program"); | ||
|
||
const spinner = ora("Fake processing").start(); | ||
|
||
const sleep = async (duration = 3000) => { | ||
return new Promise((resolve) => setTimeout(resolve, duration)); | ||
}; | ||
|
||
void sleep().then(() => { | ||
spinner.stop(); | ||
console.info("End processing"); | ||
}); |
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,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
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 @@ | ||
{ | ||
"name": "@examples/single-standalone", | ||
"private": true, | ||
"type": "module", | ||
"source": "./src/index.ts", | ||
"bin": "./dist/index.cjs", | ||
"scripts": { | ||
"build": "quickbundle compile", | ||
"watch": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"ora": "^8.1.1" | ||
}, | ||
"devDependencies": { | ||
"quickbundle": "workspace:*", | ||
"@types/node": "22.9.0" | ||
} | ||
} |
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,14 @@ | ||
import ora from "ora"; | ||
|
||
console.info("A standalone program"); | ||
|
||
const spinner = ora("Fake processing").start(); | ||
|
||
const sleep = async (duration = 3000) => { | ||
return new Promise((resolve) => setTimeout(resolve, duration)); | ||
}; | ||
|
||
void sleep().then(() => { | ||
spinner.stop(); | ||
console.info("End processing"); | ||
}); |
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,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
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.