mirror of
https://github.com/LukeHagar/Coolify-TypeScript-SDK.git
synced 2025-12-07 20:37:44 +00:00
Saving initial generation
This commit is contained in:
30
.devcontainer/setup.sh
Normal file
30
.devcontainer/setup.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install the speakeasy CLI
|
||||
curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
|
||||
|
||||
# Setup samples directory
|
||||
rmdir samples || true
|
||||
mkdir samples
|
||||
|
||||
npm install
|
||||
npm install -g ts-node
|
||||
npm link
|
||||
npm link coolify
|
||||
TS_CONFIG_CONTENT=$(cat <<EOL
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"openapi": ["../src/index"],
|
||||
"openapi/*": ["../src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["./**/*.ts"]
|
||||
}
|
||||
EOL
|
||||
)
|
||||
echo "$TS_CONFIG_CONTENT" > samples/tsconfig.json
|
||||
|
||||
# Generate starter usage sample with speakeasy
|
||||
speakeasy generate usage -s https://raw.githubusercontent.com/coollabsio/documentation-coolify/refs/heads/main/openapi.yaml -l typescript -o samples/root.ts
|
||||
Reference in New Issue
Block a user