Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

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

@camya

Description

@camya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions