Giter VIP home page Giter VIP logo

airdrop's People

Contributors

aarondfrancis avatar alexazartsev avatar felixkiss avatar jacobbennett avatar laravel-shift avatar stylecibot avatar sudogetbeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

airdrop's Issues

Need help in understanding asset generation and also with GH actions

Hey @aarondfrancis,

First of all thanks for this excellent package. Appreciate your efforts.

So, I have installed this packages and updated my deployment bash script as mentioned on the docs page

After making this changes, I ran the deployment script to check if npm run prod takes lesser time but it wasn't the case (previously it was taking ~8000ms too).

image

Am I missing some point here?

Secondly as of now, I am using FilesystemDriver so the built files are stored on the same disk inside the storage folder. I want to move to GH actions and wanted some help/understanding, if possible. So, I saw the GH workflow file changes mentioned on the doc here but can you help me when should this workflow be executed? should it be after every merge? ... And how does deployment script change when using GH actions?

Thanks,
Milan

Github Actions

Hi, when i try to use deploy with Github Actions and make new deploy.yml file in workflow folder

the github action when push file on my repo fail because not found artisan
PHP Warning: require(/home/runner/work/xxxx/yyyyy/vendor/autoload.php): Failed to open stream: No such file or directory in /home/runner/work/xxxx/yyyyy/artisan on line 18

name: Laravel ASSETS

on:
  push:
    branches: [staging]

jobs:
  laravel-tests:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Generate Airdrop Hash
        run: echo "AIRDROP_HASH=$(php artisan airdrop:hash)" >> $GITHUB_ENV
      - name: Cache Airdrop Assets
        uses: actions/cache@v2
        with:
          key: ${{ runner.os }}-airdrop-${{ env.AIRDROP_HASH }}
          path: /tmp/airdrop-*

[Bug] `shouldExclude` Argument #1 ($path) must be of type string

PHP: 8.2
Laravel: 10.15
Airdrop: 0.2.4


When running the airdrop:download or airdrop:upload commands, the following errors comes up:

   TypeError

  Hammerstone\Airdrop\FileSelection::shouldExclude(): Argument #1 ($path) must be of type string, Symfony\Component\Finder\SplFileInfo given, called in /var/www/html/vendor/hammerstone/airdrop/src/FileSelection.php on line 116

  at vendor/hammerstone/airdrop/src/FileSelection.php:152
    148▕             })
    149▕             ->toArray();
    150▕     }
    151▕
  ➜ 152▕     protected function shouldExclude(string $path): bool
    153▕     {
    154▕         foreach ($this->excludeFilesAndDirectories as $excludedPath) {
    155▕             if (Str::startsWith(realpath($path), $excludedPath)) {
    156▕                 return true;

      +1 vendor frames

  2   [internal]:0
      Hammerstone\Airdrop\FileSelection::yieldSelectedFiles()
      +22 vendor frames

  25  artisan:35
      Illuminate\Foundation\Console\Kernel::handle()

This is caused by this line. The iterator is an iterator of Symfony\Component\Finder\SplFileInfo, not string.

The fix seems to be to pass the realpath from the Symfony object and remove the realpath function call in the shouldExclude function.

Doing this locally causes Airdrop to function as expected.

[feature request] Zip files are never deleted

Hello,

it seems zip files are never deleted in the storage/app/airdrop folder, i have 34 zip currently,
Should i delete the zips, between airdrop:download and airdrop:upload to ensure only one zip remains ?

thanks

Problem when yarn run changes files in resource

Hey,
First of all really like this package.

So I had a little Problem with using it in our deployments because we are using ziggy in the project and it creates a file in resources.
The problem was finding this different file.

So I thought I could add a option to the download and upload command so they make a diff of the HashGenerator::make()->asArray()
so it could be easier to find the differences.

Would you be open to a PR with this functionality? Then I would try to add it in the next days.

[Question] Airdrop vs Gitlab

Hi!

Once Gitlab has a built in cache mechanism for builded assets, this package will be useful in anyway for gitlab projects?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.