Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the right documentation for the patternlab-config.json #57

Open
DarkteK opened this issue Oct 25, 2023 · 0 comments
Open

What is the right documentation for the patternlab-config.json #57

DarkteK opened this issue Oct 25, 2023 · 0 comments

Comments

@DarkteK
Copy link

DarkteK commented Oct 25, 2023

I used to have these packages:

"@pattern-lab/core": "^5.15.0",
"@pattern-lab/engine-twig-php": "^5.15.0",
"@pattern-lab/uikit-workshop": "^5.15.0",

And my patternlab-config.json file was created this way:


"engines": {
    "twig": {
      "namespaces": [
        {
          "id": "uikit",
          "recursive": true,
          "paths": [
            "./node_modules/@pattern-lab/uikit-workshop/views-twig"
          ]
        },
        {
          "id": "atoms",
          "recursive": true,
          "paths": [
            "./src/pattern-lab/_patterns/00-atoms"
          ]
        },
        {
          "id": "molecules",
          "recursive": true,
          "paths": [
            "./src/pattern-lab/_patterns/01-molecules"
          ]
        },
        {
          "id": "organisms",
          "recursive": true,
          "paths": [
            "./src/pattern-lab/_patterns/02-organisms"
          ]
        },
        {
          "id": "templates",
          "recursive": true,
          "paths": [
            "./src/pattern-lab/_patterns/03-templates"
          ]
        }
      ],
      "alterTwigEnv": [
        {
          "file": "alter-twig.php",
          "functions": [
            "addCustomExtension"
          ]
        }
      ]
    }
  }

Now that I finally updated my packages to:


"@pattern-lab/core": "^6.0.1",
"@pattern-lab/engine-twig-php": "^6.0.1",
"@pattern-lab/uikit-workshop": "^6.0.3",

The "twig" engines are not working, the npm run build command says that I haven't configured the twig engines properly.

I can't find an example nor (worst) documentation on how to accomplish this.

Can someone really help me please? I'll be glad, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant