npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dieschittigs/c3t4

v1.1.3

Published

Converts Contao 3.5 Modules to Contao 4.4 Bundles

Downloads

8

Readme

C3t4 – Contao 3 to 4

This is a command line application that helps you automatically convert your Contao 3-compatible modules to Symfony-based Contao 4 bundles.

Installation and Usage

C3t4 requires node.js 7.6 or newer.

The recommended way of installing this application is via Yarn or npm.

$ yarn global add @dieschittigs/c3t4
$ npm install --global @dieschittigs/c3t4

Then, simply run c3t4 in your Contao 3 instance and follow the on-screen instructions.

Roadmap

  • Rename any occurences of system/modules/.../assets with bundles/... in order for bundle assets to be adjusted automatically

Other steps for migrating from Contao 3 to 4

In our experience, the following steps are sufficient to migrate an application from Contao 3 to 4:

  1. Export your Contao 3 database
  2. Import the database into your new Contao 4 database
  3. Install Contao 4 on your target system using the Contao Manager
  4. Run the install tool and update the database to Contao 4
    (make sure none of the DROP COLUMN or DROP TABLE fields are selected)
  5. Copy the content of your templates directory from Contao 3 to Contao 4
  6. Copy the content of your files directory from Contao 3 to Contao 4
  7. Upload your converted Contao 4 bundles
  8. Add your local Contao 4 bundles to your composer.json (in the repositories and require fields, see below)
  9. Run composer update, or update your dependencies from the Contao Manager

Expectedly, Contao 4 is not fully backwards-compatible with Contao 3. For us, this was most apparent in some template rendering changes. This tool can't fix those changes for you, so you will obviously need to make sure that everything still works in your Contao 4 installation and make some minor adjustments where needed.

Example composer.json entries
{
    ...
    "require": {
        ...
        "mynamespace/mybundle": "@dev"
    },
    "repositories": [
        { "type": "path", "url": "./bundles/mybundle" }
    ]
}