Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/plugin-system
Browse files Browse the repository at this point in the history
  • Loading branch information
Brayan-724 committed Oct 1, 2023
2 parents 833c1de + f4cb5dd commit 1221acb
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ jobs:

- name: Setup Deno
uses: denoland/setup-deno@v1.1.2


- name: Select production import_map.json
run: |
cd example_server
rm import_map.json
mv import_map.prod.json import_map.json
- name: Build step
run: |
cd example_server
Expand Down
3 changes: 3 additions & 0 deletions docs/content/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ Make complete backend smoothie and easy with [Typescript](https://typescriptlang
::terminal
---
content:
- # For Linux / MacOS
- curl -fsSL http://densky.apika.me/install.sh | sh -s v0.1.0-alpha1
- # For Windows:
- $v="0.1.0-alpha1"; irm https://densky.apika.me/install.ps1 | iex
---
::
::
Expand Down
Binary file modified docs/public/favicon.ico
100644 → 100755
Binary file not shown.
50 changes: 50 additions & 0 deletions docs/public/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env pwsh
# MIT license.
# Deno install script (https://github.com/denoland/deno_install/blob/master/install.ps1)

$ErrorActionPreference = 'Stop'

if ($v) {
$Version = "v${v}"
}
if ($Args.Length -eq 1) {
$Version = $Args.Get(0)
}

$DenskyInstall = $env:DENO_INSTALL
$BinDir = if ($DenskyInstall) {
"${DenskyInstall}\bin"
} else {
"${Home}\.densky\bin"
}

$DenskyZip = "$BinDir\densky.zip"
$DenskyExe = "$BinDir\densky.exe"
$Target = 'windows-x64'

$DownloadUrl = if (!$Version) {
"https://github.com/Densky-Framework/densky/releases/latest/download/densky-${Target}.zip"
} else {
"https://github.com/Densky-Framework/densky/releases/download/${Version}/densky-${Target}.zip"
}

if (!(Test-Path $BinDir)) {
New-Item $BinDir -ItemType Directory | Out-Null
}

curl.exe -Lo $DenskyZip $DownloadUrl

tar.exe xf $DenskyZip -C $BinDir

Remove-Item $DenskyZip

$User = [System.EnvironmentVariableTarget]::User
$Path = [System.Environment]::GetEnvironmentVariable('Path', $User)
if (!(";${Path};".ToLower() -like "*;${BinDir};*".ToLower())) {
[System.Environment]::SetEnvironmentVariable('Path', "${Path};${BinDir}", $User)
$Env:Path += ";${BinDir}"
}

Write-Output "Densky was installed successfully to ${DenskyExe}"
Write-Output "Run 'densky --help' to get started"
Write-Output "Stuck? Open an issue on https://github.com/Densky-Framework/densky"
50 changes: 50 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env pwsh
# MIT license.
# Deno install script (https://github.com/denoland/deno_install/blob/master/install.ps1)

$ErrorActionPreference = 'Stop'

if ($v) {
$Version = "v${v}"
}
if ($Args.Length -eq 1) {
$Version = $Args.Get(0)
}

$DenskyInstall = $env:DENO_INSTALL
$BinDir = if ($DenskyInstall) {
"${DenskyInstall}\bin"
} else {