Skip to content

Commit

Permalink
feat: throw out errors to console from yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ramos committed Jun 9, 2022
1 parent e9e40e5 commit ad3fc8a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
26 changes: 20 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"name": "Launch Action",
"type": "go",
"request": "launch",
"mode": "auto",
Expand All @@ -21,14 +21,28 @@
"--url",
"https://debvasmsyxrewpmqckdv.supabase.co",
"--key",
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRlYnZhc21zeXhyZXdwbXFja2R2Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY0OTcxNjQ1OSwiZXhwIjoxOTY1MjkyNDU5fQ.Cpk3dsjv-hOrntBIS1j9kjQehjZHY-HlSPyh-KUV0gk"]
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRlYnZhc21zeXhyZXdwbXFja2R2Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY0OTcxNjQ1OSwiZXhwIjoxOTY1MjkyNDU5fQ.Cpk3dsjv-hOrntBIS1j9kjQehjZHY-HlSPyh-KUV0gk"
]
},
{
"name": "Attach to Process",
"name": "Launch Workspace",
"type": "go",
"request": "attach",
"mode": "local",
"processId": 0
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"args": [
"workspace",
"--name",
"ui-libs",
"--scope",
"@ws",
"--username",
"miguelramos",
"--email",
"[email protected]",
"--repo",
"websublime/ws-ui-libs",
]
}
]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ For now only Supabase storage is supported.

[(Back to top)](#table-of-contents)

**Mandatory dependencies: NodeJS >= 16 and Yarn**

Download the suitable binary for your OS from the list [here](https://github.com/websublime/sublime-cli/releases) and install it. Make sure to make executable with chmod +x.

In your github repo you will need to setup the following secrets:
Expand Down
1 change: 1 addition & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ func (ctx *CreateCommand) YarnLink() {

if err != nil {
color.Error.Println("Yarn wasn't installed on", workspaceDir, ". Please do it manually")
color.Error.Println("Yarn error:", err.Error())
}

color.Success.Println("✅ Your app is updated. Yarn performed link on packages.")
Expand Down
4 changes: 2 additions & 2 deletions cmd/templates/workflow-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
STORAGE_URL: ${{ secrets.STORAGE_URL }}
STORAGE_KEY: ${{ secrets.STORAGE_KEY }}
run: |
wget https://github.com/websublime/sublime-cli/releases/download/v0.0.4/sublime-v0.0.4-linux-amd64.tar.gz
tar -xf sublime-v0.0.4-linux-amd64.tar.gz sublime
wget https://github.com/websublime/sublime-cli/releases/download/v0.0.5/sublime-v0.0.5-linux-amd64.tar.gz
tar -xf sublime-v0.0.5-linux-amd64.tar.gz sublime
chmod +x sublime
./sublime action --kind tag --bucket "$BUCKET" --url "$STORAGE_URL" --key "$STORAGE_KEY" --env "$NODE_ENV"
4 changes: 2 additions & 2 deletions cmd/templates/workflow-feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
STORAGE_URL: ${{ secrets.STORAGE_URL }}
STORAGE_KEY: ${{ secrets.STORAGE_KEY }}
run: |
wget https://github.com/websublime/sublime-cli/releases/download/v0.0.4/sublime-v0.0.4-linux-amd64.tar.gz
tar -xf sublime-v0.0.4-linux-amd64.tar.gz sublime
wget https://github.com/websublime/sublime-cli/releases/download/v0.0.5/sublime-v0.0.5-linux-amd64.tar.gz
tar -xf sublime-v0.0.5-linux-amd64.tar.gz sublime
chmod +x sublime
./sublime action --kind branch --bucket "$BUCKET" --url "$STORAGE_URL" --key "$STORAGE_KEY" --env "$NODE_ENV"
1 change: 1 addition & 0 deletions cmd/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func (ctx *WorkSpaceCommand) InitYarn() {

if err != nil {
color.Error.Println("Yarn wasn't installed on", workspaceDir, ". Please do it manually")
color.Error.Println("Yarn error:", err.Error())
}

color.Success.Println("✅ Your app is initialized. Create your first lib or package.")
Expand Down

0 comments on commit ad3fc8a

Please sign in to comment.