Comments (3)
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.
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.
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)
- Reading grouped imports HOT 1
- Getter & Setter for class constants HOT 1
- Composer 2 PSR-4 Autoloading Conflict HOT 1
- Setting class definitions and using constants in property values HOT 6
- PHP 8 Support HOT 7
- Laravel 9 Support HOT 1
- Add traitUse() HOT 5
- Rewrite StmtInserter
- How to add methods? HOT 1
- Project fails to load files HOT 6
- Add return parent::method() to class body HOT 1
- [Question] How can I add a new key/value inside an array of a laravel config file ? HOT 2
- Document how to use in a Symfony project HOT 3
- running phpunit tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archetype.