apolopena / gitpod-laravel-starter

Configurable LAMP or LEMP stack starter project powered by Laravel and Gitpod. Supports Laravel 6, 7, and 8. Out of the box support for React, Vue, and Bootstrap frontends, with or without built-in auth .
https://github.com/apolopena/gitpod-laravel-starter/wiki
MIT License
40 stars 44 forks source link

Allow lint-scripts.sh to be run locally #195

Closed apolopena closed 2 years ago

apolopena commented 2 years ago

Currently it is not possible lint-starter on a local machine outside the gitpod platform. Linting the scripts is an important step when developing gitpod-laravel-starter outside of Gitpod.

Change:

path() {
  echo "$GITPOD_REPO_ROOT/.gp"
}

To

path() {
  [[ -z $GITPOD_REPO_ROOT ]] && GITPOD_REPO_ROOT="$(pwd)"
  echo "$GITPOD_REPO_ROOT/.gp"
}