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
#!/usr/bin/env bash | |
# fail if any commands fails | |
set -e | |
## | |
## INPUTS | |
## - $CODECOV_JSON - The location of the JSON file produced by | |
## swift test --enable-code-coverage |
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
#!/usr/bin/swift sh | |
// https://github.com/vapor/console-kit | |
import ConsoleKit // vapor/console-kit ~> 4.0.0-beta.1 | |
import Foundation | |
// MARK: - Shell | |
let shellSuccessCode: Int32 = 0 | |
struct ShellOut { |
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
version: "3.7" | |
x-common: &common | |
environment: | |
SHARED_ENV_VAR1: 'value' | |
SHARED_ENV_VAR2: 'value' | |
services: | |
vapor_app: # name this whatever you want | |
<<: *common |
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
#!/usr/bin/swift sh | |
import Foundation | |
import ConsoleKit // vapor/console-kit ~> 4.0.0-beta.2.1 | |
import TransformEncoder // @mattpolzin ~> 0.2.0 | |
import OpenAPIKit // @mattpolzin ~> 0.16.0 | |
import Yams // @jpsim ~> 2.0.0 | |
// MARK: - Helpers | |
extension OpenAPI.HttpVerb: LosslessStringConvertible, CustomStringConvertible { |
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
import Foundation | |
import Combine | |
import JSONAPI | |
import JSONAPIResourceCache | |
import JSONAPICombine | |
import ReSwift | |
import CombineReSwift |
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
#!/usr/bin/env sh | |
if [[ "$1" == "" ]]; then | |
${SHELL:-bash} $(pwd)/watch_and_learn.sh watch | |
exit 0 | |
fi | |
function watch() { | |
clear | |
echo "waiting..." |
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
func test_webhooks_encode() throws { | |
let op = OpenAPI.Operation(responses: [:]) | |
let document = OpenAPI.Document( | |
info: .init(title: "API", version: "1.0"), | |
servers: [], | |
paths: [:], | |
webhooks: [ | |
"webhook-test": .init(get: op, put: op, post: op, delete: op, options: op, head: op, patch: op, trace: op) | |
], | |
components: .noComponents, |
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
<html> | |
<head> | |
<meta charset='utf-8'> | |
<link rel="stylesheet" type="text/css" href="web.css" media="screen"/> | |
</head> | |
<body> | |
<script type='text/javascript' src='build/exec/web.js'></script> | |
</body> | |
</html> |
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
NCURSES_VERSION ?= 6 | |
ncurses-idris-dep: | |
mkdir -p deps && \ | |
cd deps && \ | |
git clone https://github.com/mattpolzin/ncurses-idris.git && \ | |
cd ncurses-idris && \ | |
cat NCurses.idr | sed 's/libncurses"/libncurses $(NCURSES_VERSION)"/' > tmp.idr && \ | |
rm NCurses.idr && mv tmp.idr NCurses.idr && \ | |
make && make install && \ |
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
~/staging/tmp (main) $ garden validate | |
Validate ✔️ | |
Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here: | |
https://go.garden.io/report-bonsai | |
→ Run garden util hide-warning 0.13-bonsai to disable this warning. | |
ℹ garden → Running in Garden environment dev.dev-mattpolzin | |
ℹ providers → Getting status... | |
✔ providers → Cached (took 1.8 sec) | |
ℹ providers → Run with --force-refresh to force a refresh of provider statuses. |
OlderNewer