Coder Social home page Coder Social logo

installer's Introduction

ScandiPWA installer

FOSSA Status

Module is a helper to install ScandiPWA Theme.

1.2.0 update

Version 1.2.0 introduce changes to theme registration logic, related to URL rewrite functionality.

theme.xml got custom <pwa>true</pwa> node, that is forcing custom theme type. In order to simply update already installed theme, update theme table in the database, setting up type = 4 for your PWA theme. Cache flush is necessary once done!

Usage

composer require scandipwa/installer

After installation flush the caches (Varnish or filesystem).

scandipwa:theme:bootstrap must appear in your Magento 2 CLI command list php bin/magento

New theme bootstrap

Command accepts single parameter, which is treated as following format: "Vendor/theme".

Note

You can change Scandiweb/pwa in examples below to anything suitable for you, keeping the same naming structure: Vendor/theme_name

After php bin/magento scandipwa:theme:bootstrap Scandiweb/pwa it will make next effect:

  1. Check for <magento_root>/app/design/frontend/Scandiweb/pwa - bootstrap will quite with error if directory is present to prevent unwanted overrides.
  2. Create <magento_root>/app/design/frontend/Scandiweb/pwa directory
  3. Copy necessary files to the newly created theme root.
  4. Answer y/N (No is default) to a prompt for theme.xml and registration.php generation. You might want to create them manually - feel free to do it!
  5. Run php bin/magento setup:upgrade.
  6. You are bootstraped!

Theme build

The theme must be built after it is bootstrap or after any changes.

  1. Go to app/design/frontend/Scandiweb/pwa (or your custom Vendor/theme_name)
  2. run npm ci
  3. run npm run build

DEMO installation

If you'd like to get the same result as v1.scandipwa.com you must import database dump and get media

Customization

In order to customize copying task - simply edit di.xml, passing array with paths.

License

FOSSA Status

installer's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.