-
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.
Update template for better publish to npm.
- Loading branch information
1 parent
f972442
commit cd097bd
Showing
28 changed files
with
4,189 additions
and
72 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 |
---|---|---|
|
@@ -170,3 +170,6 @@ dist | |
|
||
# IntelliJ based IDEs | ||
.idea | ||
|
||
dist/ | ||
*.tsbuildinfo |
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,4 +1,4 @@ | ||
find ./src \( -name "*.vert" -o -name "*.frag" \) -type f -exec bash -c 'mkdir -p "src/generated/$(dirname "{}")" && cp "{}" "src/generated/$(dirname "{}")/$(basename $(basename "{}" .vert) .frag).txt"' \; | ||
|
||
bun run bundle | ||
bun run build | ||
bun run tsc |
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 @@ | ||
export {}; |
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,12 @@ | ||
async function bundle() { | ||
await Bun.build({ | ||
entrypoints: ['./index.ts'], | ||
outdir: './buid', | ||
minify: true, | ||
sourcemap: 'external', | ||
target: 'browser', | ||
}); | ||
} | ||
await bundle(); | ||
export {}; | ||
// # sourceMappingURL=bundler.js.map |
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
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,10 @@ | ||
#!/bin/bash | ||
|
||
# Add all changes to the staging area | ||
git add . | ||
|
||
# Commit with a default message | ||
git commit -m "Auto-commit: $(date +"%Y-%m-%d %H:%M:%S")" | ||
|
||
# Print a message indicating the successful commit | ||
echo "Changes committed successfully." |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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
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,3 @@ | ||
import { hello } from "bun-template"; | ||
|
||
export { hello }; |
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,21 @@ | ||
#!/bin/bash | ||
|
||
# Get the current Git remote URL (origin) | ||
CURRENT_URL=$(git config --get remote.origin.url) | ||
|
||
# Verify if the URL is an HTTPS URL | ||
if [[ $CURRENT_URL == https://* ]]; then | ||
# Extract the repository name from the URL | ||
REPO_NAME=$(basename "$CURRENT_URL" ".git") | ||
|
||
# Update the Git remote URL to use SSH | ||
NEW_URL="git@github.com:$(basename $(dirname "$CURRENT_URL"))/${REPO_NAME}.git" | ||
git remote set-url origin "$NEW_URL" | ||
|
||
# Verify the changes | ||
git remote -v | ||
|
||
echo "Git remote URL updated to SSH." | ||
else | ||
echo "The current Git remote URL is already using SSH." | ||
fi |
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 @@ | ||
bun run np |
Oops, something went wrong.