Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: New "after" script template (lambo edit-after) #182

Open
camya opened this issue Sep 13, 2022 · 0 comments
Open

Suggestion: New "after" script template (lambo edit-after) #182

camya opened this issue Sep 13, 2022 · 0 comments

Comments

@camya
Copy link

camya commented Sep 13, 2022

I suggest a new structure for the default/demo "after" script, which is created by lambo edit-after

The changes:

  • Echos all sections in the after script every time. Only the commands are commented out. (Better overview)
  • Composer require with --no-update option in order to defer the installation.
  • Copy command is verbose and shows all copied files. (see option -v)
  • Copy command uses other syntax for easier string concatenation of destination path.
  • Finishing task with "npm run build" added, because this is most likely required if you copy templates.
#!/usr/bin/env bash

echo "
-------------------------------------------------------------------------------
- lambo after: Install composer dependencies
-------------------------------------------------------------------------------
"

#composer require barryvdh/laravel-debugbar --dev --no-update
#composer require beyondcode/laravel-query-detector --dev --no-update
#composer update

echo "
-------------------------------------------------------------------------------
- lambo after: Copy files to project (Source ~/.lambo/includes)
-------------------------------------------------------------------------------
"

#cp -Rv ~/.lambo/includes/ "${PROJECTPATH}"

echo "
-------------------------------------------------------------------------------
- lambo after: Git commit modifications
-------------------------------------------------------------------------------
"

#git add .
#git commit -am "Installed composer packages and extra files."

echo "
-------------------------------------------------------------------------------
- lambo after: Finish
-------------------------------------------------------------------------------
"

#npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant