sypets / migrate2composer Goto Github PK
View Code? Open in Web Editor NEWTYPO3 extension for migrating a site to Composer
License: Other
TYPO3 extension for migrating a site to Composer
License: Other
We currently write only major.minor. We do not know if migrate2composer is executed on production machine. Possibly, we should just use the same version that is specified in the core / in base-distribution:
TYPO3 version | PHP version in composer.json core) | PHP version in base distri |
---|---|---|
9.5.23 | 7.2.5 (in core git repo) | 7.2 (in 9.x branch) |
--------------------- | ------------------------------------------------ | ---------------------------------- |
10.4.10 | 7.2.5 (in core git repo) | 7.2 (in 9.x branch) |
--------------------- | ------------------------------------------------ | ---------------------------------- |
The PHP requirement can also be added later :
composer config platform.php 7.2.5
If the TYPO3 Console is not found the scripts part gets removed. This is a risky change as Composer installs do not work correctly without this scripts and the TYPO3 Console. See also the recommendations made by the Core team with the TYPO3.CMS.BaseDistribution.
migrate2composer/Classes/Composer/Typo3ComposerManifest.php
Lines 75 to 89 in 21fa267
The default behavior should be creating a composer.json similar to the base dist. If you still like to provide to create a composer.json without the minimal scripts part you should consider using an option for this explicity.
Should be in line with base-distribution: https://github.com/TYPO3/TYPO3.CMS.BaseDistribution/blob/9.x/composer.json
This should be done as different command so previous command (migrate2composer:dump) works as before.
This version could ask a few questions (such as PHP version, web-dir directory, usage of caret or tilde etc.) and would make usage more intuitive.
hi,
many thanks for this extension :)
I just followed the instructions in the readme, but stumbled at the first instruction.
git clone https://github.com/sypets/migrate2composere.git
should be
git clone https://github.com/sypets/migrate2composer.git
The template Resources\Private\Composer\composer.json
had some errors which makes the resulting composer.json not validate:
composer validate
[Composer\Json\JsonValidationException]
"./composer.json" does not match the expected JSON schema:
- authors : Object value found, but an array is required
- autoload.psr-4 : Array value found, but an object is required
- scripts : Array value found, but an object is required
see schema: https://getcomposer.org/doc/04-schema.md#authors
Order should get switched to:
"php typo3cms install:generatepackagestates",
"php typo3cms install:fixfolderstructure"
install:fixfolderstructure
... It is recommended to be executed after executing typo3cms install:generatepackagestates ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.