-
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
8 changed files
with
108 additions
and
6 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,31 @@ | ||
changelog: | ||
categories: | ||
- title: 🏕 Features | ||
labels: | ||
- '*' | ||
exclude: | ||
labels: | ||
- dependencies | ||
- title: 👒 Dependencies | ||
labels: | ||
- dependencies | ||
|
||
# changelog: | ||
# exclude: | ||
# labels: | ||
# - ignore-for-release | ||
# authors: | ||
# - octocat | ||
# categories: | ||
# - title: Breaking Changes 🛠 | ||
# labels: | ||
# - Semver-Major | ||
# - breaking-change | ||
# - title: Exciting New Features 🎉 | ||
# labels: | ||
# - Semver-Minor | ||
# - enhancement | ||
# - title: Other Changes | ||
# labels: | ||
# - "*" | ||
# |
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,6 @@ | ||
name: "Continuous Deployment" | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' |
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,7 @@ | ||
src | ||
node_modules | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
download | ||
dist/tsconfig.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#! /usr/bin/env node | ||
|
||
import { spawnSync } from "child_process"; | ||
|
||
/** | ||
* Returns the executable path which is located inside `node_modules` | ||
* The naming convention is app-${os}-${arch} | ||
* If the platform is `win32` or `cygwin`, executable will include a `.exe` extension. | ||
* @see https://nodejs.org/api/os.html#osarch | ||
* @see https://nodejs.org/api/os.html#osplatform | ||
* @example "x/xx/node_modules/app-darwin-arm64" | ||
*/ | ||
function getExePath() { | ||
const arch = process.arch; | ||
let os = process.platform as string; | ||
let extension = ""; | ||
if (["win32", "cygwin"].includes(process.platform)) { | ||
os = "windows"; | ||
extension = ".exe"; | ||
} | ||
|
||
try { | ||
// Since the binary will be located inside `node_modules`, we can simply call `require.resolve` | ||
return require.resolve(`@next-typed-routes/bin-${os}-${arch}/bin/app${extension}`); | ||
} catch (e) { | ||
throw new Error( | ||
`Couldn't find application binary inside node_modules for ${os}-${arch}` | ||
); | ||
} | ||
} | ||
|
||
/** | ||
* Runs the application with args using nodejs spawn | ||
*/ | ||
function run() { | ||
const args = process.argv.slice(2); | ||
const processResult = spawnSync(getExePath(), args, { stdio: "inherit" }); | ||
process.exit(processResult.status ?? 0); | ||
} | ||
|
||
run(); |
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 |
---|---|---|
|
@@ -26,5 +26,7 @@ | |
}, | ||
"peerDependencies": { | ||
"next": "^13.4.13" | ||
}, | ||
"optionalDependencies": { | ||
} | ||
} |
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,12 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
# components = [ "rustfmt", "rustc-dev" ] | ||
targets = [ | ||
"x86_64-unknown-linux-gnu", | ||
# "aarch64-unknown-linux-gnu", | ||
# "x86_64-pc-windows-msvc" | ||
# "aarch64-pc-windows-msvc" | ||
"x86_64-apple-darwin" | ||
# "aarch64-apple-darwin" | ||
] | ||
|