Coder Social home page Coder Social logo

parcel-plugin-zengine-migrator's Introduction

Parcel Plugin Zengine Migrator

Parcel (v1) Plugin for all the heavy lifting behind the scenes of the Zengine Plugin Migrator

Current Capabilities

  • dynamically generates plugin.json from plugin.register function arguments
  • legacy source code is compiled (sort of a mayan port) for integration into parcel-bundler
  • legacy source code is watched for changes or deletions and causes app refresh
    • This includes common dependencies, npm packages, and symlinks!
    • Caveat: file creation in ./src or ../common is not captured, and will require npm start again
  • interpolates all plugin code into modern wrapper files based on character patterns
    • HTML: %PLUGIN_HTML%
    • JS: /* PLUGIN_JS */
    • CSS: /* PLUGIN_CSS */
  • plugin app is served over https
  • plugin.json is accessible from the dev server

To Do

  • build command should zip up contents (might not belong here?)
  • reload on file creation (nice to have?)

parcel-plugin-zengine-migrator's People

Contributors

tehpsalmist avatar dependabot[bot] avatar wizehive-chrismanjoine avatar

Watchers

Ted Kulp avatar Anthony Putignano avatar James Cloos avatar David McNelis avatar A Park(s) avatar Juan Scarton avatar  avatar Joe avatar

parcel-plugin-zengine-migrator's Issues

Error: Unable to extract plugin.json information from plugin.register function.

Hello,

We are currently in the process of migrating a v1 plugin to v2, and are using zmig to convert the project to a mayan compatible structure.

When we run the build commands or dev commands we hit the following error on the packaging step being thrown from parcel-plugin-zengine-migrator : "Error: Unable to extract plugin.json information from plugin.register function. Please verify you have a valid plugin.register function in your source code."

From reading the code it looks as though wrapper/lib/wrapper.js has a seemingly valid enough plugin.register function, our v1 plugin has a valid register function, and it seems as though plugin.json should be generated for us. Our plugin is simple with only the wrapper/index.html entry point.

Any guidance would be greatly appreciated.

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.