Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Tom Martin
    @tom7even_twitter

    Hi, how do I go about compiling the js files? I get this error when I run the build? Module not found: Error: Can't resolve 'gutenberg/packages/block-editor/build-style/style.css' I assume I need to install gutenberg somewhere.

    I am trying to get server side rendered custom blocks working but I need to add some new routes to the api-fetch.js file.

    If I get this all working I will raise a pr back to the repo.

    Many Thanks,
    Tom

    Maurice Wijnia
    @mauricewijnia
    Hi Tom!

    Yes you're right, you have to install Gutenberg locally and link the package to your global npm install.
    This is not described in the README yet, so I'll make sure to add that today, but for now:

    • Clone gutenberg in any directory: git clone https://github.com/WordPress/gutenberg.git
    • Install all it's dependencies: cd gutenberg and then npm install
    • Link gutenberg to your global node_modules: (sudo) npm link

    Then in your Laraberg directory you can install gutenberg:

    • npm link gutenberg
    Maurice Wijnia
    @mauricewijnia
    Also you should probably checkout the correct Gutenberg (6.2 right now, hopefully 6.5 later today) version and run npm run build in your Gutenberg directory
    Tom Martin
    @tom7even_twitter
    Excellent thank you.
    Is allowing server side rendering / dynamic blocks something you would like for me to push back up once I have finished? Currently about 60% through. Very handy when people want to create custom widget?
    Sorry for all the questions but could you also support this file manager - https://github.com/alexusmai/laravel-file-manager as this allows you to use other storage engines instead of just the public bucket
    Maurice Wijnia
    @mauricewijnia
    Yes for sure, having full support for severside blocks would be amazing, will your implementation be similar to WordPress' implementation?
    About that filemanager, I won't have any time for implementing that anytime soon
    Tom Martin
    @tom7even_twitter

    Pretty much will, it currently looks like Laraberg::registerBlock($name, ...) So you register your widget in your app service provider with the same name like you do in WordPress.

    I think I might enforce an interface as the second argument as I don't like the building from array option that WordPress has but am happy if you would prefer supporting both.

    Maurice Wijnia
    @mauricewijnia
    Also, I'd prefer to find a more generic way to handle media... The ideal situation for me would be to have a simple default file manager + an optional system that could be used to implement most 3rd party file managers by the developers themselves
    Tom Martin
    @tom7even_twitter
    Yeah I didn't really want to install Laravel file manager would much prefer building the uploader into my own application
    Maurice Wijnia
    @mauricewijnia
    @tom7even_twitter Sounds good! I agree that an interface would be preferable, but it would also worth considering supporting the same arguments as WordPress, that way it may be achievable to use the same serverside blocks on gutenberg as well as on laraberg
    Tom Martin
    @tom7even_twitter
    Ok I will see what I can do.
    Taha Paksu
    @tpaksu
    Hello, I just started to use Gitter, so if I do or say something wrong, please forgive :) And I have one question about the file managers,
    Also, I'd prefer to find a more generic way to handle media... The ideal situation for me would be to have a simple default file manager + an optional system that could be used to implement most 3rd party file managers by the developers themselves
    I also want that but outside the vendor directory :) Without being effected by laraberg updates. I suppose adding a configuration node to set the class to be loaded as the media library plug-in would be useful.
    And I also want the translations, just cloned the gutenberg repo and linked to my laraberg, to see what I can do.
    Taha Paksu
    @tpaksu
    And btw, I checked the v5.6.2 branch from gutenberg, because the CONTRIBUTING.md tells so (git checkout vX.X.X
    ), but it had some packages missing, can you update it with a more specific version like "releases/6.7" :)
    Taha Paksu
    @tpaksu
    How about containing this as the default editor ? https://github.com/godaddy/block-gallery