Giter VIP home page Giter VIP logo

Comments (3)

ajthinking avatar ajthinking commented on June 12, 2024

Hi Nathan!
Thanks for checking it out! Just merged the PR 👍 (There was some PHP8 issues and also there might be a missing dependency in composer.json.)

Yes! This package would certainly profit from using orchestral testbench. I knew it existed but at the time did not understand how to implement it. One problem is it does not provide models and other files archetype needs to test. But I think it is possible to provide ones own skeleton.

    protected function getBasePath()
    {
        // Adjust this path depending on where your override is located.
        return __DIR__.'/../vendor/orchestra/testbench-dusk/laravel'; 
    } 

PR to migrate to the testbench would be hugely appreciated ❤️

Its been a while since I worked on this. Some things I would like to strip out. Like the schema.
If you dont mind me asking, what are you building? What parts of this package do you need?

from archetype.

ghostwriter avatar ghostwriter commented on June 12, 2024

Great! I'll try to work on this PR.

I'm currently working on laravel-shift/blueprint with JMac.
I'd also like to refactor laravel-shift/factory-generator next which i believe would benefit from schema you mentioned.

We would like to:

  • Move away from maintaining Stub files for each version of Laravel.
  • Generate Laravel specific php files.
  • Edit existing php files via AST (move away from regex & str_replace).

I had a similar idea to override the base path but using config so dev can manage it easily.

protected function getBasePath()
{
    return app('config')->get('archetype.basepath', 'default/path'); 
}

// TestCase.php
  protected function getEnvironmentSetUp($app)
  {
    $app['config']->set('archetype.basepath', base_path('vendor/orchestra/testbench-dusk/laravel')); // Tests only
    $app['config']->set('archetype.roots.debug.root', base_path('tests/.debug'));
    $app['config']->set('archetype.roots.output.root', base_path('tests/.output'));
  }

from archetype.

ajthinking avatar ajthinking commented on June 12, 2024

Ah cool ! Those are some great tools and nice ideas on improvement.
Ok so we'll keep the schema :) Though it could really use some further polishing.

Let me know if you have any questions or suggestions. Happy to help out wherever needed 👍

from archetype.

Related Issues (15)

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.