Coder Social home page Coder Social logo

simtechdev / pwajet-extension Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 615 KB

Example PWAjet extension for CS-Cart and Multi-Vendor

Home Page: https://pwajet.simtechdev.com

JavaScript 64.81% TypeScript 35.19%
cs-cart multi-vendor pwa mobile multivendor ecommerce

pwajet-extension's Introduction

Example PWAjet extension for CS-Cart and Multi-Vendor

Start your extension with this scaffold.

Features

  • Eslint configured the same way as a PWAjet
  • Typescript
  • Jest
  • React testing library
  • rollup
  • postcss
  • babel
  • and much more to best coding experience

Getting started

  1. Once you have a PWAjet installed, get all its content from the root directory (yes - just compiled statics)
  2. Create public folder at the root of your extension project
  3. Copy all files from 1. to public
  4. Set up name, company name and version at package.json
    1. name should start with pwajet- prefix. Like pwajet-sd-labels.
  5. Run yarn and yarn start
  6. Done!

Start your development

  1. Remove unnecessary or install extra dependencies. You may see current ones at package.json
  2. Subscribe to a render event or register your screen/block/payment

pwajet.d.ts

PWAjet has shared API, which is described by pwajet.d.ts. Make sure you're using actual version that meets the version of a PWAjet.

Development vs Production

Development mode allows you to test your extension right at PWAjet like extension already installed: html-webpack-plugin inserts extension's script to index.html (PWAjet entry point)

But extension builds as a pure js and css assets for production.

Production file structure

After yarn build complete, extension under the build directory can be described as:

All emitted assets will be placed to /assets/extensions/extension-developer-name/extension-name/

What next?

After build you can find INSTRUCTION.md at your build path /assets/extensions/extension-developer-name/extension-name/

Credits

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.